From e93d882d96cc536857e6c181b5f0194f15316b7d Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 26 Aug 2011 01:10:50 +0000 Subject: * lib/rubygems: Update to RubyGems 1.8.10. Fixes security issue in creating ruby-format gemspecs. Fixes Gem.dir not being at the front of Gem.path to fix uninstall and cleanup commands. Fixes gem uninstall stopping on the first missing gem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/rubygems.rb') diff --git a/lib/rubygems.rb b/lib/rubygems.rb index f469deb9a8..632b5e0a60 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -118,7 +118,7 @@ require "rubygems/deprecate" # -The RubyGems Team module Gem - VERSION = '1.8.9' + VERSION = '1.8.10' ## # Raised when RubyGems is unable to load or activate a gem. Contains the @@ -644,7 +644,15 @@ module Gem def self.load_yaml begin - require 'psych' + gem 'psych', '~> 1.2', '>= 1.2.1' unless ENV['TEST_SYCK'] + rescue Gem::LoadError + # It's OK if the user does not have the psych gem installed. We will + # attempt to require the stdlib version + end + + begin + # Try requiring the gem version *or* stdlib version of psych. + require 'psych' unless ENV['TEST_SYCK'] rescue ::LoadError ensure require 'yaml' -- cgit v1.2.3