view_component_reflex 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce2845259f97ae052146d89cffb27a32bfcb4e7ed69a1d065b28a2eedd8a612a
4
- data.tar.gz: 188392219bfb2d48910624b87808e6428b4f8672d07b32dc597fdfb34ea6f556
3
+ metadata.gz: f2a565e11e260df4ecff60b182ac977b06af1407052226ce61b250a19b544248
4
+ data.tar.gz: ba3c11853c040b5fe55efa64567017dc70d564bfc159c3cc5eeda17b8c4e1115
5
5
  SHA512:
6
- metadata.gz: 01ce7214d882a977c8e1adfa097a88d0638fd71986661f6331fa9094c0a7deafaeb7c702759ebb7b14df4debdc14cc21c6c9a04d2f16e14ed5640104874fd6f0
7
- data.tar.gz: 41ecab192a9288ff2ec9088d6c91550789c301cc9f273212ce033e809d11cb9c996187a0b1595ca1b55861b87e9476e6991e680f1d474c324de09b66e1846fcc
6
+ metadata.gz: ff941b717b380704a83fde6e6afb82417ce219684023eb9984c3b08285f108b92b8aab922d24a60990a551c126acd9e1b0f53c94700fc2e38a403cf7ef185855
7
+ data.tar.gz: 5d01502b50d7ecf0407eaea0dd1a7e34cee26f23c5b2cc9124b3f210c184452199363b1d429db7754bfb07955e17416b10888b8fc502977825baa5049b524b9a
@@ -74,6 +74,7 @@ module ViewComponentReflex
74
74
  tag = opts_or_tag
75
75
  opts
76
76
  end
77
+
77
78
  options[:data] = {
78
79
  controller: self.class.stimulus_controller,
79
80
  key: key,
@@ -95,7 +96,7 @@ module ViewComponentReflex
95
96
  # and line number, which should be unique. We hash it to make it a nice number
96
97
  erb_file = caller.select { |p| p.match? /.\.html\.(haml|erb|slim)/ }[1]
97
98
  key = if erb_file
98
- Digest::SHA2.hexdigest(erb_file)
99
+ Digest::SHA2.hexdigest(erb_file.split(":in")[0])
99
100
  else
100
101
  ""
101
102
  end
@@ -151,7 +152,7 @@ module ViewComponentReflex
151
152
  ViewComponentReflex::Engine.state_adapter.state(request, @key).each do |k, v|
152
153
  instance_value = instance_variable_get(k)
153
154
  if permit_parameter?(initial_state[k], instance_value)
154
- ViewComponentReflex::Engine.state_adapter.set_state(request, controller, "#{@key}_initial", {k => instance_value})
155
+ # ViewComponentReflex::Engine.state_adapter.set_state(request, controller, "#{@key}_initial", {k => instance_value})
155
156
  ViewComponentReflex::Engine.state_adapter.set_state(request, controller, @key, {k => instance_value})
156
157
  else
157
158
  instance_variable_set(k, v)
@@ -1,3 +1,3 @@
1
1
  module ViewComponentReflex
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua LeBlanc