From bee2abceba5397b3edcf1f7a6e9c6bdc229a8c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 6 Dec 2019 18:52:48 +0100 Subject: [PATCH] Last tweaks --- Rakefile | 16 ++++++++-------- .../lib/net/http/persistent.rb | 5 ++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Rakefile b/Rakefile index 4bf6dae49ff..c751bbb8239 100644 --- a/Rakefile +++ b/Rakefile @@ -254,14 +254,6 @@ else lib.vendor_lib = "lib/bundler/vendor/fileutils" end - desc "Vendor a specific version of uri" - Automatiek::RakeTask.new("uri") do |lib| - lib.download = { :github => "https://github.com/ruby/uri" } - lib.namespace = "URI" - lib.prefix = "Bundler" - lib.vendor_lib = "lib/bundler/vendor/uri" - end - # We currently cherry-pick changes to use `require_relative` internally # instead of regular `require`. They are pending review at # https://github.com/drbrain/net-http-persistent/pull/106 @@ -279,6 +271,14 @@ else sublib.prefix = "Bundler" sublib.vendor_lib = "lib/bundler/vendor/connection_pool" end + + lib.dependency("uri") do |sublib| + sublib.version = "master" + sublib.download = { :github => "https://github.com/ruby/uri" } + sublib.namespace = "URI" + sublib.prefix = "Bundler" + sublib.vendor_lib = "lib/bundler/vendor/uri" + end end end diff --git a/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb b/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb index 19a9ecb0bee..e9c4c3e89ef 100644 --- a/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +++ b/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb @@ -688,14 +688,14 @@ def error_message connection end ## - # URI::escape wrapper + # Bundler::URI::escape wrapper def escape str CGI.escape str if str end ## - # URI::unescape wrapper + # Bundler::URI::unescape wrapper def unescape str CGI.unescape str if str @@ -817,7 +817,6 @@ def private_key= key # example.com,some.host:8080. def proxy= proxy - require_relative "../../../../../vendored_uri" @proxy_uri = case proxy when :ENV then proxy_from_env when Bundler::URI::HTTP then proxy