diff options
author | bundlerbot[bot] <bundlerbot[bot]@users.noreply.github.com> | 2018-12-27 00:03:43 +0000 |
---|---|---|
committer | bundlerbot[bot] <bundlerbot[bot]@users.noreply.github.com> | 2018-12-27 00:03:43 +0000 |
commit | d74b5e8093e2232873caa605e3d0416db2ca5145 (patch) | |
tree | 55d9aa5d20c592e4bc20709da640154e09a3c2b9 | |
parent | 1080d1f881186c4d968944cbac5cc6b279a6e603 (diff) | |
parent | d47cbc243a6a37679979d55c1847dcdf636e0617 (diff) | |
download | bundler-d74b5e8093e2232873caa605e3d0416db2ca5145.tar.gz |
Merge #6840
6840: fix installing gems on _really_ old versions of RubyGems r=colby-swandale a=colby-swandale
### What was the end-user problem that led to this PR?
Installing gems on _really really_ old versions of RubyGems is not working. See #6839
### What was your diagnosis of the problem?
We were accessing an instance variable which did not exist
### What is your fix for the problem, implemented in this PR?
instantiate the instance variable ourselves.
### Why did you choose this fix out of the possible options?
This was the simplest solution that can be easily merged with `1-17-stable`
Fixes #6839
Co-authored-by: Colby Swandale <me@colby.fyi>
-rw-r--r-- | lib/bundler/rubygems_gem_installer.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index 2b7fa8e0f6..64b3c6d270 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -10,6 +10,13 @@ module Bundler 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 |