diff --git a/Gemfile b/Gemfile index 106ab0c..4ed7cc1 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,12 @@ gemspec group :development do gem 'rake' gem 'rake-compiler' - gem 'rdoc' + if RUBY_ENGINE == 'jruby' + # RDoc 8 pulls in RBS 4, which attempts to build a native extension on JRuby. + gem 'rdoc', '< 8' + else + gem 'rdoc' + end gem 'test-unit' gem "test-unit-ruby-core" end