summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb12
1 files changed, 10 insertions, 2 deletions
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'