-
StandardError casts message to string in Ruby 1.9
When passing a message to StandardError in ruby 1.8, it will keep that object intact. Ruby 1.9 will convert to a String. Spent more time than I wanted to chasing this down.
-
Lambdas are Picky: ArgumentError in ruby 1.9
TL:D R;
-
Run Changed Specs
I usually create a branch while working on a feature or bug. I found it helpful to add the following script to my path:
-
Faster Rspec: Jruby, Spork and Nailgun
UPDATE: You can use bundler binstubs to squeeze a bit more performance
-
Per-Project environment variables
UPDATE: I no longer source my
.env
like described in this post. I now use direnv to setup per-project local environment, including sourcing.env
. The described approach here could be exploited to do bad things to your system. Example attack: You clone a repo that includes a.env
file, when youcd
into the project, it changes yourPATH
to directory you’ve just cloned. That overridesls
or some other unix utility, which now takes over your system.