From: John Date: 2011-05-12T22:50:37+09:00 Subject: Re: gem list -rd a generates an error On May 11, 8:44 pm, Luis Lavena wrote: > On May 12, 12:18 am, John wrote: > > > > > ================================================================= > > I am trying to create a index of gem names & Summary lines > > so that I can perform keyword searches. The gem name alone > > does not provide enough info to identify the code. > > Have you taken a look to gemsearch? > > http://gemsearch.heroku.com/ > > ... =========================================================== Change path so jruby/bin after ruby/bin =========================================================== Here is an example of error: gem list -rd acts_as_taggable_simple C:\tools>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.7.2 - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby192/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby192/lib/ruby/gems/1.9.1 - C:/Users/spanton/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ ====== No error === C:\tools>gem list -rd acts_as_taggable_o *** REMOTE GEMS *** acts_as_taggable_on_steroids (1.2) Author: Jonathan Viney Rubyforge: http://rubyforge.org/projects/acts_as_taggable_on_steroids Homepage: http://github.com/jviney/acts_as_taggable_on_steroids Rails plugin that is based on acts_as_taggable by DHH but includes extras such as tests, smarter tag assignment, and tag cloud calculations. ====== ****** Error ****** ======== C:\tools>gem list -rd acts_as_taggable_simple *** REMOTE GEMS *** ERROR: While executing gem ... (NameError) uninitialized constant Psych::Syck ===== same command with options: --debug -V C:\tools>gem list -rd --debug -V acts_as_taggable_simple Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ command_manager.rb:163 - uninitialized constant Gem::Commands::ListCom mand *** REMOTE GEMS *** Exception `Gem::LoadError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/ rubygems.rb:926 - Could not find RubyGem sources (> 0.0.1) GET http://rubygems.org/latest_specs.4.8.gz Exception `Errno::EWOULDBLOCK' at C:/Ruby192/lib/ruby/1.9.1/net/ protocol.rb:135 - A non-blocking socket operation could not be completed imm ediately. - read would block 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz Exception `Errno::EWOULDBLOCK' at C:/Ruby192/lib/ruby/1.9.1/net/ protocol.rb:135 - A non-blocking socket operation could not be completed imm ediately. - read would block 304 Not Modified Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ specification.rb:198 - uninitialized constant Psych::Syck ERROR: While executing gem ... (NameError) uninitialized constant Psych::Syck C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb: 198:in `load' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb: 198:in `_load' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb: 133:in `load' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb: 133:in `fetch_spec' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/ query_command.rb:192:in `block in output_query_results' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/ query_command.rb:143:in `each' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/ query_command.rb:143:in `output_query_results' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/ query_command.rb:117:in `execute' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/ list_command.rb:31:in `execute' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ command_manager.rb:133:in `process_args' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/ command_manager.rb:103:in `run' C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb: 64:in `run' C:/Ruby192/bin/gem:21:in `
'