Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge #6840
Browse files Browse the repository at this point in the history
6840: fix installing gems on _really_ old versions of RubyGems r=segiddins 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>
  • Loading branch information
bundlerbot[bot] and colby-swandale committed Dec 18, 2018
2 parents 3fc4de7 + 80789f1 commit adabba2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/bundler/rubygems_gem_installer.rb
Expand Up @@ -10,6 +10,13 @@ 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
Expand Down

0 comments on commit adabba2

Please sign in to comment.