Skip to content

Conversation

@MikeMcQuaid
Copy link
Member

This makes them much nicer to read in brew irb or with p/pp.

This makes them much nicer to read in `brew irb` or with `p`/`pp`.
Copilot AI review requested due to automatic review settings October 31, 2025 14:41
@MikeMcQuaid MikeMcQuaid enabled auto-merge October 31, 2025 14:42
Copy link
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 PR improves the inspect output for Version and Checksum classes by providing custom implementations.

  • Replaces super call in Version#inspect with a custom format showing the version value
  • Adds a new inspect method to the Checksum class displaying the hexdigest value

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Library/Homebrew/version.rb Customizes Version#inspect to display version value in format #<Version value> instead of using inherited implementation
Library/Homebrew/checksum.rb Adds inspect method to display checksum hexdigest in format #<Checksum hexdigest>

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

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Oct 31, 2025
Merged via the queue into main with commit ab17997 Oct 31, 2025
44 checks passed
@MikeMcQuaid MikeMcQuaid deleted the inspect_checksum_version branch October 31, 2025 16:22
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.

4 participants