-
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. -
Installing jruby with rvm and XCode 4.4
I recently setup a new Mac (running Lion) for development using jruby. As I have done many times in the past, I installed Xcode (4.4) and proceeded to install the command line tools. Next comes rvm, and we are humming along, until it complains that gcc-4.2 is not in my path. But it is. I can see it with
gcc --version
. In any case, the notes for rvm suggest using homebrew to install gcc-4.2 like so: