ReplRake
Putting Repl Driven Development in your hands.
Installation
Add this line to your application's Gemfile:
gem 'repl_rake'
And then execute:
$ bundle
Or install it yourself as:
$ gem install repl_rake
Usage
Then in gem folder add this to Rakefile
require 'repl_rake'
ReplRake.setup
Use the command rake console
Any ruby code in .repl_rake.rb
will be loaded into you pry session after the base gem is required.
Credits
Credits:
- Origin of Idea: http://erniemiller.org/2014/02/05/7-lines-every-gems-rakefile-should-have/#comment-1232335498
- Rake tasks require solution: https://stackoverflow.com/questions/15446153/ruby-rake-load-tasks-from-a-gem
Contributing
- Fork it ( http://github.com/
/repl_rake/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