summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-10-15 16:15:49 +0900
committernagachika <nagachika@ruby-lang.org>2022-10-15 16:15:49 +0900
commitef7cf5304eeb1835d4bf50f0001f7fd889b630a7 (patch)
treefa75f3d7b408e9a618697dae4e2e72eb528447ff /tool
parent830fbb412b1c01f0a44b66a70b946d7e87feb6e5 (diff)
merge revision(s) 1150a54afe98171657869bd2eafd82fda59893b1:
Use `File::PATH_SEPARATOR` for the portability --- tool/test-bundled-gems.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Diffstat (limited to 'tool')
-rw-r--r--tool/test-bundled-gems.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index f130301ffd..6312e1872d 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -27,7 +27,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
if gem == "typeprof"
rbs_build_dir = 'ext/-test-/gems/rbs'
raise "need to run rbs test suite before typeprof" unless File.readable?("#{rbs_build_dir}/rbs_extension.#{RbConfig::CONFIG['DLEXT']}")
- ENV["RUBYLIB"] = ["#{gem_dir}/src/rbs/lib", ENV.fetch("RUBYLIB", nil)].compact.join(":")
+ ENV["RUBYLIB"] = ["#{gem_dir}/src/rbs/lib", ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR)
end
if gem == "rbs"
@@ -41,7 +41,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
extconf_path = File.expand_path('../../gems/src/rbs/ext/rbs_extension/extconf.rb', __FILE__)
system("#{ruby} -C #{build_dir} #{extconf_path}") or raise
system("cd #{build_dir} && make extout=../../../../.ext libdir=../../../..") or raise
- ENV["RUBYLIB"] = [File.expand_path(dummy_rake_compiler_dir), File.expand_path(build_dir), ENV.fetch("RUBYLIB", nil)].compact.join(":")
+ ENV["RUBYLIB"] = [File.expand_path(dummy_rake_compiler_dir), File.expand_path(build_dir), ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR)
end
if gem == "minitest"
@@ -56,7 +56,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
extconf_path = File.expand_path('../../gems/src/debug/ext/debug/extconf.rb', __FILE__)
system("#{ruby} -C #{build_dir} #{extconf_path}") or raise
system("cd #{build_dir} && make extout=../../../../.ext libdir=../../../..") or raise
- ENV["RUBYLIB"] = [File.expand_path(build_dir + "/.."), ENV.fetch("RUBYLIB", nil)].compact.join(":")
+ ENV["RUBYLIB"] = [File.expand_path(build_dir + "/.."), ENV.fetch("RUBYLIB", nil)].compact.join(File::PATH_SEPARATOR)
end
print "[command]" if github_actions