Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route generator should be idempotent #22083

Merged
merged 1 commit into from Nov 1, 2015

Conversation

th1agoalmeida
Copy link
Contributor

This commit demonstrates #22082

@rails-bot
Copy link

r? @chancancode

(@rails-bot has picked a reviewer for you, use r? to override)

@th1agoalmeida
Copy link
Contributor Author

the tests from the first commit point out the extra undesired line from when invoking the command twice in a row.
https://travis-ci.org/rails/rails/jobs/87605507#L3530

screen shot 2015-10-27 at 3 55 32 pm

@brodock
Copy link

brodock commented Oct 27, 2015

To illustrate the problem, check here: hello-gem/hello@a387dd2

This is a very welcome fix and will easy new users workflow.

please, LGTM!

@rafaelfranca
Copy link
Member

This is reverting 80838d9 I guess it is fine now that the comments on that file was removed but better to ask @pixeltrix.

@seuros seuros added this to the 5.0.0 milestone Oct 27, 2015
@th1agoalmeida
Copy link
Contributor Author

@rafaelfranca nice catch, and I do agree with @pixeltrix 's POV.
As you said maybe now routes.rb comes blank it will be possible.

@victorlcampos
Copy link

+1

@seuros
Copy link
Member

seuros commented Oct 27, 2015

could you squash your commits ?
Thank you for your contribution.

@th1agoalmeida
Copy link
Contributor Author

@seuros squashed

@pixeltrix
Copy link
Contributor

@thejamespinto sorry was on holiday for the first half of this week - can you rebase against master and I will merge. I'm not happy with either option but since Thor's inject_into_file doesn't allow us anymore subtlety and there's no longer the comments in the file then it's fine to flip the other way.

@th1agoalmeida
Copy link
Contributor Author

@pixeltrix after I read your reasoning I had the same conclusion. thanks for stopping by.

@th1agoalmeida
Copy link
Contributor Author

@rafaelfranca @seuros thank you guys for helping us here. 💯

pixeltrix added a commit that referenced this pull request Nov 1, 2015
@pixeltrix pixeltrix merged commit d53de10 into rails:master Nov 1, 2015
@pixeltrix
Copy link
Contributor

@thejamespinto thanks!

@th1agoalmeida th1agoalmeida deleted the idempotent-route-generator branch November 2, 2015 02:41
@rafaelfranca rafaelfranca modified the milestones: 5.0.0 [temp], 5.0.0 Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants