ruby-changes:72483
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 Jul 2022 19:01:31 +0900 (JST)
Subject: [ruby-changes:72483] 1150a54afe (master): Use `File::PATH_SEPARATOR` for the portability
https://git.ruby-lang.org/ruby.git/commit/?id=1150a54afe From 1150a54afe98171657869bd2eafd82fda59893b1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 6 Apr 2022 21:54:17 +0900 Subject: Use `File::PATH_SEPARATOR` for the portability --- tool/test-bundled-gems.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index b70576103a..0c6fafef12 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -25,7 +25,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L25 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" @@ -39,7 +39,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L39 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" @@ -54,7 +54,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L54 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/