summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-09-13 11:14:00 +0200
committergit <svn-admin@ruby-lang.org>2024-09-18 16:42:13 +0000
commit47db8bc01cac3b0008de62a0f6300ec00acef9b1 (patch)
tree6a86b781c057c0f8cc5ddc2140d470e299c1aae0 /lib
parentc14b60630d680addd5b4ef9c9b159a26a5446483 (diff)
[rubygems/rubygems] Stop fighting with ourselves
https://github.com/rubygems/rubygems/commit/7cf2fdcfa1
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/rubygems_ext.rb5
-rw-r--r--lib/rubygems/specification.rb2
2 files changed, 1 insertions, 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