Project

General

Profile

Actions

Bug #20857

closed

Ruby 3.4 seems to have backwards compatibility issues more than its predecessors

Added by vo.x (Vit Ondruch) about 2 months ago. Updated about 1 month ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-10-15 master 3da3cabf98) +PRISM [x86_64-linux]
[ruby-core:119650]

Description

Testing Ruby 3.4 in Fedora, I just hit issue like this in AsciiDoctor test suite:

  1) Failure:
Minitest::Test::TestExtensions::TestIntegration#test_should_assign_captures_correctly_for_inline_macros [test/extensions_test.rb:1382]:
--- expected
+++ actual
@@ -1,9 +1,9 @@
 "target=\"\", attributes={}
-target=\"value,key=val\", attributes={1=>\"value\", \"key\"=>\"val\", \"name\"=>\"value\"}
-target=\"\", attributes={\"text\"=>\"\"}
-target=\"[text]\", attributes={\"text\"=>\"[text]\"}
+target=\"value,key=val\", attributes={1 => \"value\", \"key\" => \"val\", \"name\" => \"value\"}
+target=\"\", attributes={\"text\" => \"\"}
+target=\"[text]\", attributes={\"text\" => \"[text]\"}
 target=\"target\", attributes={}
-target=\"target\", attributes={1=>\"value\", \"key\"=>\"val\", \"name\"=>\"value\"}
-target=\"target\", attributes={\"text\"=>\"\"}
-target=\"target\", attributes={\"text\"=>\"[text]\"}
+target=\"target\", attributes={1 => \"value\", \"key\" => \"val\", \"name\" => \"value\"}
+target=\"target\", attributes={\"text\" => \"\"}
+target=\"target\", attributes={\"text\" => \"[text]\"}
 target=\"target\", attributes={}"

This suggest that Hash#inspect formatting was changed and there are additional spaces around hash rocket. Is the space really worth of the troubles? BTW here is AsciiDoctor upstream reaction and I share the sentiment.


Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #20433: Hash.inspect for some hash returns syntax invalid representationClosedActions
Related to Ruby master - Feature #20859: Make Base64 to core classRejectedhsbt (Hiroshi SHIBATA)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like1Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0