Browse files

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).
  • Loading branch information...
1 parent 040430d commit a65c7a7117b4de6ed4133f2bfaa669162d9df0ac @indirect indirect committed May 27, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/bundler/fetcher.rb
  2. +3 −0 lib/bundler/vendored_persistent.rb
View
2 lib/bundler/fetcher.rb
@@ -1,5 +1,5 @@
require 'uri'
-require 'net/http/persistent'
+require 'bundler/vendored_persistent'
module Bundler
# Handles all the fetching with the rubygems server
View
3 lib/bundler/vendored_persistent.rb
@@ -0,0 +1,3 @@
+vendor = File.expand_path('../vendor', __FILE__)
+$:.unshift(vendor) unless $:.include?(vendor)
+require 'net/http/persistent'

0 comments on commit a65c7a7

Please sign in to comment.