view_component_reflex 3.2.0.pre → 3.2.0.pre1

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: '076282b09956e12df3434c1be972995da10bdc2a094598f71da922bef7f84f6e'
4
- data.tar.gz: c250e5e4de40beafa81110a32e9d4ef03b0321d3a1674f2ba4811b56bdffe68a
3
+ metadata.gz: a3b1851bd40c4a1acb112fec827e83ecfae175e9730384870a3f260cba7416e3
4
+ data.tar.gz: fb576359bc41876e9650b9751101546c5f4e28c5c7945d8d91250474a875d29b
5
5
  SHA512:
6
- metadata.gz: 9dd881a3cb9a890f771a5ed21df13dc15eb73db2ed6beb290f43d9fa3967d58a0631833a653ebf0e49eb2e44e3a5651e0855174df42e7bdf093e876959af75fd
7
- data.tar.gz: 2f801a13e7e1b081b205b7def36cf0f7ef42b44fe4f81f0c55781202252c2eb8548ab4d84895577eab727262e70c0e4377dc54584b9cff656d01c9dfb41dabaa
6
+ metadata.gz: 18b08f163efd06e13d2a312893ce73034568f98f9e1bd4ec9b331ce9ba3bf7c521ad8b0c4284eab7f80ea60bf246e6b054c7d726f4b10244b1fd4a43c0eeab38
7
+ data.tar.gz: e7b120980bc136fb12301a9f53e1308efe6393eddcf9b90d25c3ca30db3af855575cfb778266be25624a922eedb3217bd3212ad0eb6158c874f99e5c9be82385
@@ -188,12 +188,13 @@ module ViewComponentReflex
188
188
  # and line number, which should be unique. We hash it to make it a nice number
189
189
  erb_file = caller.select { |p| p.match? /.\.html\.(haml|erb|slim)/ }[1]
190
190
  key = if erb_file
191
- Digest::SHA2.hexdigest(erb_file.split(":in")[0])
191
+ erb_file.split(":in")[0]
192
+
192
193
  else
193
194
  ""
194
195
  end
195
196
  key += collection_key.to_s if collection_key
196
- @key = key
197
+ @key = Digest::SHA2.hexdigest(key)
197
198
  end
198
199
 
199
200
  # Helper to use to create the proper reflex data attributes for an element
@@ -1,3 +1,3 @@
1
1
  module ViewComponentReflex
2
- VERSION = '3.2.0.pre'
2
+ VERSION = '3.2.0.pre1'
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.2.0.pre
4
+ version: 3.2.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua LeBlanc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-18 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.3.1
118
118
  requirements: []
119
- rubygems_version: 3.3.3
119
+ rubygems_version: 3.2.9
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Allow stimulus reflexes in a view component