feat: auto-discover new Ruby minor series in autobump#19
Conversation
Instead of a hardcoded list of minor versions (3.2, 3.3, 3.4), the autobump workflow now dynamically discovers all minor series from ruby/ruby releases. This means 4.1, 5.0, etc. will be picked up automatically without workflow changes. Also adds the Ruby 4.0.2 formula and fixes tag matching to handle both old underscore format (v3_4_2) and new dot format (v4.0.2). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the Ruby autobump workflow by introducing dynamic discovery of new Ruby minor series, moving away from static version lists. This change ensures that future Ruby versions are automatically supported, improving maintainability and reducing manual updates. Additionally, it refines tag parsing for version identification and implements a robust fallback for abstract class selection, alongside the immediate inclusion of a Ruby 4.0.2 formula. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new Homebrew formula for jdx-ruby@4.0.2. However, the formula currently points to a non-existent Ruby 4.0.2 release, which will cause brew install to fail due to a 404 error and an undownloadable artifact. All formulae should reference valid, downloadable resources, and an alternative approach for testing autobump workflows is suggested if that was the intent.
| url "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.2.tar.gz" | ||
| sha256 "51502b26b50b68df4963336ca41e368cde92c928faf91654de4c4c1791f82aac" |
There was a problem hiding this comment.
This formula points to a non-existent Ruby 4.0.2 release. The URL will result in a 404 error, and the SHA256 checksum is for an undownloadable file, making this formula unusable. This will cause brew install to fail. All formulae should point to valid, downloadable artifacts. If this is for testing the autobump workflow, please consider an alternative approach that avoids committing broken formulae, such as using a separate test directory or mock data.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Fixes unescaped dots in grep -E patterns where the minor version (e.g., 4.0) is interpolated — the dot could match any character. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Summary
3.2 3.3 3.4listv3_4_2) and new dot format (v4.0.2)JdxRubywhen no version-specific class existsSupersedes #18 — thanks @chadlwilson for identifying the issue!
Co-authored-by: Chad Wilson 29788154+chadlwilson@users.noreply.github.com
Test plan
workflow_dispatchand verify it discovers 3.2, 3.3, 3.4, 4.0 series🤖 Generated with Claude Code
Note
Medium Risk
Moderate risk because it changes the automation that generates and commits new Homebrew formulae; bugs in tag parsing/series discovery could create incorrect or missing formula updates.
Overview
Updates the
autobump.ymlworkflow to auto-discover supported Ruby minor series fromruby/rubyreleases (instead of a hardcoded list) and to match both underscore and dot tag formats when selecting the latest stable release.The workflow now falls back to the base
Abstract/jdx-rubyclass when a version-specific abstract (Abstract/jdx-ruby-XX.rb) is missing, and prerelease detection similarly recognizes stable dot-format tags. Adds a new formula forjdx-ruby@4.0.2.Written by Cursor Bugbot for commit 07cec48. This will update automatically on new commits. Configure here.