From: murphy Date: 2007-12-24T04:29:18+09:00 Subject: Gem loading twice on Ruby 1.9? hello! this problem with Rubygems 1.0 only appears in Ruby 1.9. I load some gem with the gem method and give it a version that doesn't exists: $ ruby19 -we "gem 'rake', '~> 99.42'" /usr/local/lib/ruby/1.9/rubygems/defaults.rb:10: warning: method redefined; discarding old default_dir /usr/local/lib/ruby/1.9/rubygems.rb:49: warning: method redefined; discarding old gem /usr/local/lib/ruby/1.9/rubygems.rb:174: warning: method redefined; discarding old ensure_gem_subdirectories /usr/local/lib/ruby/1.9/rubygems.rb:211: warning: method redefined; discarding old dir /usr/local/lib/ruby/1.9/rubygems.rb:234: warning: method redefined; discarding old path /usr/local/lib/ruby/1.9/rubygems.rb:485: warning: method redefined; discarding old set_home /usr/local/lib/ruby/1.9/rubygems.rb:491: warning: method redefined; discarding old set_paths /usr/local/lib/ruby/1.9/rubygems.rb:379:in `raise': RubyGem version error: rake(0.8.0 not ~> 99.42) (Gem::LoadError) from /usr/local/lib/ruby/1.9/rubygems.rb:379:in `report_activate_error' from /usr/local/lib/ruby/1.9/rubygems.rb:311:in `activate' from /usr/local/lib/ruby/1.9/rubygems.rb:65:in `active_gem_with_options' from /usr/local/lib/ruby/1.9/rubygems.rb:50:in `gem' from gem_prelude.rb:122:in `push_gem_version_on_load_path' from gem_prelude.rb:11:in `gem' from -e:1:in `
' these warnings sound like rubygems was loaded twice. this makes Rails' test output currently a bit noisy... [murphy]