Changed to use chruby, chgems for Ruby on Rails.