summaryrefslogtreecommitdiff
path: root/lib/bundler/vendored_persistent.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-05-27 14:22:33 -0700
committerAndre Arko <andre@arko.net>2012-05-27 14:43:51 -0700
commita65c7a7117b4de6ed4133f2bfaa669162d9df0ac (patch)
treeb2f4c29c17530818145dd033c2d50592752bfe62 /lib/bundler/vendored_persistent.rb
parent040430d2fb5f41baf7de3295909e5fd38c194090 (diff)
downloadbundler-a65c7a7117b4de6ed4133f2bfaa669162d9df0ac.tar.gz
add vendored_persistent
This clears up fetcher.rb's implicit dependency on being loaded after vendored_thor (which added lib/vendor/ to the load path).
Diffstat (limited to 'lib/bundler/vendored_persistent.rb')
-rw-r--r--lib/bundler/vendored_persistent.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/vendored_persistent.rb b/lib/bundler/vendored_persistent.rb
new file mode 100644
index 0000000000..bfc69de70e
--- /dev/null
+++ b/lib/bundler/vendored_persistent.rb
@@ -0,0 +1,3 @@
+vendor = File.expand_path('../vendor', __FILE__)
+$:.unshift(vendor) unless $:.include?(vendor)
+require 'net/http/persistent'