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

Fix bundle gem generating unparsable ruby #6304

Merged

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Feb 22, 2018

What was the end-user problem that led to this PR?

The problem was that the main file in a gem generated by bundle gem can't be inspected via rubocop.

What was your diagnosis of the problem?

My diagnosis was bundler was generating unparsable ruby in the generated gem.

What is your fix for the problem, implemented in this PR?

My fix was to change the offending template to generate valid ruby code.

Why did you choose this fix out of the possible options?

I chose this fix because it's the only one, really.

@deivid-rodriguez deivid-rodriguez changed the title Fix new gem generation crash Fix bundle gem generating unparsable ruby Feb 22, 2018
@colby-swandale
Copy link
Member

Nice catch! Thanks! @bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit 9a83283 has been approved by colby-swandale

@bundlerbot
Copy link
Collaborator

⌛ Testing commit 9a83283 with merge 3d82585...

bundlerbot added a commit that referenced this pull request Feb 22, 2018
…r=colby-swandale

Fix `bundle gem` generating unparsable ruby

### What was the end-user problem that led to this PR?

The problem was that the main file in a gem generated by `bundle gem` can't be inspected via `rubocop`.

### What was your diagnosis of the problem?

My diagnosis was `bundler` was generating unparsable ruby in the generated gem.

### What is your fix for the problem, implemented in this PR?

My fix was to change the offending template to generate valid ruby code.

### Why did you choose this fix out of the possible options?

I chose this fix because it's the only one, really.
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: colby-swandale
Pushing 3d82585 to master...

@bundlerbot bundlerbot merged commit 9a83283 into rubygems:master Feb 22, 2018
@deivid-rodriguez deivid-rodriguez deleted the fix/new_gem_generation_crash branch February 22, 2018 21:27
@deivid-rodriguez
Copy link
Member Author

Thanks @colby-swandale!

@colby-swandale colby-swandale added this to the 1.16.2 milestone Feb 22, 2018
@colby-swandale colby-swandale modified the milestones: 1.16.2, 1.17.0 Apr 4, 2018
@colby-swandale colby-swandale modified the milestones: 1.17.0, 1.16.3 May 23, 2018
colby-swandale pushed a commit that referenced this pull request Sep 20, 2018
…r=colby-swandale

Fix `bundle gem` generating unparsable ruby

### What was the end-user problem that led to this PR?

The problem was that the main file in a gem generated by `bundle gem` can't be inspected via `rubocop`.

### What was your diagnosis of the problem?

My diagnosis was `bundler` was generating unparsable ruby in the generated gem.

### What is your fix for the problem, implemented in this PR?

My fix was to change the offending template to generate valid ruby code.

### Why did you choose this fix out of the possible options?

I chose this fix because it's the only one, really.

(cherry picked from commit 3d82585)
colby-swandale pushed a commit that referenced this pull request Oct 5, 2018
…r=colby-swandale

Fix `bundle gem` generating unparsable ruby

### What was the end-user problem that led to this PR?

The problem was that the main file in a gem generated by `bundle gem` can't be inspected via `rubocop`.

### What was your diagnosis of the problem?

My diagnosis was `bundler` was generating unparsable ruby in the generated gem.

### What is your fix for the problem, implemented in this PR?

My fix was to change the offending template to generate valid ruby code.

### Why did you choose this fix out of the possible options?

I chose this fix because it's the only one, really.

(cherry picked from commit 3d82585)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants