[rubygems/rubygems] Only override pre_install_checks
when necessary
RubyGems >= 3.5 no longer raises `Gem::FilePermissionError` explicitly. https://github.com/rubygems/rubygems/commit/df54b9fd90
This commit is contained in:
parent
0c7776a226
commit
d29a76b90b
@ -48,12 +48,14 @@ module Bundler
|
|||||||
spec
|
spec
|
||||||
end
|
end
|
||||||
|
|
||||||
def pre_install_checks
|
if Bundler.rubygems.provides?("< 3.5")
|
||||||
super
|
def pre_install_checks
|
||||||
rescue Gem::FilePermissionError
|
super
|
||||||
# Ignore permission checks in RubyGems. Instead, go on, and try to write
|
rescue Gem::FilePermissionError
|
||||||
# for real. We properly handle permission errors when they happen.
|
# Ignore permission checks in RubyGems. Instead, go on, and try to write
|
||||||
nil
|
# for real. We properly handle permission errors when they happen.
|
||||||
|
nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_plugins
|
def generate_plugins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user