mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[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.
98804d261d
This commit is contained in:
parent
3aa044f10c
commit
d10e09b7e3
1 changed files with 8 additions and 0 deletions
|
@ -1912,6 +1912,14 @@ class Gem::Specification < Gem::BasicSpecification
|
||||||
@full_name ||= super
|
@full_name ||= super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
##
|
||||||
|
# Work around old bundler versions removing my methods
|
||||||
|
# Can be removed once RubyGems can no longer install Bundler 2.5
|
||||||
|
|
||||||
|
def gem_dir # :nodoc:
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
def gems_dir
|
def gems_dir
|
||||||
@gems_dir ||= File.join(base_dir, "gems")
|
@gems_dir ||= File.join(base_dir, "gems")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue