Installing Ruby 1.9 on Mac OS X 10.5
Tommie over at The blog with no name has written up a how-to on getting Ruby 1.9 up and running in Mac OS X 10.5.7. Check it out: http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x
How to optionally load gems
I ran into an interesting problem today at work. I wanted to optionally require a ruby gem. For example, I wanted to include the metric_fu rake tasks, but if a user doesn’t have metric_fu installed, it’s no big deal. Here’s how I implemented it. I added a method to the Kernel space (where require lives) […]
Recover files from git after deletion is committed
As I work with git, I have occasionally deleted files that I later end up needing. You can restore the files, but it’s not an intuitive process. First, I looked at the output of git log to find the commit that I deleted the files with. Then I ran: [text] git diff –diff-filter=D –name-only HEAD@{‘7 […]