stimulus_reflex 3.5.0.pre4 → 3.5.0.pre8
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 +4 -4
- data/CHANGELOG.md +47 -6
- data/Gemfile.lock +99 -33
- data/README.md +12 -5
- data/Rakefile +8 -0
- data/app/channels/stimulus_reflex/channel.rb +2 -2
- data/lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb +1 -0
- data/lib/stimulus_reflex/reflex.rb +3 -3
- data/lib/stimulus_reflex/reflex_data.rb +4 -0
- data/lib/stimulus_reflex/reflex_factory.rb +2 -1
- data/lib/stimulus_reflex/version.rb +1 -1
- data/test/broadcasters/nothing_broadcaster_test.rb +1 -0
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ffc815bcd68df8271830e7d0f5e48addf4448bf5f2cc68ce1396ce44532bbac
|
4
|
+
data.tar.gz: d9670dc7c08cfed3377594ddc7b76bddfe05414b534cb23f302def128894e1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1857067ccb07a25fbe4032e610a485c0dba61eba9d7c0e47f6aafd339901dcde2c2b89e63f8d1927c1f5a5d9273c397e4b8328845e56557500698a235716d7f7
|
7
|
+
data.tar.gz: 92261d42e6d08c0f6443ba95b074410a4ffc7d2815a607b40f401b730e98ea2d89800c51fdd88476ad9b0fcba305ffbf3e4546ce48ba44b68e0b27838689b113
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,44 @@
|
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/stimulusreflex/stimulus_reflex/tree/HEAD)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.
|
5
|
+
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre7...HEAD)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Disable warning when using with importmap-rails [\#563](https://github.com/stimulusreflex/stimulus_reflex/issues/563)
|
10
|
+
- Unexplained error with basic scenario [\#562](https://github.com/stimulusreflex/stimulus_reflex/issues/562)
|
11
|
+
|
12
|
+
**Merged pull requests:**
|
13
|
+
|
14
|
+
- When searching a controller based off a reflex name, ignore hyphens [\#558](https://github.com/stimulusreflex/stimulus_reflex/pull/558) ([g-gagnon](https://github.com/g-gagnon))
|
15
|
+
|
16
|
+
## [v3.5.0.pre7](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre7) (2021-10-26)
|
17
|
+
|
18
|
+
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre6...v3.5.0.pre7)
|
19
|
+
|
20
|
+
## [v3.5.0.pre6](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre6) (2021-10-14)
|
21
|
+
|
22
|
+
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre5...v3.5.0.pre6)
|
23
|
+
|
24
|
+
**Fixed bugs:**
|
25
|
+
|
26
|
+
- serialize forms with multiple, non-unique array elements [\#556](https://github.com/stimulusreflex/stimulus_reflex/pull/556) ([leastbad](https://github.com/leastbad))
|
27
|
+
|
28
|
+
**Closed issues:**
|
29
|
+
|
30
|
+
- reflex form parameter lists are uniqued [\#555](https://github.com/stimulusreflex/stimulus_reflex/issues/555)
|
31
|
+
|
32
|
+
**Merged pull requests:**
|
33
|
+
|
34
|
+
- fix gh action for standardrb [\#554](https://github.com/stimulusreflex/stimulus_reflex/pull/554) ([nachiket87](https://github.com/nachiket87))
|
35
|
+
|
36
|
+
## [v3.5.0.pre5](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre5) (2021-10-07)
|
37
|
+
|
38
|
+
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre4...v3.5.0.pre5)
|
39
|
+
|
40
|
+
## [v3.5.0.pre4](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre4) (2021-10-07)
|
41
|
+
|
42
|
+
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre3...v3.5.0.pre4)
|
6
43
|
|
7
44
|
**Closed issues:**
|
8
45
|
|
@@ -37,6 +74,7 @@
|
|
37
74
|
- add first line of stacktrace to console.log error in dev environment [\#532](https://github.com/stimulusreflex/stimulus_reflex/pull/532) ([RolandStuder](https://github.com/RolandStuder))
|
38
75
|
- Add test for `data-reflex-dataset="descendants"` [\#531](https://github.com/stimulusreflex/stimulus_reflex/pull/531) ([assuntaw](https://github.com/assuntaw))
|
39
76
|
- Provide proxy methods boolean and numeric on Element [\#528](https://github.com/stimulusreflex/stimulus_reflex/pull/528) ([julianrubisch](https://github.com/julianrubisch))
|
77
|
+
- Specify form selector [\#527](https://github.com/stimulusreflex/stimulus_reflex/pull/527) ([julianrubisch](https://github.com/julianrubisch))
|
40
78
|
|
41
79
|
## [v3.5.0.pre2](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre2) (2021-07-21)
|
42
80
|
|
@@ -59,7 +97,6 @@
|
|
59
97
|
|
60
98
|
**Merged pull requests:**
|
61
99
|
|
62
|
-
- Specify form selector [\#527](https://github.com/stimulusreflex/stimulus_reflex/pull/527) ([julianrubisch](https://github.com/julianrubisch))
|
63
100
|
- Fix two minor typos [\#526](https://github.com/stimulusreflex/stimulus_reflex/pull/526) ([julianrubisch](https://github.com/julianrubisch))
|
64
101
|
- chore: add sideEffects false to make Webpack happy [\#523](https://github.com/stimulusreflex/stimulus_reflex/pull/523) ([ParamagicDev](https://github.com/ParamagicDev))
|
65
102
|
- Morph stimulus reflex element AKA "single element page morph" [\#522](https://github.com/stimulusreflex/stimulus_reflex/pull/522) ([julianrubisch](https://github.com/julianrubisch))
|
@@ -402,7 +439,6 @@
|
|
402
439
|
- introduce tab isolation mode [\#324](https://github.com/stimulusreflex/stimulus_reflex/pull/324) ([leastbad](https://github.com/leastbad))
|
403
440
|
- Force request encodings to be UTF-8 instead of ASCII-8BIT after a reflex [\#320](https://github.com/stimulusreflex/stimulus_reflex/pull/320) ([marcoroth](https://github.com/marcoroth))
|
404
441
|
- Append short section about resetting a form [\#319](https://github.com/stimulusreflex/stimulus_reflex/pull/319) ([julianrubisch](https://github.com/julianrubisch))
|
405
|
-
- lifecycle refactor: introduce new finalize stage, global reflexes dictionary [\#317](https://github.com/stimulusreflex/stimulus_reflex/pull/317) ([leastbad](https://github.com/leastbad))
|
406
442
|
- Update events.md [\#316](https://github.com/stimulusreflex/stimulus_reflex/pull/316) ([gahia](https://github.com/gahia))
|
407
443
|
- Proposal: Reduce bundle size and add a bundler for Stimulus Reflex javascript [\#315](https://github.com/stimulusreflex/stimulus_reflex/pull/315) ([ParamagicDev](https://github.com/ParamagicDev))
|
408
444
|
|
@@ -426,6 +462,7 @@
|
|
426
462
|
|
427
463
|
**Merged pull requests:**
|
428
464
|
|
465
|
+
- lifecycle refactor: introduce new finalize stage, global reflexes dictionary [\#317](https://github.com/stimulusreflex/stimulus_reflex/pull/317) ([leastbad](https://github.com/leastbad))
|
429
466
|
- fixes and tweaks to client logging subsystem [\#313](https://github.com/stimulusreflex/stimulus_reflex/pull/313) ([leastbad](https://github.com/leastbad))
|
430
467
|
- add ready event after setupDeclarativeReflexes [\#312](https://github.com/stimulusreflex/stimulus_reflex/pull/312) ([leastbad](https://github.com/leastbad))
|
431
468
|
- Refactor sanity checks on boot [\#311](https://github.com/stimulusreflex/stimulus_reflex/pull/311) ([excid3](https://github.com/excid3))
|
@@ -505,6 +542,7 @@
|
|
505
542
|
- Fix argument of type object always being assigned to options [\#279](https://github.com/stimulusreflex/stimulus_reflex/pull/279) ([shawnleong](https://github.com/shawnleong))
|
506
543
|
- Simplify devise authentication logic \(in docs\) [\#276](https://github.com/stimulusreflex/stimulus_reflex/pull/276) ([inner-whisper](https://github.com/inner-whisper))
|
507
544
|
- Bump lodash from 4.17.15 to 4.17.19 in /javascript [\#275](https://github.com/stimulusreflex/stimulus_reflex/pull/275) ([dependabot[bot]](https://github.com/apps/dependabot))
|
545
|
+
- Update deployment docs after the official AnyCable 1.0 release [\#267](https://github.com/stimulusreflex/stimulus_reflex/pull/267) ([rmacklin](https://github.com/rmacklin))
|
508
546
|
|
509
547
|
## [v3.3.0.pre2](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.3.0.pre2) (2020-07-17)
|
510
548
|
|
@@ -523,7 +561,6 @@
|
|
523
561
|
- Update find element to ignore SR attrs [\#272](https://github.com/stimulusreflex/stimulus_reflex/pull/272) ([hopsoft](https://github.com/hopsoft))
|
524
562
|
- Refactor of the morph feature [\#270](https://github.com/stimulusreflex/stimulus_reflex/pull/270) ([hopsoft](https://github.com/hopsoft))
|
525
563
|
- coerce html arguments to string type [\#268](https://github.com/stimulusreflex/stimulus_reflex/pull/268) ([leastbad](https://github.com/leastbad))
|
526
|
-
- Update deployment docs after the official AnyCable 1.0 release [\#267](https://github.com/stimulusreflex/stimulus_reflex/pull/267) ([rmacklin](https://github.com/rmacklin))
|
527
564
|
|
528
565
|
## [v3.3.0.pre1](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.3.0.pre1) (2020-07-08)
|
529
566
|
|
@@ -552,6 +589,7 @@
|
|
552
589
|
- beforeUpdate/updateSuccess/updateError functions deprecated? [\#255](https://github.com/stimulusreflex/stimulus_reflex/issues/255)
|
553
590
|
- Error handling will fail if reflex is not defined [\#253](https://github.com/stimulusreflex/stimulus_reflex/issues/253)
|
554
591
|
- Select with data-reflex in Firefox flickers [\#251](https://github.com/stimulusreflex/stimulus_reflex/issues/251)
|
592
|
+
- data-reflex-attributes vs data-reflex-dataset [\#237](https://github.com/stimulusreflex/stimulus_reflex/issues/237)
|
555
593
|
- Shorthand action notations corresponding to stimulus [\#233](https://github.com/stimulusreflex/stimulus_reflex/issues/233)
|
556
594
|
- Lifecycle methods only called for one reflex [\#225](https://github.com/stimulusreflex/stimulus_reflex/issues/225)
|
557
595
|
- Tweak the generator so we can specify reflex actions [\#219](https://github.com/stimulusreflex/stimulus_reflex/issues/219)
|
@@ -966,6 +1004,10 @@
|
|
966
1004
|
|
967
1005
|
[Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v2.1.0...v2.1.1)
|
968
1006
|
|
1007
|
+
**Implemented enhancements:**
|
1008
|
+
|
1009
|
+
- Stricter parsing of attributes [\#56](https://github.com/stimulusreflex/stimulus_reflex/pull/56) ([hopsoft](https://github.com/hopsoft))
|
1010
|
+
|
969
1011
|
**Fixed bugs:**
|
970
1012
|
|
971
1013
|
- Fix issue in reflex root discovery [\#66](https://github.com/stimulusreflex/stimulus_reflex/pull/66) ([hopsoft](https://github.com/hopsoft))
|
@@ -984,7 +1026,6 @@
|
|
984
1026
|
- Refactor some helper methods out of main file [\#61](https://github.com/stimulusreflex/stimulus_reflex/pull/61) ([hopsoft](https://github.com/hopsoft))
|
985
1027
|
- Documentation update [\#58](https://github.com/stimulusreflex/stimulus_reflex/pull/58) ([leastbad](https://github.com/leastbad))
|
986
1028
|
- \# Support for data-reflex-permanent [\#57](https://github.com/stimulusreflex/stimulus_reflex/pull/57) ([hopsoft](https://github.com/hopsoft))
|
987
|
-
- Stricter parsing of attributes [\#56](https://github.com/stimulusreflex/stimulus_reflex/pull/56) ([hopsoft](https://github.com/hopsoft))
|
988
1029
|
- \# Use inner\_html to avoid reliance on HTMLTemplateElement behavior [\#55](https://github.com/stimulusreflex/stimulus_reflex/pull/55) ([hopsoft](https://github.com/hopsoft))
|
989
1030
|
- Trim values before attribute assignment [\#54](https://github.com/stimulusreflex/stimulus_reflex/pull/54) ([hopsoft](https://github.com/hopsoft))
|
990
1031
|
- add test action [\#53](https://github.com/stimulusreflex/stimulus_reflex/pull/53) ([andrewmcodes](https://github.com/andrewmcodes))
|
@@ -1020,7 +1061,6 @@
|
|
1020
1061
|
- Allow override of default controller [\#37](https://github.com/stimulusreflex/stimulus_reflex/pull/37) ([hopsoft](https://github.com/hopsoft))
|
1021
1062
|
- update the name of the actions per feedback [\#36](https://github.com/stimulusreflex/stimulus_reflex/pull/36) ([andrewmcodes](https://github.com/andrewmcodes))
|
1022
1063
|
- update github templates [\#35](https://github.com/stimulusreflex/stimulus_reflex/pull/35) ([andrewmcodes](https://github.com/andrewmcodes))
|
1023
|
-
- Tighten up security of remote invocation [\#32](https://github.com/stimulusreflex/stimulus_reflex/pull/32) ([hopsoft](https://github.com/hopsoft))
|
1024
1064
|
|
1025
1065
|
**Fixed bugs:**
|
1026
1066
|
|
@@ -1053,6 +1093,7 @@
|
|
1053
1093
|
|
1054
1094
|
**Implemented enhancements:**
|
1055
1095
|
|
1096
|
+
- Tighten up security of remote invocation [\#32](https://github.com/stimulusreflex/stimulus_reflex/pull/32) ([hopsoft](https://github.com/hopsoft))
|
1056
1097
|
- Implicitly send DOM attributes to reflex methods [\#21](https://github.com/stimulusreflex/stimulus_reflex/pull/21) ([hopsoft](https://github.com/hopsoft))
|
1057
1098
|
- Add Ruby magic comment [\#18](https://github.com/stimulusreflex/stimulus_reflex/pull/18) ([dixpac](https://github.com/dixpac))
|
1058
1099
|
- Add GitHub Actions for Linters [\#17](https://github.com/stimulusreflex/stimulus_reflex/pull/17) ([andrewmcodes](https://github.com/andrewmcodes))
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stimulus_reflex (3.5.0.
|
5
|
-
cable_ready (= 5.0.0.
|
4
|
+
stimulus_reflex (3.5.0.pre8)
|
5
|
+
cable_ready (= 5.0.0.pre8)
|
6
6
|
nokogiri
|
7
7
|
rack
|
8
8
|
rails (>= 5.2)
|
@@ -70,18 +70,71 @@ GEM
|
|
70
70
|
minitest (>= 5.1)
|
71
71
|
tzinfo (~> 2.0)
|
72
72
|
zeitwerk (~> 2.3)
|
73
|
+
addressable (2.8.0)
|
74
|
+
public_suffix (>= 2.0.2, < 5.0)
|
73
75
|
ast (2.4.2)
|
76
|
+
async (1.30.1)
|
77
|
+
console (~> 1.10)
|
78
|
+
nio4r (~> 2.3)
|
79
|
+
timers (~> 4.1)
|
80
|
+
async-http (0.56.5)
|
81
|
+
async (>= 1.25)
|
82
|
+
async-io (>= 1.28)
|
83
|
+
async-pool (>= 0.2)
|
84
|
+
protocol-http (~> 0.22.0)
|
85
|
+
protocol-http1 (~> 0.14.0)
|
86
|
+
protocol-http2 (~> 0.14.0)
|
87
|
+
async-http-faraday (0.11.0)
|
88
|
+
async-http (~> 0.42)
|
89
|
+
faraday
|
90
|
+
async-io (1.32.2)
|
91
|
+
async
|
92
|
+
async-pool (0.3.9)
|
93
|
+
async (>= 1.25)
|
74
94
|
builder (3.2.4)
|
75
|
-
cable_ready (5.0.0.
|
95
|
+
cable_ready (5.0.0.pre8)
|
76
96
|
rails (>= 5.2)
|
77
97
|
thread-local (>= 1.1.0)
|
78
98
|
coderay (1.1.3)
|
79
99
|
concurrent-ruby (1.1.9)
|
100
|
+
console (1.14.0)
|
101
|
+
fiber-local
|
80
102
|
crass (1.0.6)
|
81
103
|
erubi (1.10.0)
|
104
|
+
faraday (1.8.0)
|
105
|
+
faraday-em_http (~> 1.0)
|
106
|
+
faraday-em_synchrony (~> 1.0)
|
107
|
+
faraday-excon (~> 1.1)
|
108
|
+
faraday-httpclient (~> 1.0.1)
|
109
|
+
faraday-net_http (~> 1.0)
|
110
|
+
faraday-net_http_persistent (~> 1.1)
|
111
|
+
faraday-patron (~> 1.0)
|
112
|
+
faraday-rack (~> 1.0)
|
113
|
+
multipart-post (>= 1.2, < 3)
|
114
|
+
ruby2_keywords (>= 0.0.4)
|
115
|
+
faraday-em_http (1.0.0)
|
116
|
+
faraday-em_synchrony (1.0.0)
|
117
|
+
faraday-excon (1.1.0)
|
118
|
+
faraday-http-cache (2.2.0)
|
119
|
+
faraday (>= 0.8)
|
120
|
+
faraday-httpclient (1.0.1)
|
121
|
+
faraday-net_http (1.0.1)
|
122
|
+
faraday-net_http_persistent (1.2.0)
|
123
|
+
faraday-patron (1.0.0)
|
124
|
+
faraday-rack (1.0.0)
|
125
|
+
fiber-local (1.0.0)
|
126
|
+
github_changelog_generator (1.16.4)
|
127
|
+
activesupport
|
128
|
+
async (>= 1.25.0)
|
129
|
+
async-http-faraday
|
130
|
+
faraday-http-cache
|
131
|
+
multi_json
|
132
|
+
octokit (~> 4.6)
|
133
|
+
rainbow (>= 2.2.1)
|
134
|
+
rake (>= 10.0)
|
82
135
|
globalid (0.5.2)
|
83
136
|
activesupport (>= 5.0)
|
84
|
-
i18n (1.8.
|
137
|
+
i18n (1.8.11)
|
85
138
|
concurrent-ruby (~> 1.0)
|
86
139
|
loofah (2.12.0)
|
87
140
|
crass (~> 1.0.2)
|
@@ -89,26 +142,35 @@ GEM
|
|
89
142
|
mail (2.7.1)
|
90
143
|
mini_mime (>= 0.1.1)
|
91
144
|
marcel (1.0.2)
|
92
|
-
method_source (0.
|
93
|
-
mini_mime (1.1.
|
145
|
+
method_source (1.0.0)
|
146
|
+
mini_mime (1.1.2)
|
94
147
|
minitest (5.14.4)
|
95
148
|
mocha (1.13.0)
|
149
|
+
multi_json (1.15.0)
|
150
|
+
multipart-post (2.1.1)
|
96
151
|
nio4r (2.5.8)
|
97
|
-
nokogiri (1.12.5-arm64-darwin)
|
98
|
-
racc (~> 1.4)
|
99
|
-
nokogiri (1.12.5-x86_64-darwin)
|
100
|
-
racc (~> 1.4)
|
101
152
|
nokogiri (1.12.5-x86_64-linux)
|
102
153
|
racc (~> 1.4)
|
103
|
-
|
154
|
+
octokit (4.21.0)
|
155
|
+
faraday (>= 0.9)
|
156
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
157
|
+
parallel (1.21.0)
|
104
158
|
parser (3.0.2.0)
|
105
159
|
ast (~> 2.4.1)
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
160
|
+
protocol-hpack (1.4.2)
|
161
|
+
protocol-http (0.22.5)
|
162
|
+
protocol-http1 (0.14.2)
|
163
|
+
protocol-http (~> 0.22)
|
164
|
+
protocol-http2 (0.14.2)
|
165
|
+
protocol-hpack (~> 1.4)
|
166
|
+
protocol-http (~> 0.18)
|
167
|
+
pry (0.14.1)
|
168
|
+
coderay (~> 1.1)
|
169
|
+
method_source (~> 1.0)
|
170
|
+
pry-nav (1.0.0)
|
171
|
+
pry (>= 0.9.10, < 0.15)
|
172
|
+
public_suffix (4.0.6)
|
173
|
+
racc (1.6.0)
|
112
174
|
rack (2.2.3)
|
113
175
|
rack-test (1.1.0)
|
114
176
|
rack (>= 1.0, < 3)
|
@@ -140,53 +202,57 @@ GEM
|
|
140
202
|
thor (~> 1.0)
|
141
203
|
rainbow (3.0.0)
|
142
204
|
rake (13.0.6)
|
143
|
-
redis (4.
|
205
|
+
redis (4.5.1)
|
144
206
|
regexp_parser (2.1.1)
|
145
207
|
rexml (3.2.5)
|
146
|
-
rubocop (1.
|
208
|
+
rubocop (1.22.3)
|
147
209
|
parallel (~> 1.10)
|
148
210
|
parser (>= 3.0.0.0)
|
149
211
|
rainbow (>= 2.2.2, < 4.0)
|
150
212
|
regexp_parser (>= 1.8, < 3.0)
|
151
213
|
rexml
|
152
|
-
rubocop-ast (>= 1.
|
214
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
153
215
|
ruby-progressbar (~> 1.7)
|
154
216
|
unicode-display_width (>= 1.4.0, < 3.0)
|
155
|
-
rubocop-ast (1.
|
217
|
+
rubocop-ast (1.13.0)
|
156
218
|
parser (>= 3.0.1.1)
|
157
|
-
rubocop-performance (1.11.
|
219
|
+
rubocop-performance (1.11.5)
|
158
220
|
rubocop (>= 1.7.0, < 2.0)
|
159
221
|
rubocop-ast (>= 0.4.0)
|
160
222
|
ruby-progressbar (1.11.0)
|
223
|
+
ruby2_keywords (0.0.5)
|
224
|
+
sawyer (0.8.2)
|
225
|
+
addressable (>= 2.3.5)
|
226
|
+
faraday (> 0.8, < 2.0)
|
161
227
|
sprockets (4.0.2)
|
162
228
|
concurrent-ruby (~> 1.0)
|
163
229
|
rack (> 1, < 3)
|
164
|
-
sprockets-rails (3.
|
165
|
-
actionpack (>=
|
166
|
-
activesupport (>=
|
230
|
+
sprockets-rails (3.4.0)
|
231
|
+
actionpack (>= 5.2)
|
232
|
+
activesupport (>= 5.2)
|
167
233
|
sprockets (>= 3.0.0)
|
168
|
-
standard (1.
|
169
|
-
rubocop (= 1.
|
170
|
-
rubocop-performance (= 1.11.
|
234
|
+
standard (1.4.0)
|
235
|
+
rubocop (= 1.22.3)
|
236
|
+
rubocop-performance (= 1.11.5)
|
171
237
|
standardrb (1.0.0)
|
172
238
|
standard
|
173
239
|
thor (1.1.0)
|
174
240
|
thread-local (1.1.0)
|
241
|
+
timers (4.3.3)
|
175
242
|
tzinfo (2.0.4)
|
176
243
|
concurrent-ruby (~> 1.0)
|
177
|
-
unicode-display_width (2.
|
244
|
+
unicode-display_width (2.1.0)
|
178
245
|
websocket-driver (0.7.5)
|
179
246
|
websocket-extensions (>= 0.1.0)
|
180
247
|
websocket-extensions (0.1.5)
|
181
|
-
zeitwerk (2.
|
248
|
+
zeitwerk (2.5.1)
|
182
249
|
|
183
250
|
PLATFORMS
|
184
|
-
arm64-darwin-20
|
185
|
-
x86_64-darwin-19
|
186
251
|
x86_64-linux
|
187
252
|
|
188
253
|
DEPENDENCIES
|
189
254
|
bundler (~> 2.0)
|
255
|
+
github_changelog_generator
|
190
256
|
mocha
|
191
257
|
pry
|
192
258
|
pry-nav
|
@@ -195,4 +261,4 @@ DEPENDENCIES
|
|
195
261
|
stimulus_reflex!
|
196
262
|
|
197
263
|
BUNDLED WITH
|
198
|
-
2.2.
|
264
|
+
2.2.31
|
data/README.md
CHANGED
@@ -109,11 +109,18 @@ View the [wiki](https://github.com/stimulusreflex/stimulus_reflex/wiki/Editor-Co
|
|
109
109
|
|
110
110
|
## 📦 Releasing
|
111
111
|
|
112
|
-
1.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
112
|
+
1. Always publish CableReady first!
|
113
|
+
1. Update the `cable_ready` dependency version in `stimulus_reflex.gemspec` and `package.json`
|
114
|
+
1. Make sure that you run `yarn` and `bundle` to pick up the latest.
|
115
|
+
1. Bump version number at `lib/stimulus_reflex/version.rb`. Pre-release versions use `.preN`
|
116
|
+
1. Run `rake build`
|
117
|
+
1. Run `bin/standardize`
|
118
|
+
1. Commit and push changes to github
|
119
|
+
1. Run `rake release`
|
120
|
+
1. Run `yarn publish --no-git-tag-version`
|
121
|
+
1. Yarn will prompt you for the new version. Pre-release versions use `-preN`
|
122
|
+
1. Run `GITHUB_CHANGELOG_GENERATOR_TOKEN=SECRET rake changelog`
|
123
|
+
1. Commit and push changes to github
|
117
124
|
|
118
125
|
## 📝 License
|
119
126
|
|
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
4
|
require "rails/test_unit/runner"
|
5
|
+
require "github_changelog_generator/task"
|
5
6
|
|
6
7
|
task :test_javascript do |task|
|
7
8
|
system "yarn run test"
|
@@ -13,3 +14,10 @@ end
|
|
13
14
|
|
14
15
|
task test: [:test_javascript, :test_ruby]
|
15
16
|
task default: [:test]
|
17
|
+
|
18
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
19
|
+
config.user = "stimulusreflex"
|
20
|
+
config.project = "stimulus_reflex"
|
21
|
+
config.exclude_labels = %w[duplicate question invalid wontfix nodoc]
|
22
|
+
config.token = ENV["GITHUB_CHANGELOG_GENERATOR_TOKEN"]
|
23
|
+
end
|
@@ -27,12 +27,12 @@ class StimulusReflex::Channel < StimulusReflex.configuration.parent_channel.cons
|
|
27
27
|
reflex.logger&.error error_message
|
28
28
|
reflex.error data: data, body: "#{exception} #{exception.backtrace.first.split(":in ")[0] if Rails.env.development?}"
|
29
29
|
else
|
30
|
-
|
30
|
+
StimulusReflex.config.logger.error error_message
|
31
31
|
|
32
32
|
if body.to_s.include? "No route matches"
|
33
33
|
initializer_path = Rails.root.join("config", "initializers", "stimulus_reflex.rb")
|
34
34
|
|
35
|
-
|
35
|
+
StimulusReflex.config.logger.warn <<~NOTE
|
36
36
|
\e[33mNOTE: StimulusReflex failed to locate a matching route and could not re-render the page.
|
37
37
|
|
38
38
|
If your app uses Rack middleware to rewrite part of the request path, you must enable those middleware modules in StimulusReflex.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
ClientAttributes = Struct.new(:reflex_id, :tab_id, :reflex_controller, :xpath_controller, :xpath_element, :permanent_attribute_name, keyword_init: true)
|
3
|
+
ClientAttributes = Struct.new(:reflex_id, :tab_id, :reflex_controller, :xpath_controller, :xpath_element, :permanent_attribute_name, :suppress_logging, keyword_init: true)
|
4
4
|
|
5
5
|
class StimulusReflex::Reflex
|
6
6
|
include ActiveSupport::Rescuable
|
@@ -16,7 +16,7 @@ class StimulusReflex::Reflex
|
|
16
16
|
delegate :connection, :stream_name, to: :channel
|
17
17
|
delegate :controller_class, :flash, :session, to: :request
|
18
18
|
delegate :broadcast, :halted, :error, to: :broadcaster
|
19
|
-
delegate :reflex_id, :tab_id, :reflex_controller, :xpath_controller, :xpath_element, :permanent_attribute_name, to: :client_attributes
|
19
|
+
delegate :reflex_id, :tab_id, :reflex_controller, :xpath_controller, :xpath_element, :permanent_attribute_name, :suppress_logging, to: :client_attributes
|
20
20
|
|
21
21
|
def initialize(channel, url: nil, element: nil, selectors: [], method_name: nil, params: {}, client_attributes: {})
|
22
22
|
if is_a? CableReady::Broadcaster
|
@@ -37,8 +37,8 @@ class StimulusReflex::Reflex
|
|
37
37
|
@method_name = method_name
|
38
38
|
@params = params
|
39
39
|
@broadcaster = StimulusReflex::PageBroadcaster.new(self)
|
40
|
-
@logger = StimulusReflex::Logger.new(self)
|
41
40
|
@client_attributes = ClientAttributes.new(client_attributes)
|
41
|
+
@logger = suppress_logging ? nil : StimulusReflex::Logger.new(self)
|
42
42
|
@cable_ready = StimulusReflex::CableReadyChannels.new(stream_name, reflex_id)
|
43
43
|
@payload = {}
|
44
44
|
@headers = {}
|
@@ -16,7 +16,8 @@ class StimulusReflex::ReflexFactory
|
|
16
16
|
xpath_controller: reflex_data.xpath_controller,
|
17
17
|
xpath_element: reflex_data.xpath_element,
|
18
18
|
reflex_controller: reflex_data.reflex_controller,
|
19
|
-
permanent_attribute_name: reflex_data.permanent_attribute_name
|
19
|
+
permanent_attribute_name: reflex_data.permanent_attribute_name,
|
20
|
+
suppress_logging: reflex_data.suppress_logging
|
20
21
|
})
|
21
22
|
end
|
22
23
|
|
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.5.0.
|
4
|
+
version: 3.5.0.pre8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 5.0.0.
|
75
|
+
version: 5.0.0.pre8
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 5.0.0.
|
82
|
+
version: 5.0.0.pre8
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,21 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: github_changelog_generator
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: mocha
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ">="
|
@@ -123,7 +137,7 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: pry-nav
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
@@ -137,7 +151,7 @@ dependencies:
|
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
154
|
+
name: rake
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - ">="
|