Created
February 2, 2010 18:36
-
-
Save jtrupiano/292898 to your computer and use it in GitHub Desktop.
Demonstrate how multiple versions of the same gems with gem plugins not only get added to the load path but take precedence over the more recent versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| john-mbp:projects john$ irb -f | |
| irb(main):001:0> require 'pp' | |
| => true | |
| irb(main):002:0> pp $: | |
| ["/Library/Ruby/Site/1.8", | |
| "/Library/Ruby/Site/1.8/powerpc-darwin9.0", | |
| "/Library/Ruby/Site/1.8/universal-darwin9.0", | |
| "/Library/Ruby/Site", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin9.0", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0", | |
| "."] | |
| => nil | |
| irb(main):003:0> require 'rubygems' | |
| => true | |
| irb(main):004:0> pp $: | |
| ["/Library/Ruby/Gems/1.8/gems/gemcutter-0.1.4/lib", | |
| "/Library/Ruby/Gems/1.8/gems/gemcutter-0.1.6/lib", | |
| "/Library/Ruby/Gems/1.8/gems/gemcutter-0.1.8/lib", | |
| "/Library/Ruby/Gems/1.8/gems/gemcutter-0.2.0/lib", | |
| "/Library/Ruby/Gems/1.8/gems/gemcutter-0.2.1/lib", | |
| "/Library/Ruby/Gems/1.8/gems/gemcutter-0.3.0/lib", | |
| "/Library/Ruby/Gems/1.8/gems/bundler-0.8.1/bin", | |
| "/Library/Ruby/Gems/1.8/gems/bundler-0.8.1/lib", | |
| "/Library/Ruby/Gems/1.8/gems/open_gem-1.3.1/bin", | |
| "/Library/Ruby/Gems/1.8/gems/open_gem-1.3.1/lib", | |
| "/Library/Ruby/Site/1.8", | |
| "/Library/Ruby/Site/1.8/powerpc-darwin9.0", | |
| "/Library/Ruby/Site/1.8/universal-darwin9.0", | |
| "/Library/Ruby/Site", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin9.0", | |
| "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0", | |
| "."] | |
| => nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment