• Save
RVM - NHRuby Nov 2009
Upcoming SlideShare
Loading in...5
×
 

RVM - NHRuby Nov 2009

on

  • 1,728 views

Overview of the Ruby Version Manager (http://rvm.beginrescueend.com) by Wayne Seguin.

Overview of the Ruby Version Manager (http://rvm.beginrescueend.com) by Wayne Seguin.

Statistics

Views

Total Views
1,728
Views on SlideShare
1,704
Embed Views
24

Actions

Likes
3
Downloads
0
Comments
0

2 Embeds 24

http://nhruby.org 22
http://www.nhruby.org 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

RVM - NHRuby Nov 2009 RVM - NHRuby Nov 2009 Presentation Transcript

  • RVM Ruby Version Manager Brian Turnbull NH Ruby — 16 November 2009
  • Cut Rubies With Ease http://rvm.beginrescueend.com #rvm on irc.freenode.net
  • Getting Started ‣ Install as a Gem ‣ Clone Git repository ‣ Source tarball Flickr: “Egg with directional shadow and background” by Tsja http://www.flickr.com/photos/10451396@N00/337315801
  • Make it Work ## End of ~/.bash_profile if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm fi ## /etc/rvmrc ## ~/.rvmrc export rvm_archflags="-arch x86_64" export rvm_make_flags="-j 3" export rvm_install_on_use_flag=1 Flickr: “Martillo / Hammer” by Kaworu Koneru http://www.flickr.com/photos/kaworukoneru/2230794481
  • What Now? Learn It ➡ $ rvm list --all Live It ➡ $ rvm install 1.8.7 Love It ➡ $ rvm 1.8.7
  • What Just Happened? $ rvm 1.8.7 $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ... $ which ruby /Users/brian/.rvm/ruby-1.8.7-p174/bin/ruby $ rvm system $ which ruby /usr/bin/ruby
  • Be Specific $ rvm list ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) ... ruby-1.8.7-p173: ruby 1.8.7 (2009-06-08 patchlevel 173) ... => ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ... => (default) ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ... system: ruby 1.8.7 (2008-08-11 patchlevel 72) ... $ rvm 1.8.7-p173 $ ruby -v ruby 1.8.7 (2009-06-08 patchlevel 173) ... $ rvm 1.8.7 $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ...
  • Playing Favorites $ rvm 1.8.7-p174 --default $ rvm 1.8.6-p383 $ ruby -v ruby 1.8.6 (2009-08-04 patchlevel 383) ... $ rvm default $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ...
  • Make It Shiny $ rvm 1.8.7-p174 $ gem install net-ssh Successfully installed net-ssh-2.0.15 1 gem installed $ rvm 1.8.6-p383 $ irb ruby-1.8.6-p383 > require 'net/ssh' LoadError: no such file to load -- net/ssh
  • 1.8.7 Gems Gems 1.8.6
  • 1.8.7 Gems gem sync Gems 1.8.6
  • 1.8.7 Gems dg uem mps /yoa l ncd Gems 1.8.6
  • Named Gem Sets 1.8.7 Compartmentalize a Default Gem ‣ set of gems under a Ruby interpreter Gems Set Gem Set
  • Named Gem Sets 1.8.7 t Se Compartmentalize a Default Gem ‣ em set of gems under a Gems Set Ruby interpreter G Gem Set
  • Tricks $ rvm 1.8.6,1.8.7,1.9.1 rake spec ... lotsa passing tests ... $ rvm 1.8.6,1.8.7,1.9.1 --json rake spec ... lotsa passing tests ... ... and a nice JSON summary ... $ PS1="$PS1$(~/.rvm/bin/rvm-prompt) " $ rvm update [--head] $ bundle_dir = ENV["GEM_PATH"] || %x{source ~/.rvm/scripts/rvm && rvm gemdir}
  • Demo! Flickr: “Crash & Burn” by Handforged http://www.flickr.com/photos/handforged/292093553
  • RVM Ruby Version Manager Brian Turnbull NH Ruby — 16 November 2009