From 47db8bc01cac3b0008de62a0f6300ec00acef9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 13 Sep 2024 11:14:00 +0200 Subject: [PATCH] [rubygems/rubygems] Stop fighting with ourselves https://github.com/rubygems/rubygems/commit/7cf2fdcfa1 --- lib/bundler/rubygems_ext.rb | 5 ----- lib/rubygems/specification.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index d4cc4f6216..0f0680560a 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -123,11 +123,6 @@ module Gem end end - remove_method :gem_dir - def gem_dir - full_gem_path - end - unless const_defined?(:LATEST_RUBY_WITHOUT_PATCH_VERSIONS) LATEST_RUBY_WITHOUT_PATCH_VERSIONS = Gem::Version.new("2.1") diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 594d882c6b..96e05a54b6 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1913,7 +1913,7 @@ class Gem::Specification < Gem::BasicSpecification end ## - # Work around bundler removing my methods + # Work around old bundler versions removing my methods def gem_dir # :nodoc: super