Create your own rake console
I’ve been working on small ruby gems lately of the same theme: ruby wrappers to different kinds of interfaces, be it a RESTful API, SOAP API, or even shell commands. When I dive into one, I usually find myself wanting to inspect/debug the gem via irb.
That usually required me to find the right set of command options to load the gem properly in irb or do something like this repeatedly:
I got tired of the routine that I made a rake task for it:
Put that code snippet above in your Rakefile and you’re good to go:
Happy coding!