aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-02-21 13:06:35 -0800
committergit <svn-admin@ruby-lang.org>2023-02-22 08:42:20 +0000
commita17b1b19b151c82319c244f3955101a4c9bffc0f (patch)
treef9e53c40f7371d9bb928f0d17f2269e45432e332 /lib/rubygems
parent0ca3a095be988c6382e92240118384a8028a5c6d (diff)
downloadruby-a17b1b19b151c82319c244f3955101a4c9bffc0f.tar.gz
[rubygems/rubygems] Always join with a string
Gem.path_separator can also be a regexp... https://github.com/rubygems/rubygems/commit/7e6e56a5f3
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/exec_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/exec_command.rb b/lib/rubygems/commands/exec_command.rb
index c708ad78ad..a0837865f9 100644
--- a/lib/rubygems/commands/exec_command.rb
+++ b/lib/rubygems/commands/exec_command.rb
@@ -56,7 +56,7 @@ to the same gem path as user-installed gems.
end
def execute
- gem_paths = { "GEM_HOME" => Gem.paths.home, "GEM_PATH" => Gem.paths.path.join(Gem.path_separator), "GEM_SPEC_CACHE" => Gem.paths.spec_cache_dir }.compact
+ gem_paths = { "GEM_HOME" => Gem.paths.home, "GEM_PATH" => Gem.paths.path.join(File::PATH_SEPARATOR), "GEM_SPEC_CACHE" => Gem.paths.spec_cache_dir }.compact
check_executable
@@ -144,7 +144,7 @@ to the same gem path as user-installed gems.
def set_gem_exec_install_paths
home = File.join(Gem.dir, "gem_exec")
- ENV["GEM_PATH"] = ([home] + Gem.path).join(Gem.path_separator)
+ ENV["GEM_PATH"] = ([home] + Gem.path).join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = home
Gem.clear_paths
end