Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My Ruby Setup

My Ruby Setup

A quick look at how I have Ruby set up for Rails development in OS X Lion. Shared at Lawrence Coders, May 19, 2012.

Aaron Sumner

May 24, 2012
Tweet

More Decks by Aaron Sumner

Other Decks in Programming

Transcript

  1. $ curl -L get.rvm.io | bash -s stable $ source

    ~/.rvm/scripts/rvm # rvm installation
  2. $ curl -L get.rvm.io | bash -s stable $ source

    ~/.rvm/scripts/rvm $ rvm requirements # rvm installation
  3. # rvm utilities $ rvm list known $ rvm install

    1.9.3 $ rvm use 1.9.3 $ rvm --default use 1.9.3
  4. # rvm utilities $ rvm list known $ rvm install

    1.9.3 $ rvm use 1.9.3 $ rvm --default use 1.9.3 $ rvm list
  5. # rvm utilities $ rvm list known $ rvm install

    1.9.3 $ rvm use 1.9.3 $ rvm --default use 1.9.3 $ rvm list $ rvm use ree
  6. # rvm gemsets $ rvm gemset create fbclone $ rvm

    use @fbclone $ rvm use 1.9.3@fbclone
  7. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails
  8. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails $ bundle exec
  9. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails $ bundle exec $ bundle list
  10. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails $ bundle exec $ bundle list $ bundle outdated
  11. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails $ bundle exec $ bundle list $ bundle outdated $ bundle show rails
  12. # bundler $ gem install bundler $ bundle check $

    bundle install $ bundle update rails $ bundle exec $ bundle list $ bundle outdated $ bundle show rails $ bundle open rails
  13. # Gemfile source 'http://rubygems.org' gem 'capistrano', '~> 2.8.0' gem 'rvm-capistrano',

    '~> 1.0.2' gem 'rails', '3.1.4' group :test do gem 'ffaker', '~> 1.12.1' gem 'launchy', '~> 2.1.0' gem 'ruby-debug', '~> 0.10.4' gem 'cucumber-rails', '~> 1.1.1', :require => false gem 'database_cleaner', '~> 0.7.2' gem 'timecop', "~> 0.3.5" end
  14. # go-to gems # capistrano # haml # cancan #

    simple_form # guard # rspec # capybara # factory girl