From a835807b487503fd468445f98a90872ce039ee10 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 13 Jul 2026 13:34:39 +0200 Subject: [PATCH 1/2] Constrain RDoc below 8 for JRuby CI --- Gemfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 4f1a720..8d00e90 100644 --- a/Gemfile +++ b/Gemfile @@ -6,8 +6,10 @@ gemspec group :development do gem "bundler" gem "rake" - gem "rdoc" gem "test-unit" gem "test-unit-ruby-core" gem 'rake-compiler' + + # RDoc 8 pulls in RBS 4, which attempts to build a native extension on JRuby. + gem 'rdoc', (RUBY_ENGINE == 'jruby' ? '< 8' : nil) end From d56faf9f23578099bf87c08dc401aae96d6e864b Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 13 Jul 2026 13:50:43 +0200 Subject: [PATCH 2/2] CI: Use a better JRuby rbs workaround --- Gemfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 8d00e90..fb35b7e 100644 --- a/Gemfile +++ b/Gemfile @@ -6,10 +6,13 @@ gemspec group :development do gem "bundler" gem "rake" + gem "rdoc" + + # rdoc 8 depends on rbs, which has no java platform gem before 4.1.0.pre.2. + # See https://github.com/ruby/rdoc/issues/1746 + gem 'rbs', '>= 4.1.0.pre.2' if RUBY_PLATFORM == 'java' + gem "test-unit" gem "test-unit-ruby-core" gem 'rake-compiler' - - # RDoc 8 pulls in RBS 4, which attempts to build a native extension on JRuby. - gem 'rdoc', (RUBY_ENGINE == 'jruby' ? '< 8' : nil) end