ripl/irb the way I like it (enhanced with boson)
Contains libraries of ruby commands/snippets, some original and some copied.
These libraries are managed and run by my command framework, boson.
Despite what the project name implies, all these commands can be used within ripl(irb) or from the
commandline thanks to boson.
Here’s a brief outline and description of major directories under boson/:
If you want to just try one or two libraries/files under boson/ without boson, simply require and include them:
$ ripl -f
>> require "boson/commands/public/color"
>> class<<self; include Color; end
Note: this only works for libraries that don’t depend on other libraries, don’t use boson commands
and don’t rely on boson for default options.
If you want to install a boson library using boson:
# make sure to point to the code only url
bash> boson install http://github.com/cldwalker/irbfiles/raw/master/boson/commands/public/irb_core.rb
If you want to use boson in ripl(irb) as a I do:
git clone git://github.com/cldwalker/irbfiles.git
bundle install --system
. You can leave off --system
but then you will need to runbundle exec
in this directory to use any of the commandline tools like lightning.ruby install.rb
to symlink to ~/.boson and ~/.irbrcTo see all the command goodies available to you:
# from bundle exec ripl
>> libraries
# from commandline
bash> boson libraries