rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / ruby / puppet / patches / puppet-16-safe_yaml-rb22.patch
blobee442ee3d70258c177c5fb9b802fa34b3e74e30d
1 https://github.com/dtao/safe_yaml/issues/76
3 --- puppet-3.8.6/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rbb 2016-02-03 22:26:18.000000000 +0300
4 +++ puppet-3.8.6/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb 2016-11-30 20:12:16.434497050 +0300
5 @@ -3,7 +3,7 @@
6 # This needs to be defined up front in case any internal classes need to base
7 # their behavior off of this.
8 module SafeYAML
9 - YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : "syck"
10 + YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : (defined?(Psych) && YAML == Psych ? "psych" : "syck")
11 end
13 require "set"