summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-09-17 18:55:42 -0700
committerAndre Arko <andre@arko.net>2011-09-17 18:55:43 -0700
commit73b04ed902aa0265f70ea8fc54b018de554674e0 (patch)
treea4c2ca476172b551521e93c1ea03fd615cb22b6f
parent2eb123ab46877354d8a86e6bba6537568c768e4f (diff)
downloadbundler-73b04ed902aa0265f70ea8fc54b018de554674e0.tar.gz
Don't require Psych if Syck is loaded
fixes #1239
-rw-r--r--lib/bundler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index ba1cd5573a..eb1ae751e4 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -3,7 +3,8 @@ require 'fileutils'
require 'pathname'
begin
- require 'psych'
+ # Pull in Psych if we can, but not if Syck is already loaded
+ require 'psych' unless defined?(YAML)
rescue LoadError
end