stimulus_reflex 3.2.2 → 3.2.3

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: 937efac65da2fd94f45c4e51711bcb43c043a2c1a7c403ac7e3b7ab3e1418aa8
4
- data.tar.gz: 1650a98f1ec8134d5acf56deefbb15e8a536457e8bb044b6f002b2e56a7ce4a7
3
+ metadata.gz: 93021d6229f977ed0e6c37e224b4f066902bce77275c002bd9c94088a936fdde
4
+ data.tar.gz: d8a1673ffdbd790b003dec9123c4b01458132b645b0164d27e831632680d64b7
5
5
  SHA512:
6
- metadata.gz: ab6ffdefc511e60dd3b6f2c732d8a11fc8a11ec6d86a3c0887356539859e497c1671d1db18c50361869e8d8072f96f674b8e7ac899dec02a23641c0a3c3535fb
7
- data.tar.gz: f245124014cfbf5b1d673ea3a5da5781115e0e6d525ff64526e80901651cbcb818df57128ed3ae2121542408079782837835faec67180b657fa2965d702b2f03
6
+ metadata.gz: 6e69633c961caa4768e60b2e276018031f33383481c8acf4b4e851d8b05743faf39f72e89c562eca7bdef993e07a1987aa7d904a3978441eca0007e902bc7615
7
+ data.tar.gz: 6147c6ec0f9024d86a2c9ad6d47cc9de90798d68be9f079077197f5ae0b999d38ba8ec913b9d44288ca795aa583e13cd8b1b8a0a53bae302a8cfa513ee73d295
@@ -2,7 +2,25 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/hopsoft/stimulus_reflex/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.2.pre1...HEAD)
5
+ [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.2...HEAD)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Add more smarts to \_\_perform [\#235](https://github.com/hopsoft/stimulus_reflex/pull/235) ([hopsoft](https://github.com/hopsoft))
10
+ - \_\_perform had a bug where it was only ever calling the first event [\#234](https://github.com/hopsoft/stimulus_reflex/pull/234) ([leastbad](https://github.com/leastbad))
11
+ - merges insteads of overwrites params for reflex actions with form data [\#231](https://github.com/hopsoft/stimulus_reflex/pull/231) ([RolandStuder](https://github.com/RolandStuder))
12
+
13
+ **Closed issues:**
14
+
15
+ - "Uncaught \(in promise\)" error after failed declarative reflex [\#170](https://github.com/hopsoft/stimulus_reflex/issues/170)
16
+
17
+ **Merged pull requests:**
18
+
19
+ - Fix typos in the documentation [\#228](https://github.com/hopsoft/stimulus_reflex/pull/228) ([dlt](https://github.com/dlt))
20
+
21
+ ## [v3.2.2](https://github.com/hopsoft/stimulus_reflex/tree/v3.2.2) (2020-06-06)
22
+
23
+ [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.2.pre1...v3.2.2)
6
24
 
7
25
  **Closed issues:**
8
26
 
@@ -267,6 +285,7 @@
267
285
  **Implemented enhancements:**
268
286
 
269
287
  - Explicit and implicit registering of the ActionCable consumer [\#116](https://github.com/hopsoft/stimulus_reflex/pull/116) ([hopsoft](https://github.com/hopsoft))
288
+ - Add schema support [\#94](https://github.com/hopsoft/stimulus_reflex/pull/94) ([hopsoft](https://github.com/hopsoft))
270
289
 
271
290
  ## [v2.1.9](https://github.com/hopsoft/stimulus_reflex/tree/v2.1.9) (2020-02-20)
272
291
 
@@ -321,7 +340,6 @@
321
340
  **Implemented enhancements:**
322
341
 
323
342
  - Custom Stimulus schema breaks Reflex [\#91](https://github.com/hopsoft/stimulus_reflex/issues/91)
324
- - Add schema support [\#94](https://github.com/hopsoft/stimulus_reflex/pull/94) ([hopsoft](https://github.com/hopsoft))
325
343
  - inherit stimulus schema [\#92](https://github.com/hopsoft/stimulus_reflex/pull/92) ([nickyvanurk](https://github.com/nickyvanurk))
326
344
  - Single source of truth [\#76](https://github.com/hopsoft/stimulus_reflex/pull/76) ([leastbad](https://github.com/leastbad))
327
345
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (3.2.2)
4
+ stimulus_reflex (3.2.3)
5
5
  cable_ready (>= 4.1.2)
6
6
  nokogiri
7
7
  rack
@@ -65,7 +65,7 @@ GEM
65
65
  minitest (~> 5.1)
66
66
  tzinfo (~> 1.1)
67
67
  zeitwerk (~> 2.2, >= 2.2.2)
68
- ast (2.4.0)
68
+ ast (2.4.1)
69
69
  builder (3.2.4)
70
70
  cable_ready (4.2.0)
71
71
  rails (>= 5.2)
@@ -131,9 +131,9 @@ GEM
131
131
  thor (>= 0.20.3, < 2.0)
132
132
  rainbow (3.0.0)
133
133
  rake (13.0.1)
134
- regexp_parser (1.7.0)
134
+ regexp_parser (1.7.1)
135
135
  rexml (3.2.4)
136
- rubocop (0.85.0)
136
+ rubocop (0.85.1)
137
137
  parallel (~> 1.10)
138
138
  parser (>= 2.7.0.1)
139
139
  rainbow (>= 2.2.2, < 4.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-929-brightgreen.svg?style=flat" />
14
+ <img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-932-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" />
@@ -77,7 +77,7 @@ class StimulusReflex::Reflex
77
77
  )
78
78
  path_params = Rails.application.routes.recognize_path_with_request(req, url, req.env[:extras] || {})
79
79
  req.env.merge(ActionDispatch::Http::Parameters::PARAMETERS_KEY => path_params)
80
- req.env["action_dispatch.request.parameters"] = @params
80
+ req.env["action_dispatch.request.parameters"] = req.parameters.merge(@params)
81
81
  req.tap { |r| r.session.send :load! }
82
82
  end
83
83
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "3.2.2"
4
+ VERSION = "3.2.3"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DemoReflex < ApplicationReflex
3
+ class PostsReflex < ApplicationReflex
4
4
  # Add Reflex methods in this file.
5
5
  #
6
6
  # All Reflex instances expose the following properties:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-06 00:00:00.000000000 Z
11
+ date: 2020-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -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/demo_reflex.rb
175
+ - test/tmp/app/reflexes/posts_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
212
211
  - test/tmp/app/reflexes/application_reflex.rb
212
+ - test/tmp/app/reflexes/posts_reflex.rb