class Bundler::RubyGemsGemInstaller

def pre_install_checks

def pre_install_checks
  super
rescue Gem::FilePermissionError
  # Ignore permission checks in RubyGems. Instead, go on, and try to write
  # for real. We properly handle permission errors when they happen.
  nil
end