diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-02 04:25:37 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-02 04:25:37 +0000 |
commit | 9e475eef866fe47f3167c4adf69079a4ed3ca243 (patch) | |
tree | 57cb0be7d72cb9b75ca408b1990f19078ca5f3e8 /lib/rubygems/safe_yaml.rb | |
parent | 279948f6224d8fd6b701cafde185b772e9e02e52 (diff) | |
download | ruby-9e475eef866fe47f3167c4adf69079a4ed3ca243.tar.gz |
Merge release version of Rubygems 2.7.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/safe_yaml.rb')
-rw-r--r-- | lib/rubygems/safe_yaml.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rubygems/safe_yaml.rb b/lib/rubygems/safe_yaml.rb index b98cfaa5e6..789bb5e25a 100644 --- a/lib/rubygems/safe_yaml.rb +++ b/lib/rubygems/safe_yaml.rb @@ -35,7 +35,10 @@ module Gem ::YAML.safe_load(input, [::Symbol]) end else - warn "YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0)." + unless Gem::Deprecate.skip + warn "YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0)." + end + def self.safe_load input, *args ::YAML.load input end |