diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-10-30 21:45:35 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-10-30 22:30:32 -0500 |
commit | 528ff71fd3d2833c0d961e1f65be682c1627844e (patch) | |
tree | cca77a7640758b2ff47e477c80b67c3228a9cd02 /lib/bundler.rb | |
parent | a0b8d0f822091038872679083cfb9d1addde6b7f (diff) | |
download | bundler-528ff71fd3d2833c0d961e1f65be682c1627844e.tar.gz |
Ensure bundler/psyched_yaml is always loaded before Gem.load_yaml is called
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 81c6a5b594..bef2caabcf 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -487,6 +487,8 @@ EOF private def eval_yaml_gemspec(path, contents) + Kernel.send(:require, "bundler/psyched_yaml") + # If the YAML is invalid, Syck raises an ArgumentError, and Psych # raises a Psych::SyntaxError. See psyched_yaml.rb for more info. Gem::Specification.from_yaml(contents) |