File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ group :development do
12
12
gem 'gettext'
13
13
gem 'prism' , '>= 0.30.0'
14
14
end
15
+
16
+ # Workaround for https://github.com/mkristian/jar-dependencies/issues/86
17
+ gem "jar-dependencies" , "~> 0.4.0" , platform : :jruby
Original file line number Diff line number Diff line change @@ -237,6 +237,16 @@ def test_generate_gzipped
237
237
end
238
238
239
239
def test_generate_utf_8
240
+ # JRuby fails this test with:
241
+ # Encoding::UndefinedConversionError: "\xC2" from ASCII-8BIT to UTF-8
242
+ # org/jruby/RubyIO.java:1639:in `write'
243
+ # org/jruby/RubyIO.java:1612:in `write'
244
+ # json/ext/GeneratorState.java:232:in `_generate'
245
+ # json/ext/GeneratorState.java:137:in `generate'
246
+ # /Users/runner/work/rdoc/rdoc/vendor/bundle/jruby/3.1.0/gems/json-2.9.0-java/lib/json/common.rb:824:in `dump'
247
+ # /Users/runner/work/rdoc/rdoc/lib/rdoc/generator/json_index.rb:148:in `block in generate'
248
+ omit if RUBY_PLATFORM =~ /java/
249
+
240
250
text = "5\xB0 "
241
251
text = RDoc ::Encoding . change_encoding text , Encoding ::ISO_8859_1
242
252
@klass . add_comment comment ( text ) , @top_level
You can’t perform that action at this time.
0 commit comments