summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorWaldemar Quevedo <waldemar.quevedo@gmail.com>2012-11-20 05:26:10 +0900
committerWaldemar Quevedo <waldemar.quevedo@gmail.com>2012-11-20 05:30:17 +0900
commit30ba0da50ad05bc9115ec82f201cc67c998d3454 (patch)
tree2dc6a4ba996bb373548c5c06a69380af5a64b0f0 /lib/bundler.rb
parent402faf456bfe2b239aa4ef95a0c9870edf7bb00b (diff)
downloadbundler-30ba0da50ad05bc9115ec82f201cc67c998d3454.tar.gz
Continue catching ArgumentError on YAML parsing errors in order to eval
when using Syck as the YAML::ENGINE.yamler
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 0360d5cc9a..cf4463e6a3 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -295,7 +295,7 @@ module Bundler
Gem::Specification.from_yaml(contents)
# Raises ArgumentError if the file is not valid YAML (on syck)
# Psych raises a Psych::SyntaxError
- rescue YamlSyntaxError, Gem::EndOfYAMLException, Gem::Exception
+ rescue YamlSyntaxError, ArgumentError, Gem::EndOfYAMLException, Gem::Exception
eval_gemspec(path, contents)
end
else