Skip to content

Fix/ci lint and jruby - #785

Merged
yukideluxe merged 3 commits into
mainfrom
fix/ci-lint-and-jruby
Jul 6, 2026
Merged

Fix/ci lint and jruby#785
yukideluxe merged 3 commits into
mainfrom
fix/ci-lint-and-jruby

Conversation

@yukideluxe

Copy link
Copy Markdown
Member

Hello!

@sunny this PR fixes CI 😳

First a fix to pin rubocop gems to prevent failures when gems are updated. Pretty similar to RubyMoney/money#1215

Second, rdoc 8 added a hard dependency on rbs >= 4, and rbs 4.x dropped its -java gem so on JRuby it has to compile a C extension, which fails and breaks bundle install before any test runs. rdoc 7.x has no rbs dependency, so pinning it below 8 on JRuby keeps rbs out of the tree entirely. I think we can remove the pin when https://rubygems.org/gems/rbs/versions/4.1.0.pre.2-java is out of prerelease 🤷🏻‍♀️

yukideluxe and others added 3 commits July 3, 2026 17:09
RuboCop's RSpec/MatchWithSimpleRegex (rubocop-rspec >= 3.10) flags
match(/literal/) on error-message assertions. Autocorrect to
include("literal"); the escaped \$ is preserved as a literal $, so the
assertions are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
rdoc >= 8 introduced a runtime dependency on rbs, whose C extension
fails to build on JRuby ("The compiler failed to generate an executable
file" at the -std=gnu99 check), breaking bundle install before any test
runs. rdoc < 8 has no rbs dependency and still satisfies irb's rdoc
>= 4.0.0 requirement, so pin it below 8 on JRuby only; MRI keeps the
latest rdoc. Verified java-platform resolution now selects rdoc 7.1.0
with rbs absent from the tree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Gemfile.lock is gitignored, so CI resolves the linters fresh on every
run. A new rubocop-rspec minor added RSpec/MatchWithSimpleRegex, which
failed lint with no code change (NewCops: enable turns pending cops on).
Pin each rubocop gem with ~> x.y.0 to lock the minor (where new cops
land) while still allowing patch-level fixes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yukideluxe
yukideluxe merged commit 50c9d4b into main Jul 6, 2026
8 checks passed
@yukideluxe
yukideluxe deleted the fix/ci-lint-and-jruby branch July 6, 2026 17:41
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