https://github.com/fbernier/toodoo
WIP: A gem to warn yourself about your todos while your code is running.
https://github.com/fbernier/toodoo
Last synced: 10 months ago
JSON representation
WIP: A gem to warn yourself about your todos while your code is running.
- Host: GitHub
- URL: https://github.com/fbernier/toodoo
- Owner: fbernier
- License: mit
- Created: 2012-03-27T04:06:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-28T03:22:12.000Z (over 14 years ago)
- Last Synced: 2025-02-07T20:43:37.731Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toodoo
Silly and probably not so useful gem which adds a toodoo kernel method to remind you you've got stuff to fix by shouting colored warnings in your console as you hit this piece of code in your development.
Inspired by this gist: https://gist.github.com/2210448
## Installation
Add this line to your application's Gemfile:
gem 'toodoo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install toodoo
## Usage
```ruby
require 'toodoo'
def as_block
toodoo('replace this shitty code', :high) do
a = 1
b = 2
puts 'herp derp'
c = a + b
end
end
def as_method
a = 1
puts 'derp herp'
toodoo('fix this please')
b = a * 2
end
as_block
as_method
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request