Backport #8019

Ruby 2.0.0p0 does not list remote gems anymore

Added by Ike Miller about 1 year ago. Updated about 1 year ago.

[ruby-core:53140]
Status:Closed
Priority:High
Assignee:Tomoyuki Chikanaga

Description

gem list --remote --source http://gems.github.com

-just prints "*** REMOTE GEMS ***" then sits in an endless loop; same for other gem-repositories.
-tested it with 1.9.2 from same PCs: worked fine, so it is really a 2.0.0 problem
-tested it with 32bit and 64bit installers on different PCs (XP & Win7/64): always same result, reproducable error

Associated revisions

Revision 39797
Added by Tomoyuki Chikanaga about 1 year ago

merge revision(s) 39606,39609: [Backport #8019]

* lib/rubygems/commands/query_command.rb:  Only fetch remote specs when
  showing details.  [ruby-trunk - Bug #8019]  RubyGems bug #487

* lib/rubygems/remote_fetcher.rb:  ditto.

* lib/rubygems/security/policy.rb:  ditto.

* test/rubygems/test_gem_commands_query_command.rb:  Test for the
  above.

* lib/rubygems/security.rb:  Make OpenSSL optional for RubyGems.

* lib/rubygems/commands/cert_command.rb:  ditto.

* lib/rubygems/config_file.rb:  Display file with YAML error, not
  ~/.gemrc

* lib/rubygems/remote_fetcher.rb:  Only create gem subdirectories when
  installing gems.

* lib/rubygems/dependency_resolver.rb:  ditto.

* lib/rubygems/test_utilities.rb:  ditto.

* test/rubygems/test_gem_commands_fetch_command.rb:  Test for the
  above.

* lib/rubygems/spec_fetcher.rb:  Only try to upgrade
  http://rubygems.org to HTTPS

* test/rubygems/test_gem_spec_fetcher.rb:  Test for the above.

* lib/rubygems.rb:  Update win_platform? check for JRuby compatibility.

* test/rubygems/test_gem_installer.rb:  Update for Ruby 1.9.2
  compatibility

* test/rubygems/test_gem_spec_fetcher.rb:  Removed unused variable.

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to Eric Hodel
  • Target version set to 2.1.0

=begin
I'm uncertain this is related to this issue, SSLErrors are shown with
ruby -d option.

Exception OpenSSL::SSL::SSLError' at /opt/local/lib/ruby/2.1.0/net/http.rb:917 - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
Exception
OpenSSL::SSL::SSLError' at /opt/local/lib/ruby/2.1.0/net/http.rb:925 - SSLconnect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
Exception Gem::RemoteFetcher::FetchError' at /opt/local/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:407 - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (http://gems.github.com/latest_specs.4.8.gz)
Exception
Gem::RemoteFetcher::FetchError' at /opt/local/lib/ruby/2.1.0/rubygems/remote
fetcher.rb:282 - SSLconnect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (http://gems.github.com/latestspecs.4.8.gz)
=end

#2 Updated by Eric Hodel about 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39606.
Ike, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rubygems/commands/query_command.rb: Only fetch remote specs when showing details. [ruby-trunk - Bug #8019] RubyGems bug #487
  • lib/rubygems/remote_fetcher.rb: ditto.
  • lib/rubygems/security/policy.rb: ditto.
  • test/rubygems/testgemcommandsquerycommand.rb: Test for the
    above.

  • lib/rubygems/security.rb: Make OpenSSL optional for RubyGems.

  • lib/rubygems/commands/cert_command.rb: ditto.

  • lib/rubygems/config_file.rb: Display file with YAML error, not
    ~/.gemrc

  • lib/rubygems/remote_fetcher.rb: Only create gem subdirectories when
    installing gems.

  • lib/rubygems/dependency_resolver.rb: ditto.

  • lib/rubygems/test_utilities.rb: ditto.

  • test/rubygems/testgemcommandsfetchcommand.rb: Test for the
    above.

  • lib/rubygems/spec_fetcher.rb: Only try to upgrade
    http://rubygems.org to HTTPS

  • test/rubygems/testgemspec_fetcher.rb: Test for the above.

  • lib/rubygems.rb: Update win_platform? check for JRuby compatibility.

  • test/rubygems/testgeminstaller.rb: Update for Ruby 1.9.2
    compatibility

#3 Updated by Tomoyuki Chikanaga about 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (lib)
  • Status changed from Closed to Assigned
  • Assignee changed from Eric Hodel to Tomoyuki Chikanaga
  • Target version deleted (2.1.0)

#4 Updated by Tomoyuki Chikanaga about 1 year ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r39797.
Ike, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39606,39609: [Backport #8019]

* lib/rubygems/commands/query_command.rb:  Only fetch remote specs when
  showing details.  [ruby-trunk - Bug #8019]  RubyGems bug #487

* lib/rubygems/remote_fetcher.rb:  ditto.

* lib/rubygems/security/policy.rb:  ditto.

* test/rubygems/test_gem_commands_query_command.rb:  Test for the
  above.

* lib/rubygems/security.rb:  Make OpenSSL optional for RubyGems.

* lib/rubygems/commands/cert_command.rb:  ditto.

* lib/rubygems/config_file.rb:  Display file with YAML error, not
  ~/.gemrc

* lib/rubygems/remote_fetcher.rb:  Only create gem subdirectories when
  installing gems.

* lib/rubygems/dependency_resolver.rb:  ditto.

* lib/rubygems/test_utilities.rb:  ditto.

* test/rubygems/test_gem_commands_fetch_command.rb:  Test for the
  above.

* lib/rubygems/spec_fetcher.rb:  Only try to upgrade
  http://rubygems.org to HTTPS

* test/rubygems/test_gem_spec_fetcher.rb:  Test for the above.

* lib/rubygems.rb:  Update win_platform? check for JRuby compatibility.

* test/rubygems/test_gem_installer.rb:  Update for Ruby 1.9.2
  compatibility

* test/rubygems/test_gem_spec_fetcher.rb:  Removed unused variable.

Also available in: Atom PDF