Skip to content

Commit 4dec4fb

Browse files
committed
[rubygems/rubygems] Define dummy module for mise plugin
ruby/rubygems@64bdff1e1e
1 parent af718aa commit 4dec4fb

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

spec/bundler/support/hax.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ def getaddrinfo(host, port)
6666
Socket.singleton_class.prepend FakeResolv
6767
end
6868
end
69+
70+
# mise installed rubygems_plugin.rb to system wide `site_ruby` directory.
71+
# This empty module avoid to call `mise` command.
72+
module ReshimInstaller
73+
def self.reshim; end
74+
end

test/rubygems/helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,3 +1578,9 @@ def stub(name, val_or_callable, *block_args)
15781578
end
15791579

15801580
require_relative "utilities"
1581+
1582+
# mise installed rubygems_plugin.rb to system wide `site_ruby` directory.
1583+
# This empty module avoid to call `mise` command.
1584+
module ReshimInstaller
1585+
def self.reshim; end
1586+
end

0 commit comments

Comments
 (0)