Sashimi: A Rails Plugins Manager Gem

Posted by luca
on Monday, May 19

I have a really, really bad memory: each time I need to install a Rails plugin, I Google to find the repository, then try to download the code. Often, I remember the url, but the server is down. Damn!

All this annoying issues kill the Rails rapidity on application prototyping. But, what if all the plugins which I need are available offline on my notebook? I can forget about all that urls, and I should stop to worry about the server status.

To solve this problems, I wrote Sashimi, it's a gem that manages you favourite Rails plugins in a local repository.

How It Works?

First you need to install it with:

$ (sudo) gem install jodosha-sashimi --source=http://gems.github.com

Now you can install a plugin on your local repository:
$ sashimi install git://github.com/jodosha/click-to-globalize.git

Ta-daaaa!! Now Click to Globalize is available offline:
$ sashimi list

click-to-globalize

If you need to add it to your Rails app, just move to your app root, then type:
$ sashimi add click-to-globalize

Conclusion

I found Sashimi really useful, I hope you too.

For the complete reference, please check out at the official gem page.

Comments

Leave a response

  1. Luis LavenaMay 20, 2008 @ 04:59 PM
    Great Idea! Feature request: I'll love the sashimi report the revision/sha of the installed plugins :-D Also it seems that when doing the list of plugins, your current directory get lost and it' jump into the local repository one... I'll check that later and send a patch! :-) Thank you for your work!
  2. Luca GuidiMay 21, 2008 @ 11:34 AM
    @Luis Why do you need to store the revision?
  3. Luca GuidiMay 21, 2008 @ 11:36 AM
    @Luis Why do you need to store the revision id?