Skip to content

Commit 8152bef

Browse files
authored
Upgrade phlex to 2.0.2 version (#223)
* Upgrade phlex version * refactor: Remove view_context With the upgrade, view_context is only required in Rails applications. Since our use case doesn’t require Rails-specific view helpers, we no longer need to pass view_context.
1 parent 537b7c0 commit 8152bef

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GEM
1616
parser (3.3.6.0)
1717
ast (~> 2.4.1)
1818
racc
19-
phlex (2.0.0.beta2)
19+
phlex (2.0.2)
2020
racc (1.8.1)
2121
rainbow (3.1.1)
2222
rake (13.2.1)
@@ -60,7 +60,7 @@ PLATFORMS
6060

6161
DEPENDENCIES
6262
minitest (~> 5.0)
63-
phlex (>= 2.0.0.beta2)
63+
phlex (>= 2.0.2)
6464
rake (~> 13.0)
6565
rouge (~> 4.2.0)
6666
ruby_ui!

ruby_ui.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
1515

1616
s.required_ruby_version = ">= 3.3.1"
1717

18-
s.add_development_dependency "phlex", ">= 2.0.0.beta2"
18+
s.add_development_dependency "phlex", ">= 2.0.2"
1919
s.add_development_dependency "rouge", "~> 4.2.0"
2020
s.add_development_dependency "tailwind_merge", "~> 0.12"
2121
s.add_development_dependency "rake", "~> 13.0"

test/test_helper.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ module RubyUI
1919

2020
class ComponentTest < Minitest::Test
2121
def render(component, &)
22-
component.call(view_context:, &)
22+
component.call(&)
2323
end
2424

2525
def phlex(&)
2626
render Phlex::HTML.new, &
2727
end
28-
29-
def view_context = nil
3028
end
3129

3230
# this is a tracepoint that will output the path of all files loaded that contain the string "phlex"

0 commit comments

Comments
 (0)