Skip to content

Conversation

@smudge
Copy link
Member

@smudge smudge commented Oct 16, 2025

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

/no-platform

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
Copy link

Copilot AI left a 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.

Copy link
Contributor

@rzane rzane left a 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...

@smudge
Copy link
Member Author

smudge commented Oct 16, 2025

@rzane yeah if I could go back in time and talk to the me who wrote this stuff...

@smudge smudge merged commit 6d391e4 into Betterment:main Oct 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants