mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
[rubygems/rubygems] Only override pre_install_checks
when necessary
RubyGems >= 3.5 no longer raises `Gem::FilePermissionError` explicitly.
df54b9fd90
This commit is contained in:
parent
0c7776a226
commit
d29a76b90b
1 changed files with 8 additions and 6 deletions
|
@ -48,6 +48,7 @@ module Bundler
|
||||||
spec
|
spec
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Bundler.rubygems.provides?("< 3.5")
|
||||||
def pre_install_checks
|
def pre_install_checks
|
||||||
super
|
super
|
||||||
rescue Gem::FilePermissionError
|
rescue Gem::FilePermissionError
|
||||||
|
@ -55,6 +56,7 @@ module Bundler
|
||||||
# for real. We properly handle permission errors when they happen.
|
# for real. We properly handle permission errors when they happen.
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def generate_plugins
|
def generate_plugins
|
||||||
return unless Gem::Installer.instance_methods(false).include?(:generate_plugins)
|
return unless Gem::Installer.instance_methods(false).include?(:generate_plugins)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue