summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-12-29 20:53:26 +0100
committergit <svn-admin@ruby-lang.org>2021-12-30 07:02:30 +0900
commit1954a95f8bf71f61ce9996a0d8a34b18bb56da3e (patch)
treee652bf43f3541bc426efcb62a29d577b8c9c7b0b
parent7304e357a8f352689e780d6da1d022c0a668d59b (diff)
[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
-rw-r--r--spec/bundler/support/artifice/vcr.rb2
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