summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaverio Miroddi <saverio.pub2@gmail.com>2018-03-11 23:07:09 +0100
committerSaverio Miroddi <saverio.pub2@gmail.com>2018-03-11 23:07:09 +0100
commit431a51d8e2dc7312b8a0f7c68f878c3efbde1c7b (patch)
tree0f9e6372777070526d62360b16d602b1378b7afd
parenta160041400df2bcb5b2dd0dd88c788d4bbfcf8ea (diff)
downloadbundler-431a51d8e2dc7312b8a0f7c68f878c3efbde1c7b.tar.gz
Bundler::Plugin::Installer: remove the obsolete (and unneeded) URI.escape
URI.escape is officially obsolete, and the Git source supports file paths anyway.
-rw-r--r--lib/bundler/plugin/installer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/plugin/installer.rb b/lib/bundler/plugin/installer.rb
index 9536ca3f1d..42bc1e71e6 100644
--- a/lib/bundler/plugin/installer.rb
+++ b/lib/bundler/plugin/installer.rb
@@ -54,8 +54,7 @@ module Bundler
end
if sources[:file]
- file_uri = "file://#{URI.escape(sources[:file])}"
- source_list.add_git_source(options.merge("uri" => file_uri))
+ source_list.add_git_source(options.merge("uri" => sources[:file]))
end
if sources[:source]