DeviseRevocableSession
This project is archived as it won't receive any more bug fixes, feature development, or security updates.
A module for devise to revoke sessions.
This is borrowed heavily from: https://github.com/mkhairi/devise_revocable and https://www.jonathanleighton.com/articles/2013/revocable-sessions-with-devise/.
Installation
Add this line to your application's Gemfile:
gem 'devise_revocable_session'And then execute:
$ bundle installOr install it yourself as:
$ gem install devise_revocable_sessionUsage
Install using the generator
$ rails g devise_revocable_sessionsAdd :revocable_session to your model's devise declaration.
Development
Making Changes
- Clone or fork the repository
- Create a feature branch for your changes
- Run
bundle install - Make your changes
- Test the gem locally
- Run
gem build *.gemspecto build the gem locally - Run
gem install --local devise_revocable_session-X.X.X.gemto install the gem locally
- Run
- Make a pull request back to this repository
Releasing
- Make sure the
lib/devise_revocable_session/version.rbfile is updated with a new version - Run
git tag vX.X.X && git push --tag - Run
gem build *.gemspec - Run
gem push *.gemto push the new version to RubyGems - Run
rm *.gemto clean up your local repository
To set up your local machine to push to RubyGems via the API, see the RubyGems documentation.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/dispatchitinc/devise_revocable_session. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Code of Conduct
Everyone interacting in the DeviseRevocableSession project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the Contributor Covenant code of conduct.
Copyright
Copyright (c) 2022 Dispatch. See MIT License for further details.