stimulus_reflex 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stimulus_reflex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a4d289bd66a80138ad11fb0ee66d63a593b802d295506253a1efbfd8bee08ef
4
- data.tar.gz: 318a9f5aa84bfb48ea08609c25a83820a2365cf583f6c08cd076af9895273ff1
3
+ metadata.gz: 62a646413ff8f9185f010b897867e16adde1220617a6da72ae9529b81dabc05c
4
+ data.tar.gz: 767c899c2279c21e80f20eeafe7e22c331dacfec245100f74e31882e5d2f9dda
5
5
  SHA512:
6
- metadata.gz: 55ded14eb91a0598111f5b3be3a0cb3502957a8f2613d7423709e54709b7e03b2ffbd1b10a6d433297bacc62690ab07a3a5cef9169800a70330bf1eb4b0257ec
7
- data.tar.gz: cdd3559b141aa6a082a5900575ede36283dac3cd04b7313854367ab145723faadbc1a0861437c962979e7d562a56139c99e6ec9d0ca4b69b61a99c620fb7105f
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.0)
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.3.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-805-brightgreen.svg?style=flat" />
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
- result = run_callbacks(:process) { public_send(name, *args) }
89
- @halted ||= result == false
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "3.2.0"
4
+ VERSION = "3.2.1"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class PostsReflex < ApplicationReflex
3
+ class DemoReflex < ApplicationReflex
4
4
  # Add Reflex methods in this file.
5
5
  #
6
6
  # All Reflex instances expose the following properties:
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.0
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/posts_reflex.rb
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