diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-10-10 19:43:02 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-10-10 19:43:02 -0500 |
commit | a1202ef6572958f6ad10dfa5ae75c3da0fefe6b1 (patch) | |
tree | cc75b4cd3cf6f011f725cbe6cc80152360755d1a /lib/bundler/psyched_yaml.rb | |
parent | d94616dd8b028a37920cfe6c24414d664602e8c5 (diff) | |
download | bundler-a1202ef6572958f6ad10dfa5ae75c3da0fefe6b1.tar.gz |
Avoid RubyGems psych warning breaking the testsseg-rubygems-psych-warning
Diffstat (limited to 'lib/bundler/psyched_yaml.rb')
-rw-r--r-- | lib/bundler/psyched_yaml.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bundler/psyched_yaml.rb b/lib/bundler/psyched_yaml.rb index aeb2b30310..e654416a5a 100644 --- a/lib/bundler/psyched_yaml.rb +++ b/lib/bundler/psyched_yaml.rb @@ -26,3 +26,12 @@ module Bundler YamlLibrarySyntaxError = ::ArgumentError end end + +require "bundler/deprecate" +begin + Bundler::Deprecate.skip_during do + require "rubygems/safe_yaml" + end +rescue LoadError + # it's OK if the file isn't there +end |