diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-12-29 20:53:26 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-30 07:02:30 +0900 |
commit | 1954a95f8bf71f61ce9996a0d8a34b18bb56da3e (patch) | |
tree | e652bf43f3541bc426efcb62a29d577b8c9c7b0b /spec/bundler/support | |
parent | 7304e357a8f352689e780d6da1d022c0a668d59b (diff) | |
download | ruby-1954a95f8bf71f61ce9996a0d8a34b18bb56da3e.tar.gz |
[rubygems/rubygems] Better way to join path components
The current way works, but error messages show duplicate "/" in paths,
which is weird.
https://github.com/rubygems/rubygems/commit/9123deb4fa
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/artifice/vcr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/artifice/vcr.rb b/spec/bundler/support/artifice/vcr.rb index 0d51201bef..ceb133346f 100644 --- a/spec/bundler/support/artifice/vcr.rb +++ b/spec/bundler/support/artifice/vcr.rb @@ -69,7 +69,7 @@ class BundlerVCRHTTP < Net::HTTP end def file_name_for_key(key) - key.join("/").gsub(/[\:*?"<>|]/, "-") + File.join(*key).gsub(/[\:*?"<>|]/, "-") end def request_pair_paths |