JEG2 / highline

A higher level command-line oriented interface.
Other
1.29k stars 137 forks source link

Suppress `Psych.safe_load` arg warn when using Psych 3.1.0+ #245

Closed koic closed 5 years ago

koic commented 5 years ago

This PR suppresses the following Psych.safe_load args warn when using Psych 3.1.0 (Ruby 2.6+).

% ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin17]
% bundle exec rake
(snip)

/Users/koic/src/github.com/JEG2/highline/test/test_string_extension.rb:44:
Passing permitted_classes with the 2nd argument of Psych.safe_load is deprecated.
Use keyword argument like Psych.safe_load(yaml, permitted_classes: ...) instead.
abinoam commented 5 years ago

Thank you @koic!

abinoam commented 5 years ago

Released https://rubygems.org/gems/highline/versions/2.0.3