removing multiline gem specifications correctly#7454
removing multiline gem specifications correctly#7454jethroo wants to merge 1 commit intorubygems:masterfrom
Conversation
|
Thanks for opening a pull request and helping make Bundler better! Someone from the Bundler team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality. We use Travis CI to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of Travis CI in the PR status window below. If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #bundler channel on Slack. For more information about contributing to the Bundler project feel free to review our CONTRIBUTING guide |
8fe7fa5 to
142c0dd
Compare
| gemfile <<-G | ||
| source '#{file_uri_for(gem_repo1)}' | ||
|
|
||
| gem 'rack', |
There was a problem hiding this comment.
Can you add the extra gems that are the original report?
Like this:
gem 'git'
gem 'some-gem',
git: 'ssh://gitlab-server.com/project/repo.git',
branch: 'master'
gem 'nokogiri'
And add expectation for git and nokogiri.
There was a problem hiding this comment.
thanks for the feedback, sure would give more test context, will do soonish ;)
142c0dd to
c17351d
Compare
What was the end-user problem that led to this PR?
This PR fixes the issue #7431 where gems specified in multiple lines were not removed correctly.
What was your diagnosis of the problem?
The remove was implemented in a way that the match was only done for a line each.
What is your fix for the problem, implemented in this PR?
Now upon line removal it is checked if the gem specification was finished in this line. If there is a trailing
,comma further lines needs to be removed.