Ramblings

18 Aug, 2008

7 Ruby tools which are gems and why I like them

Posted by: Matt Williams In: ruby

Rubygems, those magickal behind-the-sceneslibraries we all use without thinking too much about them deserve some love.  I’m singing the praises of 7 rubygems out of those installed on my laptop (this isn’t to say that I love them more than others). What are some of y’all’s favorite gems?

  1. cheat: Cheat is a really nifty gem; it allows you to pull up “cheatsheets” for a variety of topics – ruby based and otherwise. You install it in the usual fashion (sudo gem install cheat) and find more information at http://cheat.errtheblog.com.
  2. highline: Highline is a gem for parsing console entry. It provides validation, basic menus, and more. It got it start on the rubyquiz (http://rubyquiz.com/quiz29.html) and can be installed in the usual fashion.
  3. newgem: Newgem is another excellent gem by Dr. Nic. It is used for creating gems. You can find more information about it at Dr Nic » NewGem Generator - now with script/generate.
  4. passenger: Passenger allows you to very easily deploy your rails projects to apache. The thing I love about it is that it just *works*. You don’t have to worry about whether your happ has been started or anything. Just go to the url, and it handles the rest. Tres, Tres, Tres cool. You can find more about it at: http://www.modrails.com/.
  5. rcodetools: I’ve just started working with this, but so far it seems really neat and/or useful. If you’ve seen emails on various lists which look like:
    1
    2
    3
    
    a = 1                           # => 1
    b ||= a+2                       # => 3
    c = { a => b}                   # => {1=>3}

    where the values are off to the side, rcodetools provides an easy way to create those. Additionally, it is able to assist in the creation of assertions for tests. You can find more at: http://eigenclass.org/hiki/rcodetools.

  6. ruby-debug This allows you to use the ruby debugger. It works similarly to the perl debugger and allows you to set breakpoints, view values, etc.. It’s another useful tool. More information is available at: RubyForge: ruby-debug : Project Info.
  7. ruby2ruby: A product of the seattlerb, this is a really nifty tool for learning how metaprogramming works — it parses classes and will show you the code behind the class. Somehow I’ve messed up my install, however — it’s not working properly for me any more. I’ll work on that more later. But trust me, it’s still cool.
Tags: ,

1 Response to "7 Ruby tools which are gems and why I like them"

Comment Form

Categories

DrakNet Web Hosting

  • John: Hi Matt, Sorry to hear about the time wasted and that the map didn't work out for you. I've tried to design it to be easy to setup and configure.
  • Jason Jackson: Also worth noting that if your not connecting to JBoss on localhost, make sure you have DNS set up, or a host file entry, or else you will get an exce
  • Matt Williams: Yes, there's not a lot of debugging info. One thing that I've found is that if your grammar isn't constructed "properly", it won't complain and you w

Flickr PhotoStream

    layout_newm3headerTerrain Testa

About

Matt Williams is a geekly jack of all trades residing in Columbus, OH, USA.

Recommend Me


Adopt a Dragon from Dragcave
Adopt one today!Adopt one today!Adopt one today!Adopt one today! Adopt one today! Adopt one today!Adopt one today! Adopt one today! Adopt one today! Adopt one today!