stimulus_reflex 3.5.0.pre7 → 3.5.0.pre8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7405634b194a94ccfe3fc3306f7bbdb56fb8db4444289fbbe58f1c51f9ef2bf8
4
- data.tar.gz: 9580eb10f36f1253fdee8eb6fd28ad1c6917d610ced8c6a6e993078dee7bb972
3
+ metadata.gz: 6ffc815bcd68df8271830e7d0f5e48addf4448bf5f2cc68ce1396ce44532bbac
4
+ data.tar.gz: d9670dc7c08cfed3377594ddc7b76bddfe05414b534cb23f302def128894e1d7
5
5
  SHA512:
6
- metadata.gz: 98b50b8e87323f71774b5818effa260f2f4d89f3aa53670eea71dc5612fd11187d84148c1a4a8a5ade93ddfa94999615d9b5983f082eced625650c2d2ebf6780
7
- data.tar.gz: cc3dc5df11fd4e79e8e59fa89298a257a181f9ec2efaea521ead1d829a890458d9983696cb4fae0e5c4383bc280109d106a47f0c9c1d34d898330fda010d9225
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.pre3...HEAD)
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.pre7)
5
- cable_ready (= 5.0.0.pre7)
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.pre7)
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.10)
137
+ i18n (1.8.11)
85
138
  concurrent-ruby (~> 1.0)
86
139
  loofah (2.12.0)
87
140
  crass (~> 1.0.2)
@@ -89,21 +142,34 @@ GEM
89
142
  mail (2.7.1)
90
143
  mini_mime (>= 0.1.1)
91
144
  marcel (1.0.2)
92
- method_source (0.9.2)
145
+ method_source (1.0.0)
93
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)
152
+ nokogiri (1.12.5-x86_64-linux)
98
153
  racc (~> 1.4)
99
- parallel (1.20.1)
154
+ octokit (4.21.0)
155
+ faraday (>= 0.9)
156
+ sawyer (~> 0.8.0, >= 0.5.3)
157
+ parallel (1.21.0)
100
158
  parser (3.0.2.0)
101
159
  ast (~> 2.4.1)
102
- pry (0.12.2)
103
- coderay (~> 1.1.0)
104
- method_source (~> 0.9.0)
105
- pry-nav (0.3.0)
106
- pry (>= 0.9.10, < 0.13.0)
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)
107
173
  racc (1.6.0)
108
174
  rack (2.2.3)
109
175
  rack-test (1.1.0)
@@ -139,50 +205,54 @@ GEM
139
205
  redis (4.5.1)
140
206
  regexp_parser (2.1.1)
141
207
  rexml (3.2.5)
142
- rubocop (1.18.3)
208
+ rubocop (1.22.3)
143
209
  parallel (~> 1.10)
144
210
  parser (>= 3.0.0.0)
145
211
  rainbow (>= 2.2.2, < 4.0)
146
212
  regexp_parser (>= 1.8, < 3.0)
147
213
  rexml
148
- rubocop-ast (>= 1.7.0, < 2.0)
214
+ rubocop-ast (>= 1.12.0, < 2.0)
149
215
  ruby-progressbar (~> 1.7)
150
216
  unicode-display_width (>= 1.4.0, < 3.0)
151
- rubocop-ast (1.8.0)
217
+ rubocop-ast (1.13.0)
152
218
  parser (>= 3.0.1.1)
153
- rubocop-performance (1.11.4)
219
+ rubocop-performance (1.11.5)
154
220
  rubocop (>= 1.7.0, < 2.0)
155
221
  rubocop-ast (>= 0.4.0)
156
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)
157
227
  sprockets (4.0.2)
158
228
  concurrent-ruby (~> 1.0)
159
229
  rack (> 1, < 3)
160
- sprockets-rails (3.2.2)
161
- actionpack (>= 4.0)
162
- activesupport (>= 4.0)
230
+ sprockets-rails (3.4.0)
231
+ actionpack (>= 5.2)
232
+ activesupport (>= 5.2)
163
233
  sprockets (>= 3.0.0)
164
- standard (1.1.5)
165
- rubocop (= 1.18.3)
166
- rubocop-performance (= 1.11.4)
234
+ standard (1.4.0)
235
+ rubocop (= 1.22.3)
236
+ rubocop-performance (= 1.11.5)
167
237
  standardrb (1.0.0)
168
238
  standard
169
239
  thor (1.1.0)
170
240
  thread-local (1.1.0)
241
+ timers (4.3.3)
171
242
  tzinfo (2.0.4)
172
243
  concurrent-ruby (~> 1.0)
173
- unicode-display_width (2.0.0)
244
+ unicode-display_width (2.1.0)
174
245
  websocket-driver (0.7.5)
175
246
  websocket-extensions (>= 0.1.0)
176
247
  websocket-extensions (0.1.5)
177
248
  zeitwerk (2.5.1)
178
249
 
179
250
  PLATFORMS
180
- arm64-darwin-20
181
- x86_64-darwin-19
182
251
  x86_64-linux
183
252
 
184
253
  DEPENDENCIES
185
254
  bundler (~> 2.0)
255
+ github_changelog_generator
186
256
  mocha
187
257
  pry
188
258
  pry-nav
@@ -191,4 +261,4 @@ DEPENDENCIES
191
261
  stimulus_reflex!
192
262
 
193
263
  BUNDLED WITH
194
- 2.2.4
264
+ 2.2.31
data/README.md CHANGED
@@ -114,6 +114,7 @@ View the [wiki](https://github.com/stimulusreflex/stimulus_reflex/wiki/Editor-Co
114
114
  1. Make sure that you run `yarn` and `bundle` to pick up the latest.
115
115
  1. Bump version number at `lib/stimulus_reflex/version.rb`. Pre-release versions use `.preN`
116
116
  1. Run `rake build`
117
+ 1. Run `bin/standardize`
117
118
  1. Commit and push changes to github
118
119
  1. Run `rake release`
119
120
  1. Run `yarn publish --no-git-tag-version`
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
@@ -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 = {}
@@ -41,6 +41,10 @@ class StimulusReflex::ReflexData
41
41
  data["permanentAttributeName"]
42
42
  end
43
43
 
44
+ def suppress_logging
45
+ data["suppressLogging"]
46
+ end
47
+
44
48
  def form_data
45
49
  Rack::Utils.parse_nested_query(data["formData"])
46
50
  end
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "3.5.0.pre7"
4
+ VERSION = "3.5.0.pre8"
5
5
  end
@@ -11,6 +11,7 @@ class StimulusReflex::NothingBroadcasterTest < StimulusReflex::BroadcasterTestCa
11
11
  "operations" => [
12
12
  {
13
13
  "name" => "stimulus-reflex:morph-nothing",
14
+ "selector" => nil,
14
15
  "payload" => {},
15
16
  "stimulusReflex" => {
16
17
  "some" => "data",
@@ -32,5 +32,4 @@ class DemoReflex < ApplicationReflex
32
32
  # end
33
33
  #
34
34
  # Learn more at: https://docs.stimulusreflex.com/rtfm/reflex-classes
35
-
36
35
  end
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.pre7
4
+ version: 3.5.0.pre8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
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.pre7
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.pre7
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: pry-nav
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: rake
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: mocha
154
+ name: rake
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
@@ -164,7 +178,7 @@ dependencies:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
180
  version: '1.0'
167
- description:
181
+ description:
168
182
  email:
169
183
  - natehop@gmail.com
170
184
  executables: []
@@ -216,8 +230,6 @@ files:
216
230
  - lib/stimulus_reflex/utils/sanity_checker.rb
217
231
  - lib/stimulus_reflex/version.rb
218
232
  - lib/tasks/stimulus_reflex/install.rake
219
- - package.json
220
- - stimulus_reflex.gemspec
221
233
  - test/broadcasters/broadcaster_test.rb
222
234
  - test/broadcasters/broadcaster_test_case.rb
223
235
  - test/broadcasters/nothing_broadcaster_test.rb
@@ -231,7 +243,6 @@ files:
231
243
  - test/test_helper.rb
232
244
  - test/tmp/app/reflexes/application_reflex.rb
233
245
  - test/tmp/app/reflexes/demo_reflex.rb
234
- - yarn.lock
235
246
  homepage: https://github.com/stimulusreflex/stimulus_reflex
236
247
  licenses:
237
248
  - MIT
@@ -264,22 +275,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
275
  - !ruby/object:Gem::Version
265
276
  version: 1.3.1
266
277
  requirements: []
267
- rubygems_version: 3.2.3
268
- signing_key:
278
+ rubygems_version: 3.1.6
279
+ signing_key:
269
280
  specification_version: 4
270
281
  summary: Build reactive applications with the Rails tooling you already know and love.
271
282
  test_files:
272
- - test/broadcasters/broadcaster_test.rb
273
- - test/broadcasters/broadcaster_test_case.rb
274
- - test/broadcasters/nothing_broadcaster_test.rb
283
+ - test/generators/stimulus_reflex_generator_test.rb
284
+ - test/element_test.rb
275
285
  - test/broadcasters/page_broadcaster_test.rb
286
+ - test/broadcasters/broadcaster_test_case.rb
287
+ - test/broadcasters/broadcaster_test.rb
276
288
  - test/broadcasters/selector_broadcaster_test.rb
277
- - test/callbacks_test.rb
278
- - test/concern_enhancer_test.rb
279
- - test/element_test.rb
280
- - test/generators/stimulus_reflex_generator_test.rb
289
+ - test/broadcasters/nothing_broadcaster_test.rb
281
290
  - test/reflex_test.rb
282
291
  - test/test_helper.rb
283
- - test/tmp/app/reflexes/application_reflex.rb
292
+ - test/callbacks_test.rb
284
293
  - test/tmp/app/reflexes/demo_reflex.rb
285
- ...
294
+ - test/tmp/app/reflexes/application_reflex.rb
295
+ - test/concern_enhancer_test.rb
data/package.json DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "name": "stimulus_reflex",
3
- "version": "3.5.0-pre6",
4
- "description": "Build reactive applications with the Rails tooling you already know and love.",
5
- "keywords": [
6
- "ruby",
7
- "rails",
8
- "websockets",
9
- "actioncable",
10
- "turbolinks",
11
- "reactive",
12
- "cable",
13
- "ujs",
14
- "ssr",
15
- "stimulus",
16
- "reflex",
17
- "stimulus_reflex",
18
- "dom",
19
- "morphdom"
20
- ],
21
- "homepage": "https://docs.stimulusreflex.com/",
22
- "bugs": {
23
- "url": "https://github.com/stimulusreflex/stimulus_reflex/issues"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com:stimulusreflex/stimulus_reflex.git"
28
- },
29
- "license": "MIT",
30
- "author": "Nathan Hopkins <natehop@gmail.com>",
31
- "main": "./javascript/stimulus_reflex.js",
32
- "module": "./javascript/stimulus_reflex.js",
33
- "scripts": {
34
- "prettier-standard:check": "yarn run prettier-standard --check ./javascript/*.js ./javascript/**/*.js",
35
- "prettier-standard:format": "yarn run prettier-standard ./javascript/*.js ./javascript/**/*.js",
36
- "test": "yarn run mocha --require @babel/register --require jsdom-global/register --require esm ./javascript/test"
37
- },
38
- "peerDependencies": {
39
- "stimulus": ">= 1.1"
40
- },
41
- "dependencies": {
42
- "@rails/actioncable": ">= 6.0",
43
- "cable_ready": "5.0.0-pre7"
44
- },
45
- "devDependencies": {
46
- "@babel/core": "^7.6.2",
47
- "@babel/preset-env": "^7.6.2",
48
- "@babel/register": "^7.6.2",
49
- "assert": "^2.0.0",
50
- "esm": "^3.2.25",
51
- "jsdom": "^16.0.1",
52
- "jsdom-global": "^3.0.2",
53
- "mocha": "^8.0.1",
54
- "prettier-standard": "^16.4.1",
55
- "stimulus": ">= 1.1"
56
- }
57
- }