From 80ea5c1ceb189d50032c0179c0187d7bdbfc9d7d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:02:31 +0000 Subject: [PATCH 1/2] build(deps-dev): bump phlex from 2.4.1 to 2.4.3 in /gem Bumps [phlex](https://github.com/phlex-ruby/phlex) from 2.4.1 to 2.4.3. - [Release notes](https://github.com/phlex-ruby/phlex/releases) - [Commits](https://github.com/phlex-ruby/phlex/compare/2.4.1...2.4.3) --- updated-dependencies: - dependency-name: phlex dependency-version: 2.4.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- gem/Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 01b6aee64ac452fa83acf597dd0e997761af2592 Mon Sep 17 00:00:00 2001 From: Cirdes Date: Sun, 29 Nov 2026 10:00:05 -0300 Subject: [PATCH 2/2] [Chore] Match phlex 2.4.3 attribute escaping in gem tests Phlex 2.4.3 escapes < and > inside attribute values (click->x#go, [&>svg]:size-4). The HTML is equivalent: browsers decode it and Stimulus reads the decoded data-action. Update the expectations to the new output; test inputs stay unescaped. Co-Authored-By: Claude Opus 5.5 --- gem/test/ruby_ui/alert_dialog_test.rb | 4 ++-- gem/test/ruby_ui/alert_test.rb | 2 +- gem/test/ruby_ui/avatar_test.rb | 8 ++++---- gem/test/ruby_ui/breadcrumb_test.rb | 4 ++-- gem/test/ruby_ui/button_test.rb | 2 +- gem/test/ruby_ui/calendar_test.rb | 2 +- gem/test/ruby_ui/checkbox_test.rb | 4 ++-- gem/test/ruby_ui/codeblock_test.rb | 2 +- gem/test/ruby_ui/collapsible_test.rb | 2 +- gem/test/ruby_ui/combobox_test.rb | 2 +- gem/test/ruby_ui/command_test.rb | 8 ++++---- gem/test/ruby_ui/context_menu_test.rb | 2 +- gem/test/ruby_ui/data_table_column_toggle_test.rb | 2 +- gem/test/ruby_ui/data_table_expand_toggle_test.rb | 2 +- gem/test/ruby_ui/data_table_per_page_select_test.rb | 10 +++++----- gem/test/ruby_ui/data_table_row_checkbox_test.rb | 2 +- gem/test/ruby_ui/data_table_search_test.rb | 2 +- .../ruby_ui/data_table_select_all_checkbox_test.rb | 2 +- gem/test/ruby_ui/dialog_test.rb | 8 ++++---- gem/test/ruby_ui/dropdown_menu_test.rb | 2 +- gem/test/ruby_ui/form_test.rb | 12 ++++++------ gem/test/ruby_ui/message_scroller_test.rb | 2 +- gem/test/ruby_ui/radio_button_test.rb | 2 +- gem/test/ruby_ui/sheet_test.rb | 6 +++--- gem/test/ruby_ui/sidebar_test.rb | 6 +++--- gem/test/ruby_ui/table_test.rb | 2 +- gem/test/ruby_ui/tabs_test.rb | 2 +- gem/test/ruby_ui/theme_toggle_test.rb | 2 +- gem/test/ruby_ui/toggle_test.rb | 2 +- 29 files changed, 54 insertions(+), 54 deletions(-) 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(/