summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-22 13:51:58 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-22 18:41:57 +0900
commit4dec4fbdfaf69d647953f0993fedaeabd31094cf (patch)
tree7f7aa47c33825dc8e7f80b6b87d38cf0ff926707
parentaf718aaf4b56aacbe38c20c298dad35a932c2019 (diff)
[rubygems/rubygems] Define dummy module for mise plugin
https://github.com/rubygems/rubygems/commit/64bdff1e1e
-rw-r--r--spec/bundler/support/hax.rb6
-rw-r--r--test/rubygems/helper.rb6
2 files changed, 12 insertions, 0 deletions
diff --git a/spec/bundler/support/hax.rb b/spec/bundler/support/hax.rb
index 772a125ec7..46718f5fa4 100644
--- a/spec/bundler/support/hax.rb
+++ b/spec/bundler/support/hax.rb
@@ -66,3 +66,9 @@ module Gem
Socket.singleton_class.prepend FakeResolv
end
end
+
+# mise installed rubygems_plugin.rb to system wide `site_ruby` directory.
+# This empty module avoid to call `mise` command.
+module ReshimInstaller
+ def self.reshim; end
+end
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index af78bab724..2f4abff1e8 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1578,3 +1578,9 @@ class Object
end
require_relative "utilities"
+
+# mise installed rubygems_plugin.rb to system wide `site_ruby` directory.
+# This empty module avoid to call `mise` command.
+module ReshimInstaller
+ def self.reshim; end
+end