view_component_reflex 3.1.3 → 3.1.4

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: 07c2234a9c3569075c683fba6d62938f203cc647472c092d469533adbf017271
4
- data.tar.gz: 432352a437e6a3bcd4125de57e1c59dba8b852a324a1255d19ebcc1745e280f3
3
+ metadata.gz: e1c5a6bb6d424caf8b1840123432a3c50262739780a9c653c73d3bb4d7154906
4
+ data.tar.gz: 9314ec969dd8c0d31ac5751a40a8fa58cdc1f88fac3139775803b15a6284ae30
5
5
  SHA512:
6
- metadata.gz: ccf4ee642dafb9e2aa8739dca124df3a2edfbd43bd94ff6cb8186efbc13053a8048ade26451fb64179293505ee1f25d6bab3081c81205560210bdc0a8cd4a362
7
- data.tar.gz: af090c13d376712e06de6b9d0fff96389afec94a2f52224019c6a1ed1d2dc223620731ed0e9ead87bec8dd6238d1feb70069785d435b362b4de71f5285508397
6
+ metadata.gz: f2b2dbeca7e309d7611271a81d39bbda1d62c8d4680c81376ad149818bb6b866e5cf8c2d97c378ed5ca2b31d6e1dc05bd2accacc4e56f6d46463ef24c53f95d1
7
+ data.tar.gz: a24726fe210f24efe596f82931b74d99fb60dcd89e7c3ce4d4b71dbc8ca6974018bd92c954b3e6942ca6e5b282e469458be8eeaf2de2f978d856fe654e10c5d4
@@ -61,9 +61,9 @@ module ViewComponentReflex
61
61
  def stimulus_reflex_data
62
62
  {
63
63
  reflex_id: reflex_id,
64
- xpath: xpath,
64
+ xpath_controller: xpath_controller,
65
+ xpath_element: xpath_element,
65
66
  target: target,
66
- c_xpath: c_xpath,
67
67
  reflex_controller: reflex_controller,
68
68
  url: url,
69
69
  morph: :page,
@@ -107,13 +107,15 @@ module ViewComponentReflex
107
107
  end
108
108
  end
109
109
 
110
- def method_missing(name, *args)
110
+ def method_missing(name, *args, &blk)
111
111
  morph :nothing
112
112
  super unless respond_to_missing?(name)
113
113
  state.each do |k, v|
114
114
  component.instance_variable_set(k, v)
115
115
  end
116
- name.to_proc.call(component, *args)
116
+
117
+ component.send(name, *args, &blk)
118
+
117
119
  refresh! unless @prevent_refresh
118
120
  end
119
121
 
@@ -1,3 +1,3 @@
1
1
  module ViewComponentReflex
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua LeBlanc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails