diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-06-14 01:21:27 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-06-14 12:14:20 +0900 |
commit | c5c15a565b9b88745fe08f2ff78c2e0e5b401498 (patch) | |
tree | 26ce0f1d64f520dfacca18358b67bd50746a602e | |
parent | 8722342ca9b5f770e678ccc93c4f68351e267c3c (diff) |
Allow test-unit-ruby-core files to be loaded from bundled gems
Separate the directly from the customized test-unit, since it may not
work with bundled gems.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7941
-rw-r--r-- | gems/lib/core_assertions.rb | 1 | ||||
-rw-r--r-- | gems/lib/rake/extensiontask.rb (renamed from tool/dummy-rake-compiler/rake/extensiontask.rb) | 0 | ||||
-rw-r--r-- | tool/test-bundled-gems.rb | 3 |
3 files changed, 2 insertions, 2 deletions
diff --git a/gems/lib/core_assertions.rb b/gems/lib/core_assertions.rb new file mode 100644 index 0000000000..7334063885 --- /dev/null +++ b/gems/lib/core_assertions.rb @@ -0,0 +1 @@ +require_relative "../../tool/lib/core_assertions.rb" diff --git a/tool/dummy-rake-compiler/rake/extensiontask.rb b/gems/lib/rake/extensiontask.rb index 62b7ff8018..62b7ff8018 100644 --- a/tool/dummy-rake-compiler/rake/extensiontask.rb +++ b/gems/lib/rake/extensiontask.rb diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index 9e39030e04..07b7e31042 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -15,8 +15,7 @@ ENV["GEM_PATH"] = [File.realpath('.bundle'), File.realpath('../.bundle', __dir__ colorize = Colorize.new rake = File.realpath("../../.bundle/bin/rake", __FILE__) gem_dir = File.realpath('../../gems', __FILE__) -dummy_rake_compiler_dir = File.realpath('../dummy-rake-compiler', __FILE__) -rubylib = [File.expand_path(dummy_rake_compiler_dir), ENV["RUBYLIB"]].compact.join(File::PATH_SEPARATOR) +rubylib = [gem_dir+'/lib', ENV["RUBYLIB"]].compact.join(File::PATH_SEPARATOR) exit_code = 0 ruby = ENV['RUBY'] || RbConfig.ruby failed = [] |