summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorHirotaka Azuma <azuma@scaleout.jp>2015-07-17 05:28:24 +0000
committerAndre Arko <andre@arko.net>2015-08-14 19:58:17 -0700
commit761207ede1d11261c3f7ae0355005472d6816ae4 (patch)
treee2186966ee9f1f931de9223dadd4a3eb12397e63 /lib/bundler
parentd5ce178ebba5fff5773f2d87de482ddb16fc4ab2 (diff)
downloadbundler-761207ede1d11261c3f7ae0355005472d6816ae4.tar.gz
Append specs.
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/fetcher.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index e978cadfa2..15e568cb9e 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -172,6 +172,14 @@ module Bundler
@fetchers ||= FETCHERS.map {|f| f.new(downloader, remote_uri, fetch_uri, uri) }
end
+ def http_proxy
+ if uri = connection.proxy_uri
+ uri.to_s
+ else
+ nil
+ end
+ end
+
def inspect
"#<#{self.class}:0x#{object_id} uri=#{uri}>"
end