From: "davidderyldowney (David Deryl Downey)" Date: 2012-10-22T05:28:16+09:00 Subject: [ruby-core:48141] [ruby-trunk - Bug #7204][Open] gem check -a crashes with Exception `NameError' uninitialized constant Gem::Commands::CheckCommand AND Exception `NoMethodError' undefined method `add' Issue #7204 has been reported by davidderyldowney (David Deryl Downey). ---------------------------------------- Bug #7204: gem check -a crashes with Exception `NameError' uninitialized constant Gem::Commands::CheckCommand AND Exception `NoMethodError' undefined method `add' https://bugs.ruby-lang.org/issues/7204 Author: davidderyldowney (David Deryl Downey) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.2] When running the command: gem check -a It crashes on OSX with Exception `NameError' at /Users/me/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::CheckCommand and Exception `NoMethodError' at /Users/me/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:732 - undefined method `add' for "/Users/me/.rvm/gems/ruby-1.9.3-p286@global/cache":String ERROR: While executing gem ... (NoMethodError) undefined method `add' for "/Users/me/.rvm/gems/ruby-1.9.3-p286@global/cache":String ** This bug can be reproduced in Ruby 1.8 as well as JRuby implementation. I don't believe this is a problem created by RVM but I have to report its use since its in the mix as well. This is reproducible using RVM under all installed rubies using the command: 'rvm all do gem check -a' This error was reproduced with all installed rubies. These are: rvm rubies jruby-1.6.8 [ x86_64 ] jruby-1.7.0.RC1 [ x86_64 ] ruby-1.8.7-p370 [ i686 ] ruby-1.9.2-p320 [ x86_64 ] ruby-1.9.3-head [ x86_64 ] ruby-1.9.3-p125 [ x86_64 ] ruby-1.9.3-p194 [ x86_64 ] =* ruby-1.9.3-p286 [ x86_64 ] -- http://bugs.ruby-lang.org/