summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-10-09 12:28:57 +0200
committergit <[email protected]>2024-10-09 12:18:05 +0000
commitd10e09b7e345c803c16e05ac3e75eb23749d4024 ()
treea20eca05f7ad527678ea690b7f83b6e4cd76a58b /lib/rubygems
parent3aa044f10c1db1608974ba4bc282c7dd1c9db3f5 (diff)
[rubygems/rubygems] Add `Gem::Specification#gem_dir` back
If old Bundler versions that unconditionally try to remove this method are run with RubyGems versions _without_ this method, Bundler crashes because it tries to remove a method that does not exist. We need to wait until RubyGems cannot install any Bundler versions that unconditionally remove this method. https://.com/rubygems/rubygems/commit/98804d261d
-rw-r--r--lib/rubygems/specification.rb8
1 files changed, 8 insertions, 0 deletions
@@ -1912,6 +1912,14 @@ class Gem::Specification < Gem::BasicSpecification
@full_name ||= super
end
def gems_dir
@gems_dir ||= File.join(base_dir, "gems")
end