-
Notifications
You must be signed in to change notification settings - Fork 8
feat: normalize gem versions in $GEM_PATH strings. #58
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
Conversation
Upgrading gem versions can be a real pain when it causes a bunch of outstanding `deprecations.ignore` entries to break. This ensures that any lines showing a gem version, e.g.: - $GEM_PATH/chicken-3.4.5/nuggets.rb - $GEM_PATH/chicken-a1b2c3d4/nuggets.rb Will be replaced with: - $GEM_PATH/chicken-$VERSION/nuggets.rb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Introduces normalization of gem version segments in deprecation messages to stabilize ignore entries across gem upgrades.
- Adds remove_gem_version_number to rewrite paths like $GEM_PATH/gem-1.2.3/... into $GEM_PATH/gem-$VERSION/...
- Updates specs to expect normalized $VERSION placeholders (including SHA-like versions).
- Bumps library version to 1.0.0.
Reviewed Changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| lib/uncruft/deprecation_handler.rb | Adds version normalization logic for gem paths in messages. |
| spec/uncruft/deprecation_handler_spec.rb | Adjusts expectations and adds test case for SHA-like gem version. |
| lib/uncruft/version.rb | Bumps gem version to 1.0.0 reflecting new behavior. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
rzane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
domain lgtm
platform lgtm
Maybe we should stop mutating strings...
|
@rzane yeah if I could go back in time and talk to the me who wrote this stuff... |
Upgrading gem versions can be a real pain when it causes a bunch of
outstanding
deprecations.ignoreentries to break.This ensures that any lines showing a gem version, e.g.:
$GEM_PATH/chicken-3.4.5/nuggets.rb$GEM_PATH/chicken-a1b2c3d4/nuggets.rb...will be replaced with:
$GEM_PATH/chicken-$VERSION/nuggets.rb/no-platform