Skip to content

Use udiff#657

Merged
winebarrel merged 4 commits intomainfrom
use-udiff
Mar 22, 2026
Merged

Use udiff#657
winebarrel merged 4 commits intomainfrom
use-udiff

Conversation

@winebarrel
Copy link
Copy Markdown
Member

@winebarrel winebarrel commented Mar 22, 2026

This pull request updates Ridgepole to use the udiff gem instead of diffy for generating diffs. The main changes involve swapping out the diffing library in both the codebase and the gemspec, ensuring compatibility and updating dependencies accordingly.

Dependency update:

  • Replaced the diffy gem with the udiff gem (version >= 0.2.0) in the ridgepole.gemspec file, removing the old dependency and adding the new one.

Code changes for diffing:

  • Updated the main Ridgepole library file (lib/ridgepole.rb) to require udiff instead of diffy.
  • Modified the diff_inspect method in lib/ridgepole/diff.rb to use Udiff::Diff for generating diffs, removing the explicit unified diff option since udiff handles this internally.

cf. https://github.com/winebarrel/udiff

Copilot AI review requested due to automatic review settings March 22, 2026 01:41
Copy link
Copy Markdown
Contributor

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

This pull request updates Ridgepole’s diff generation to use the udiff gem instead of diffy, aligning the runtime dependency and the internal diff rendering implementation.

Changes:

  • Replace the diffy runtime dependency with udiff (>= 0.2.0).
  • Update Ridgepole’s require list to load udiff.
  • Switch diff_inspect to build diffs via Udiff::Diff.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ridgepole.gemspec Swaps runtime dependency from diffy to udiff to support the new diff engine.
lib/ridgepole.rb Updates the top-level require to load udiff.
lib/ridgepole/diff.rb Migrates diff_inspect implementation to use Udiff::Diff.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 22, 2026

@winebarrel I've opened a new pull request, #658, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 22, 2026 01:48
Rename `diffy` variable to `diff` in `diff_inspect`
@winebarrel winebarrel merged commit fbe8a05 into main Mar 22, 2026
118 checks passed
@winebarrel winebarrel deleted the use-udiff branch March 22, 2026 02:26
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.09%. Comparing base (7633fc7) to head (107b342).
⚠️ Report is 16 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #657   +/-   ##
=======================================
  Coverage   97.09%   97.09%           
=======================================
  Files          22       22           
  Lines        1478     1478           
=======================================
  Hits         1435     1435           
  Misses         43       43           
Flag Coverage Δ
2.7 96.54% <100.00%> (ø)
3.0 96.54% <100.00%> (ø)
3.1 96.61% <100.00%> (ø)
3.2 96.68% <100.00%> (ø)
3.3 97.01% <100.00%> (ø)
3.4 97.02% <100.00%> (ø)
4.0 97.02% <100.00%> (ø)
MYSQL57 89.17% <100.00%> (ø)
MYSQL80 91.61% <100.00%> (ø)
POSTGRESQL 81.58% <100.00%> (ø)
TRILOGY 89.03% <100.00%> (ø)
activerecord_6.1.gemfile 91.80% <100.00%> (ø)
activerecord_7.0.gemfile 91.80% <100.00%> (ø)
activerecord_7.1.gemfile 96.41% <100.00%> (ø)
activerecord_7.2.gemfile 96.41% <100.00%> (ø)
activerecord_8.0.gemfile 96.41% <100.00%> (ø)
activerecord_8.1.gemfile 96.48% <100.00%> (ø)
activerecord_8.2.gemfile 96.95% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants