TutoMan
TutoMan manages diplays of tutorial views or reminders in a rails application.
Installation
Add this line to your application's Gemfile:
gem 'tuto_man'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tuto_man
Usage
Configuration
Set display timing for each tutorial or reminders.
# config/initializers/tuto_man.rb
TutoMan :my_tuto, interval: 7 * 24 * 60 * 60 # once shown suppress for 1 week
Control
# tell if a tuto is displaying
tuto(:my_tuto).on?
# mark as shown
tuto(:my_tuto).shown
# turn off forever
tuto(:my_tuto).off
Contributing
- Fork it ( http://github.com//tuto_man/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request