diff --git a/gem/Gemfile.lock b/gem/Gemfile.lock index 8a1d4c79..f36e5531 100644 --- a/gem/Gemfile.lock +++ b/gem/Gemfile.lock @@ -18,14 +18,14 @@ GEM parser (3.3.12.0) ast (~> 2.4.1) racc - phlex (2.4.1) + phlex (2.4.3) refract (~> 1.0) zeitwerk (~> 2.7) prism (1.9.0) racc (1.8.1) rainbow (3.1.1) rake (13.4.2) - refract (1.1.0) + refract (1.2.0) prism zeitwerk regexp_parser (2.13.1) @@ -69,7 +69,7 @@ GEM unicode-display_width (3.3.0) unicode-emoji (~> 4.3) unicode-emoji (4.3.0) - zeitwerk (2.7.5) + zeitwerk (2.8.3) PLATFORMS arm64-darwin-24 diff --git a/gem/test/ruby_ui/alert_dialog_test.rb b/gem/test/ruby_ui/alert_dialog_test.rb index d613a126..7c9bf17b 100644 --- a/gem/test/ruby_ui/alert_dialog_test.rb +++ b/gem/test/ruby_ui/alert_dialog_test.rb @@ -42,7 +42,7 @@ def test_trigger_is_a_target_that_opens output = phlex { RubyUI.AlertDialogTrigger { "x" } } assert_match(/data-ruby-ui--alert-dialog-target="trigger"/, output) - assert_match(/data-action="click->ruby-ui--alert-dialog#open"/, output) + assert_match(/data-action="click->ruby-ui--alert-dialog#open"/, output) end def test_content_renders_native_dialog_with_alertdialog_role @@ -203,7 +203,7 @@ def test_footer_vega_classes def test_cancel_dismisses_without_margin_hack output = phlex { RubyUI.AlertDialogCancel { "Cancel" } } - assert_match(/data-action="click->ruby-ui--alert-dialog#dismiss"/, output) + assert_match(/data-action="click->ruby-ui--alert-dialog#dismiss"/, output) refute_includes classes_of(output, "button"), "mt-2" end diff --git a/gem/test/ruby_ui/alert_test.rb b/gem/test/ruby_ui/alert_test.rb index d428230e..6cb85531 100644 --- a/gem/test/ruby_ui/alert_test.rb +++ b/gem/test/ruby_ui/alert_test.rb @@ -66,6 +66,6 @@ def test_custom_colors_replace_the_variant_colors def test_icon_gets_its_own_grid_column output = phlex { RubyUI.Alert { |alert| alert.svg } } - assert_match(/
]*class="[^"]*has-\[>svg\]:grid-cols-\[auto_1fr\][^"]*">]*class="[^"]*has-\[>svg\]:grid-cols-\[auto_1fr\][^"]*">ruby-ui--avatar#showImage error->ruby-ui--avatar#showFallback/, output) + assert_match(/load->ruby-ui--avatar#showImage error->ruby-ui--avatar#showFallback/, output) assert_match(/data-ruby-ui--avatar-target="fallback"/, output) refute_match(/class="hidden\b|class="[^"]*\shidden\b/, output) end @@ -134,9 +134,9 @@ def test_plain_img_child_is_sized_and_rounded # cropped photo. output = phlex { RubyUI.Avatar { |a| a.img(src: "/wide.png") } } - assert_includes output, "[&>img:not([data-slot])]:size-full" - assert_includes output, "[&>img:not([data-slot])]:rounded-full" - assert_includes output, "[&>img:not([data-slot])]:object-cover" + assert_includes output, "[&>img:not([data-slot])]:size-full" + assert_includes output, "[&>img:not([data-slot])]:rounded-full" + assert_includes output, "[&>img:not([data-slot])]:object-cover" end def test_badge_keeps_both_ring_and_background diff --git a/gem/test/ruby_ui/breadcrumb_test.rb b/gem/test/ruby_ui/breadcrumb_test.rb index 6206a10b..1932355c 100644 --- a/gem/test/ruby_ui/breadcrumb_test.rb +++ b/gem/test/ruby_ui/breadcrumb_test.rb @@ -63,9 +63,9 @@ def test_sizes_match_vega separator = opening_tag(phlex { RubyUI.BreadcrumbSeparator() }, "breadcrumb-separator") ellipsis = opening_tag(phlex { RubyUI.BreadcrumbEllipsis() }, "breadcrumb-ellipsis") - assert_includes separator, "[&>svg]:size-3.5" + assert_includes separator, "[&>svg]:size-3.5" assert_includes ellipsis, "size-5" - assert_includes ellipsis, "[&>svg]:size-4" + assert_includes ellipsis, "[&>svg]:size-4" refute_match(/\bh-9\b|\bw-9\b/, ellipsis) end diff --git a/gem/test/ruby_ui/button_test.rb b/gem/test/ruby_ui/button_test.rb index 426a99c9..3e632691 100644 --- a/gem/test/ruby_ui/button_test.rb +++ b/gem/test/ruby_ui/button_test.rb @@ -85,7 +85,7 @@ def test_focusable_when_disabled_uses_aria_disabled_and_blocks_clicks assert_includes output, 'data-controller="ruby-ui--button"' # The controller blocks clicks with a capture listener, so the caller's # action stays untouched. - assert_includes output, 'data-action="click->x#go"' + assert_includes output, 'data-action="click->x#go"' end def test_focusable_when_disabled_keeps_a_single_aria_disabled_value diff --git a/gem/test/ruby_ui/calendar_test.rb b/gem/test/ruby_ui/calendar_test.rb index 955acd97..b504e431 100644 --- a/gem/test/ruby_ui/calendar_test.rb +++ b/gem/test/ruby_ui/calendar_test.rb @@ -25,7 +25,7 @@ def test_render_with_min_date def test_render_grid_semantics output = phlex { RubyUI.Calendar } - assert_match(/]*data-action="keydown->ruby-ui--calendar#navigate"/, output) + assert_match(/
]*data-action="keydown->ruby-ui--calendar#navigate"/, output) assert_match(/