summaryrefslogtreecommitdiff
path: root/gems/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-06-14 01:21:27 +0900
committerHiroshi SHIBATA <[email protected]>2023-06-14 12:14:20 +0900
commitc5c15a565b9b88745fe08f2ff78c2e0e5b401498 (patch)
tree26ce0f1d64f520dfacca18358b67bd50746a602e /gems/lib
parent8722342ca9b5f770e678ccc93c4f68351e267c3c (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
Diffstat (limited to 'gems/lib')
-rw-r--r--gems/lib/core_assertions.rb1
-rw-r--r--gems/lib/rake/extensiontask.rb9
2 files changed, 10 insertions, 0 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/gems/lib/rake/extensiontask.rb b/gems/lib/rake/extensiontask.rb
new file mode 100644
index 0000000000..62b7ff8018
--- /dev/null
+++ b/gems/lib/rake/extensiontask.rb
@@ -0,0 +1,9 @@
+module Rake
+ class ExtensionTask < TaskLib
+ def initialize(...)
+ task :compile do
+ puts "Dummy `compile` task defined in #{__FILE__}"
+ end
+ end
+ end
+end