1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems: Updated to RubyGems 1.8.24, a bugfix release.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-07-24 00:31:31 +00:00
parent c4348fcd7f
commit 505c4eae32
4 changed files with 24 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 24 09:31:18 2012 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Updated to RubyGems 1.8.24, a bugfix release.
Tue Jul 24 08:30:15 2012 Luis Lavena <luislavena@gmail.com> Tue Jul 24 08:30:15 2012 Luis Lavena <luislavena@gmail.com>
* test/ruby/test_dir_m17n.rb (create_and_check_raw_file_name): add new * test/ruby/test_dir_m17n.rb (create_and_check_raw_file_name): add new

View file

@ -121,7 +121,7 @@ require "rubygems/deprecate"
# -The RubyGems Team # -The RubyGems Team
module Gem module Gem
VERSION = '1.8.23' VERSION = '1.8.24'
## ##
# Raised when RubyGems is unable to load or activate a gem. Contains the # Raised when RubyGems is unable to load or activate a gem. Contains the

View file

@ -209,7 +209,10 @@ TEXT
say "Installing RubyGems" if @verbose say "Installing RubyGems" if @verbose
Dir.chdir 'lib' do Dir.chdir 'lib' do
lib_files = Dir[File.join('**', '*rb')] lib_files = Dir[File.join('**', '*rb')]
# Be sure to include our SSL ca bundles
lib_files += Dir[File.join('**', '*pem')]
lib_files.each do |lib_file| lib_files.each do |lib_file|
dest_file = File.join lib_dir, lib_file dest_file = File.join lib_dir, lib_file

View file

@ -321,13 +321,24 @@ class Gem::RemoteFetcher
if https?(uri) and !connection.started? then if https?(uri) and !connection.started? then
configure_connection_for_https(connection) configure_connection_for_https(connection)
# Don't refactor this with the else branch. We don't want the
# http-only code path to not depend on anything in OpenSSL.
#
begin
connection.start
rescue OpenSSL::SSL::SSLError, Errno::EHOSTDOWN => e
raise FetchError.new(e.message, uri)
end
else
begin
connection.start unless connection.started?
rescue Errno::EHOSTDOWN => e
raise FetchError.new(e.message, uri)
end
end end
connection.start unless connection.started?
connection connection
rescue OpenSSL::SSL::SSLError, Errno::EHOSTDOWN => e
raise FetchError.new(e.message, uri)
end end
def configure_connection_for_https(connection) def configure_connection_for_https(connection)