1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prepare to release bundler-2.1.0

This commit is contained in:
Hiroshi SHIBATA 2019-12-14 19:49:16 +09:00 committed by SHIBATA Hiroshi
parent e2b192f7d5
commit 38002a8adb
Notes: git 2019-12-15 16:41:38 +09:00
146 changed files with 4685 additions and 459 deletions

View file

@ -1,7 +1,5 @@
# frozen_string_literal: true
require "uri"
module Bundler
module Plugin
class API
@ -108,7 +106,7 @@ module Bundler
def install_path
@install_path ||=
begin
base_name = File.basename(URI.parse(uri).normalize.path)
base_name = File.basename(Bundler::URI.parse(uri).normalize.path)
gem_install_dir.join("#{base_name}-#{uri_hash[0..11]}")
end
@ -170,7 +168,7 @@ module Bundler
#
# This is used by `app_cache_path`
def app_cache_dirname
base_name = File.basename(URI.parse(uri).normalize.path)
base_name = File.basename(Bundler::URI.parse(uri).normalize.path)
"#{base_name}-#{uri_hash}"
end