DeviseRevocableSession
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 install
Or install it yourself as:
$ gem install devise_revocable_session
Usage
Install using the generator
$ rails g devise_revocable_sessions
Add :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 *.gemspec
to build the gem locally - Run
gem install --local devise_revocable_session-X.X.X.gem
to install the gem locally
- Run
- Make a pull request back to this repository
Releasing
- Make sure the
lib/devise_revocable_session/version.rb
file is updated with a new version - Run
git tag vX.X.X && git push --tag
- Run
gem build *.gemspec
- Run
gem push *.gem
to push the new version to RubyGems - Run
rm *.gem
to 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.