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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cafa687f8da8991e6041d58f72740f442cec58b151c5c1ad5ff55d0af9d28d0
4
- data.tar.gz: 037d287bfb4f5a2f11576e622f7ef697591051efec23acfeba6b4f925b5949d1
3
+ metadata.gz: 884879671f11072c36d18205c1bb452c8b0ff9e2e50c6e57b70e1bfb602f1b87
4
+ data.tar.gz: dd3ac067aaa30fa45785b6abd1b609b7a09fadf9c11ca272d829271675750fb9
5
5
  SHA512:
6
- metadata.gz: 8ba0eca4adee91478b0c55810fa0f9749a807ad378d2814566b3ecc907920b88e6c8dd8473c09d85190e21f52a5a3f71f74a554e4afb606c08e5901e9886f516
7
- data.tar.gz: bb71bd74efc7b3f6390dcd9758fd57888ae25cb309d9c151433d3fb3e789229ba747fc7003b93064303f186db852f11d6ba7b600e4e67760e0afcd6099fe1ef4
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. `revent_refresh!` prevents this from happening.
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.include? ".html.erb" }[1]&.hash.to_s
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
@@ -1,3 +1,3 @@
1
1
  module ViewComponentReflex
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.2'
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: 2.2.1
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-08-26 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails