From: Ryan Davis Date: 2009-03-31T17:36:25+09:00 Subject: [ruby-core:23079] Re: [Bug #1335] RubyGems 1.3.1 gem method will load all gems beginning with the given name On Mar 30, 2009, at 22:20 , Hal Brodigan wrote: > I noticed a strange behaviour while testing my libraries with Ruby > 1.9.1-p0. I successfully installed ronin version 0.2.2 and ronin- > scanners version 0.1.3 with Ruby 1.9.1-p0. When I attempted to load > the ronin RubyGem using "gem 'ronin'", I noticed that ronin-scanners > 0.1.3 was also loaded into $LOAD_PATH. Since lib/ directories with > similar layouts were included into the $LOAD_PATH, this caused > various loading issues. If I understand you correctly, it isn't the gem command, it is ruby 1.9 in general. Look at your $: before calling #gem at all. This is intentional behavior. 504 % ~/.multiruby/install/1.9.1-p0/bin/gem list *** LOCAL GEMS *** hoe (1.11.0) rake (0.8.4) rubyforge (1.0.3) 505 % ~/.multiruby/install/1.9.1-p0/bin/irb >> $: => ["/Users/ryan/.multiruby/install/1.9.1-p0/lib/ruby/gems/1.9.1/gems/ hoe-1.11.0/bin", "/Users/ryan/.multiruby/install/1.9.1-p0/lib/ruby/ gems/1.9.1/gems/hoe-1.11.0/lib", "/Users/ryan/.multiruby/install/1.9.1- p0/lib/ruby/gems/1.9.1/gems/rake-0.8.4/bin", "/Users/ryan/.multiruby/ install/1.9.1-p0/lib/ruby/gems/1.9.1/gems/rake-0.8.4/lib", "/Users/ ryan/.multiruby/install/1.9.1-p0/lib/ruby/gems/1.9.1/gems/ rubyforge-1.0.3/bin", "/Users/ryan/.multiruby/install/1.9.1-p0/lib/ ruby/gems/1.9.1/gems/rubyforge-1.0.3/lib", ...]