stimulus_reflex 3.2.0 → 3.2.1
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 +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/stimulus_reflex/reflex.rb +5 -2
- data/lib/stimulus_reflex/version.rb +1 -1
- data/test/tmp/app/reflexes/{posts_reflex.rb → demo_reflex.rb} +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62a646413ff8f9185f010b897867e16adde1220617a6da72ae9529b81dabc05c
|
|
4
|
+
data.tar.gz: 767c899c2279c21e80f20eeafe7e22c331dacfec245100f74e31882e5d2f9dda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3a87691efc93825c28ba4d00df05da5fd5570c6800465fff794dd9059bc00d439f12208cb6e7a51735992dadba165e8f96257fa64d24160f7b7cdbe04dc97fe
|
|
7
|
+
data.tar.gz: 8962938cdb8c3980a607ade364e733f809fcc88928bc60e631eb88daac6685b0b27c2c89aa3510d31fcec6b4db22ea7ee369148ea3be2926a5c4eb88f44da586
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased](https://github.com/hopsoft/stimulus_reflex/tree/HEAD)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.0...HEAD)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Prevent halting if reflex returns false [\#194](https://github.com/hopsoft/stimulus_reflex/pull/194) ([hopsoft](https://github.com/hopsoft))
|
|
10
|
+
|
|
11
|
+
## [v3.2.0](https://github.com/hopsoft/stimulus_reflex/tree/v3.2.0) (2020-05-09)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.0.pre1...v3.2.0)
|
|
14
|
+
|
|
3
15
|
## [v3.2.0.pre1](https://github.com/hopsoft/stimulus_reflex/tree/v3.2.0.pre1) (2020-05-08)
|
|
4
16
|
|
|
5
17
|
[Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.0-pre0...v3.2.0.pre1)
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
stimulus_reflex (3.2.
|
|
4
|
+
stimulus_reflex (3.2.1)
|
|
5
5
|
cable_ready (>= 4.1.2)
|
|
6
6
|
nokogiri
|
|
7
7
|
rack
|
|
@@ -151,7 +151,7 @@ GEM
|
|
|
151
151
|
actionpack (>= 4.0)
|
|
152
152
|
activesupport (>= 4.0)
|
|
153
153
|
sprockets (>= 3.0.0)
|
|
154
|
-
standard (0.
|
|
154
|
+
standard (0.4.0)
|
|
155
155
|
rubocop (~> 0.82.0)
|
|
156
156
|
rubocop-performance (~> 1.5.2)
|
|
157
157
|
standardrb (1.0.0)
|
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
|
|
12
12
|
</a>
|
|
13
13
|
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/" target="_blank">
|
|
14
|
-
<img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-
|
|
14
|
+
<img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-809-brightgreen.svg?style=flat" />
|
|
15
15
|
</a>
|
|
16
16
|
<a href="https://docs.stimulusreflex.com/" target="_blank">
|
|
17
17
|
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
|
|
@@ -85,8 +85,11 @@ class StimulusReflex::Reflex
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
def process(name, *args)
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
reflex_invoked = false
|
|
89
|
+
result = run_callbacks(:process) {
|
|
90
|
+
public_send(name, *args).tap { reflex_invoked = true }
|
|
91
|
+
}
|
|
92
|
+
@halted ||= result == false && !reflex_invoked
|
|
90
93
|
result
|
|
91
94
|
end
|
|
92
95
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stimulus_reflex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Hopkins
|
|
@@ -172,7 +172,7 @@ files:
|
|
|
172
172
|
- test/generators/stimulus_reflex_generator_test.rb
|
|
173
173
|
- test/test_helper.rb
|
|
174
174
|
- test/tmp/app/reflexes/application_reflex.rb
|
|
175
|
-
- test/tmp/app/reflexes/
|
|
175
|
+
- test/tmp/app/reflexes/demo_reflex.rb
|
|
176
176
|
homepage: https://github.com/hopsoft/stimulus_reflex
|
|
177
177
|
licenses:
|
|
178
178
|
- MIT
|
|
@@ -208,5 +208,5 @@ summary: Build reactive applications with the Rails tooling you already know and
|
|
|
208
208
|
test_files:
|
|
209
209
|
- test/test_helper.rb
|
|
210
210
|
- test/generators/stimulus_reflex_generator_test.rb
|
|
211
|
+
- test/tmp/app/reflexes/demo_reflex.rb
|
|
211
212
|
- test/tmp/app/reflexes/application_reflex.rb
|
|
212
|
-
- test/tmp/app/reflexes/posts_reflex.rb
|