view_component_reflex 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/components/view_component_reflex/component.rb +1 -1
- data/lib/view_component_reflex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884879671f11072c36d18205c1bb452c8b0ff9e2e50c6e57b70e1bfb602f1b87
|
4
|
+
data.tar.gz: dd3ac067aaa30fa45785b6abd1b609b7a09fadf9c11ca272d829271675750fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6740d002a2fae276c4ff60433485461cb43a90ac4a6fdb2431fa757b326fc2f882f86b662d7b23ba735f65ca89d87a047ebdb5f7874f3db08826fe3cb880d39c
|
7
|
+
data.tar.gz: fc558e67327441ea6c1f813f7d005e57ce6b127221e4ab34835c78e1a7d6a0b2fd25e406de405ae615a6d204d691e8a94d669eb28df7bb64192e770bd88f06df
|
data/README.md
CHANGED
@@ -156,7 +156,7 @@ end
|
|
156
156
|
Returns the unique selector for this component. Useful to pass to `refresh!` when refreshing custom elements.
|
157
157
|
|
158
158
|
### prevent_refresh!
|
159
|
-
By default, VCR will re-render your component after it executes your method. `
|
159
|
+
By default, VCR will re-render your component after it executes your method. `prevent_refresh!` prevents this from happening.
|
160
160
|
|
161
161
|
```ruby
|
162
162
|
def my_method
|
@@ -49,7 +49,7 @@ module ViewComponentReflex
|
|
49
49
|
def init_key
|
50
50
|
# we want the erb file that renders the component. `caller` gives the file name,
|
51
51
|
# and line number, which should be unique. We hash it to make it a nice number
|
52
|
-
key = caller.select { |p| p.
|
52
|
+
key = caller.select { |p| p.match? /.\.html\.(haml|erb|slim)/ }[1]&.hash.to_s
|
53
53
|
key += collection_key.to_s if collection_key
|
54
54
|
@key = key
|
55
55
|
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.2.
|
4
|
+
version: 2.2.2
|
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-
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|