A simple project to count your pomodoros time.
First of all, install it...
gem install pomodoro_timer
After that you can open irb, require and include:
require 'rubygems'
require 'pomodoro_timer'
include PomodoroTimer
Now you have the methods:
- start: Start one pomodoro.
- status: Show if you are in break or work time and how much least to end.
- cancel: Cancel your pomodoro.
First: Calling the start method, your 25 minutes of work will start counting.
Second: When this time end a ding sound will be played and your 5 minutes of break will starts counting automaticaly.
Third: When break time ends you have to start another pomodoro manualy, using the start method.
Maybe you will want to ignore the break ding and work a litte more, it's okay, you can cancel the actual pomodoro and when you want take a break you can call the method start passing :break like this...
start :break
- Was tested only in ubuntu, and I think that will not work in anothers OSs, because the gem uses the "aplay" built-in command to play the ding.
- Has no way to pause a pomodoro. (Puporsely)
- Name: Hugo Roque
- Email: [email protected]
- Twitter: http://twitter.com/hugolnx
- Blog: http://hugolnx.com/
- Labs: http://lnxlabs.heroku.com/