view_component_reflex 2.3.2 → 2.3.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce2845259f97ae052146d89cffb27a32bfcb4e7ed69a1d065b28a2eedd8a612a
|
|
4
|
+
data.tar.gz: 188392219bfb2d48910624b87808e6428b4f8672d07b32dc597fdfb34ea6f556
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01ce7214d882a977c8e1adfa097a88d0638fd71986661f6331fa9094c0a7deafaeb7c702759ebb7b14df4debdc14cc21c6c9a04d2f16e14ed5640104874fd6f0
|
|
7
|
+
data.tar.gz: 41ecab192a9288ff2ec9088d6c91550789c301cc9f273212ce033e809d11cb9c996187a0b1595ca1b55861b87e9476e6991e680f1d474c324de09b66e1846fcc
|
|
@@ -93,7 +93,12 @@ module ViewComponentReflex
|
|
|
93
93
|
def init_key
|
|
94
94
|
# we want the erb file that renders the component. `caller` gives the file name,
|
|
95
95
|
# and line number, which should be unique. We hash it to make it a nice number
|
|
96
|
-
|
|
96
|
+
erb_file = caller.select { |p| p.match? /.\.html\.(haml|erb|slim)/ }[1]
|
|
97
|
+
key = if erb_file
|
|
98
|
+
Digest::SHA2.hexdigest(erb_file)
|
|
99
|
+
else
|
|
100
|
+
""
|
|
101
|
+
end
|
|
97
102
|
key += collection_key.to_s if collection_key
|
|
98
103
|
@key = key
|
|
99
104
|
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: 2.3.
|
|
4
|
+
version: 2.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua LeBlanc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|