mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
279948f622
commit
9e475eef86
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue