Skip to content

fix(ruby): gemfile.lock should not update when gem name is empty#1805

Merged
chingor13 merged 1 commit intogoogleapis:mainfrom
andrewthauer:fix-ruby-gemfile-lock
Jan 17, 2023
Merged

fix(ruby): gemfile.lock should not update when gem name is empty#1805
chingor13 merged 1 commit intogoogleapis:mainfrom
andrewthauer:fix-ruby-gemfile-lock

Conversation

@andrewthauer
Copy link
Copy Markdown
Contributor

@andrewthauer andrewthauer commented Jan 17, 2023

PR #1790 introduced support to update Gemfile.lock files. However this introduced an issue that updates random gem versions when the package-name (gemName) is not provided (which is optional). This fix ensures the gemName is valid before attempting to update the Gemfile.lock file.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes issue introduced in PR #1790

PR googleapis#1790 introduced support to update Gemfile.lock files. However this
introduced an issue that updates random gem versions when the
`package-name` (gemName) is not provided (which is optional). This fix
ensures the gemName is valid before attempting to update the
Gemfile.lock file.
@andrewthauer andrewthauer requested review from a team January 17, 2023 14:35
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Jan 17, 2023
@chingor13 chingor13 merged commit b54d499 into googleapis:main Jan 17, 2023
@andrewthauer andrewthauer deleted the fix-ruby-gemfile-lock branch January 17, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants