on.code && such
About Book Reviews Categories Archives
  • StandardError casts message to string in Ruby 1.9

    Nov 16, 2012 • Ylan Segal • ruby

    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.

    Read on →

  • Lambdas are Picky: ArgumentError in ruby 1.9

    Nov 7, 2012 • Ylan Segal • ruby

    TL:D R;

    Read on →

  • Run Changed Specs

    Oct 16, 2012 • Ylan Segal • unix, rspec

    I usually create a branch while working on a feature or bug. I found it helpful to add the following script to my path:

    Read on →

  • Faster Rspec: Jruby, Spork and Nailgun

    Oct 2, 2012 • Ylan Segal • jruby, spork, rspec

    UPDATE: You can use bundler binstubs to squeeze a bit more performance

    Read on →

  • Per-Project environment variables

    Sep 25, 2012 • Ylan Segal • unix, foreman

    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 you cd into the project, it changes your PATH to directory you’ve just cloned. That overrides ls or some other unix utility, which now takes over your system.

    Read on →

« Older Newer »

© 2012-2025 Ylan Segal - Terms of Service - Powered by Jekyll & whiteglass - Subscribe via RSS