phlex-rails 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abf478c7bd5a979938c30006c22a6e2dc6d85918aa48aa878b60d11b989ace58
4
- data.tar.gz: 69a32fe61ccbc22b074ddf40eda5b5b6ee763eee7c4d817a18dc596ef3d080c3
3
+ metadata.gz: 3f099964fdbed416c5a009056c2f7de5c5cae363ddd0df4a92e3e880b336a415
4
+ data.tar.gz: 63cc805329821b77a0f7ee7d6ca4359f1457e41324a9d2bb0a66a228b80de050
5
5
  SHA512:
6
- metadata.gz: a298aec28c2c5246fa0b5299a301d9efa5566af3a8aa3abcf025da1ee9558291d5c4e5826de746ccfc0565726993016f63ec624a93ec501f868162fd40f2fa78
7
- data.tar.gz: 567307510f85c7fe0ae94e9664b3ad6badf5d66d713f93492b6790ca7f5616b1eaeb6616ab696a98c3e701163298374c0f75d0b661e2615c8d396c438af99322
6
+ metadata.gz: e5ca7e0c59c2d424b1bd9cf0fd4de5a30fa3cc48997c044c8393c8c94d17d2411e453e8dc404acb4ee6606f254a4c8dcfb9b8e32eb4660de41c4246801e312af
7
+ data.tar.gz: 1c846157eacf91a861f8c3269d4e8aaa2dc12435d975eff33bf7c0d90912e3c92178a9686388266fb2c5f0602ee171401736410d1131529100fbfc3486043102
@@ -49,15 +49,13 @@ module Phlex::Rails
49
49
  if @_state
50
50
  super
51
51
  else
52
- call(context: { rails_view_context: view_context }) do |yielded|
52
+ render_in(view_context) do |yielded|
53
53
  case yielded
54
54
  when Symbol
55
- output = view_context.view_flow.get(yielded)
55
+ raw view_context.view_flow.get(yielded)
56
56
  else
57
- output = view_context.capture(&block)
57
+ yield
58
58
  end
59
-
60
- raw output
61
59
  end
62
60
  end
63
61
  end
@@ -136,6 +136,11 @@ module Phlex::Rails::SGML
136
136
  # no-op (see https://github.com/ViewComponent/view_component/issues/2207)
137
137
  end
138
138
 
139
+ def vanish(...)
140
+ # Quick fix because we need rails to handle the capture now
141
+ capture(...)
142
+ end
143
+
139
144
  def capture(*args, &block)
140
145
  if capture_context
141
146
  return "" unless block
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Rails
5
- VERSION = "2.1.0"
5
+ VERSION = "2.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  - Will Cosgrove
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-05 00:00:00.000000000 Z
11
+ date: 2025-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex