From cfd8a156741ffbc9ea41044aa832b5e806577e70 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Tue, 18 Dec 2018 13:35:31 +1100 Subject: [PATCH 1/2] fix installing gems on _really_ old versions of RubyGems --- lib/bundler/rubygems_gem_installer.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index 2b7fa8e0f6f..ca5b293d001 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -10,6 +10,14 @@ def self.at(*args) end end + + attr_reader :options + + def initialize(gem, options = {}) + @options = {} + super + end + def check_executable_overwrite(filename) # Bundler needs to install gems regardless of binstub overwriting end From d47cbc243a6a37679979d55c1847dcdf636e0617 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Tue, 18 Dec 2018 14:43:07 +1100 Subject: [PATCH 2/2] make rubocop happy --- lib/bundler/rubygems_gem_installer.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index ca5b293d001..64b3c6d2707 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -10,7 +10,6 @@ def self.at(*args) end end - attr_reader :options def initialize(gem, options = {})