Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Be A Dragon

Motivational sentences to help you code in peace.

Your code does not work as it should? You have only one spec to correct and you want to sleep? Does Rubocop mistreat you? Need some extra motivational push to finish that f*** code? This is your gem.

Installation

Add this to your application's Gemfile:

gem 'be_a_dragon'

And then add some simple CRON worker gem like

gem 'rufus-scheduler'

Run:

$ bundle install

Usage

Make a new file on initalizers folder:

# initializers/motivational-cron.rb
require 'rufus-scheduler'
require 'be_a_dragon'

scheduler = Rufus::Scheduler.new
motivation = BeADragon::MotivateMePls

scheduler.cron '* * * * *' do
  motivation.random_sentence('Eric')
end

Custom cron times at https://crontab.guru/

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/be_a_dragon.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages