stimulus_reflex 3.5.0.pre9 → 3.5.0.rc1

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.

Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/Gemfile.lock +122 -127
  4. data/README.md +13 -19
  5. data/app/assets/javascripts/stimulus_reflex.js +1017 -523
  6. data/app/assets/javascripts/stimulus_reflex.umd.js +940 -496
  7. data/app/channels/stimulus_reflex/channel.rb +9 -24
  8. data/bin/console +0 -2
  9. data/bin/standardize +2 -1
  10. data/lib/generators/stimulus_reflex/stimulus_reflex_generator.rb +68 -9
  11. data/lib/generators/stimulus_reflex/templates/app/controllers/examples_controller.rb.tt +9 -0
  12. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/consumer.js.tt +6 -0
  13. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.esbuild.tt +4 -0
  14. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.importmap.tt +2 -0
  15. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.shakapacker.tt +5 -0
  16. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.vite.tt +1 -0
  17. data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.webpacker.tt +5 -0
  18. data/lib/generators/stimulus_reflex/templates/app/javascript/config/cable_ready.js.tt +4 -0
  19. data/lib/generators/stimulus_reflex/templates/app/javascript/config/index.js.tt +2 -0
  20. data/lib/generators/stimulus_reflex/templates/app/javascript/config/mrujs.js.tt +9 -0
  21. data/lib/generators/stimulus_reflex/templates/app/javascript/config/stimulus_reflex.js.tt +5 -0
  22. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/%file_name%_controller.js.tt +141 -0
  23. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/application.js.tt +11 -0
  24. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/application_controller.js.tt +74 -0
  25. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.esbuild.tt +7 -0
  26. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.importmap.tt +5 -0
  27. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.shakapacker.tt +5 -0
  28. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.vite.tt +5 -0
  29. data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.webpacker.tt +5 -0
  30. data/{test/tmp/app/reflexes/user_reflex.rb → lib/generators/stimulus_reflex/templates/app/reflexes/%file_name%_reflex.rb.tt} +38 -9
  31. data/lib/generators/stimulus_reflex/templates/app/reflexes/application_reflex.rb.tt +27 -0
  32. data/lib/generators/stimulus_reflex/templates/app/views/examples/show.html.erb.tt +207 -0
  33. data/lib/generators/stimulus_reflex/templates/config/initializers/cable_ready.rb +27 -0
  34. data/lib/generators/stimulus_reflex/templates/config/initializers/stimulus_reflex.rb +18 -13
  35. data/lib/generators/stimulus_reflex/templates/esbuild.config.mjs.tt +94 -0
  36. data/lib/install/action_cable.rb +155 -0
  37. data/lib/install/broadcaster.rb +90 -0
  38. data/lib/install/bundle.rb +56 -0
  39. data/lib/install/compression.rb +41 -0
  40. data/lib/install/config.rb +87 -0
  41. data/lib/install/development.rb +110 -0
  42. data/lib/install/esbuild.rb +114 -0
  43. data/lib/install/example.rb +22 -0
  44. data/lib/install/importmap.rb +133 -0
  45. data/lib/install/initializers.rb +25 -0
  46. data/lib/install/mrujs.rb +133 -0
  47. data/lib/install/npm_packages.rb +25 -0
  48. data/lib/install/reflexes.rb +25 -0
  49. data/lib/install/shakapacker.rb +64 -0
  50. data/lib/install/spring.rb +54 -0
  51. data/lib/install/updatable.rb +34 -0
  52. data/lib/install/vite.rb +64 -0
  53. data/lib/install/webpacker.rb +90 -0
  54. data/lib/install/yarn.rb +55 -0
  55. data/lib/stimulus_reflex/broadcasters/broadcaster.rb +15 -8
  56. data/lib/stimulus_reflex/broadcasters/page_broadcaster.rb +7 -8
  57. data/lib/stimulus_reflex/broadcasters/selector_broadcaster.rb +10 -10
  58. data/lib/stimulus_reflex/broadcasters/update.rb +3 -0
  59. data/lib/stimulus_reflex/cable_readiness.rb +29 -0
  60. data/lib/stimulus_reflex/cable_ready_channels.rb +6 -5
  61. data/lib/stimulus_reflex/callbacks.rb +17 -1
  62. data/lib/stimulus_reflex/concern_enhancer.rb +6 -4
  63. data/lib/stimulus_reflex/configuration.rb +12 -2
  64. data/lib/stimulus_reflex/dataset.rb +11 -1
  65. data/lib/stimulus_reflex/engine.rb +16 -9
  66. data/lib/stimulus_reflex/html/document.rb +59 -0
  67. data/lib/stimulus_reflex/html/document_fragment.rb +13 -0
  68. data/lib/stimulus_reflex/importmap.rb +6 -3
  69. data/lib/stimulus_reflex/installer.rb +274 -0
  70. data/lib/stimulus_reflex/open_struct_fix.rb +2 -0
  71. data/lib/stimulus_reflex/reflex.rb +40 -31
  72. data/lib/stimulus_reflex/reflex_data.rb +19 -3
  73. data/lib/stimulus_reflex/reflex_factory.rb +6 -3
  74. data/lib/stimulus_reflex/request_parameters.rb +2 -0
  75. data/lib/stimulus_reflex/utils/logger.rb +10 -0
  76. data/lib/stimulus_reflex/utils/sanity_checker.rb +8 -48
  77. data/lib/stimulus_reflex/version.rb +1 -1
  78. data/lib/stimulus_reflex/version_checker.rb +54 -0
  79. data/lib/stimulus_reflex.rb +2 -0
  80. data/lib/tasks/stimulus_reflex/stimulus_reflex.rake +250 -0
  81. data/package.json +36 -28
  82. data/{rollup.config.js → rollup.config.mjs} +6 -24
  83. data/stimulus_reflex.gemspec +16 -19
  84. data/yarn.lock +1331 -748
  85. metadata +129 -79
  86. data/LATEST +0 -1
  87. data/app/assets/javascripts/stimulus_reflex.min.js +0 -2
  88. data/app/assets/javascripts/stimulus_reflex.min.js.map +0 -1
  89. data/app/assets/javascripts/stimulus_reflex.umd.min.js +0 -905
  90. data/app/assets/javascripts/stimulus_reflex.umd.min.js.map +0 -1
  91. data/lib/generators/stimulus_reflex/initializer_generator.rb +0 -14
  92. data/test/broadcasters/broadcaster_test.rb +0 -11
  93. data/test/broadcasters/broadcaster_test_case.rb +0 -39
  94. data/test/broadcasters/nothing_broadcaster_test.rb +0 -31
  95. data/test/broadcasters/page_broadcaster_test.rb +0 -79
  96. data/test/broadcasters/selector_broadcaster_test.rb +0 -173
  97. data/test/callbacks_test.rb +0 -652
  98. data/test/concern_enhancer_test.rb +0 -54
  99. data/test/element_test.rb +0 -254
  100. data/test/generators/stimulus_reflex_generator_test.rb +0 -58
  101. data/test/reflex_test.rb +0 -43
  102. data/test/test_helper.rb +0 -71
  103. data/test/tmp/app/reflexes/application_reflex.rb +0 -12
  104. data/yarn-error.log +0 -4964
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3d340a7c650e2c63d65c8e5156562d80d8f5a9515f8f9e7a1666895b5d9ef43
4
- data.tar.gz: af7799ef55cf1c8826faf40e0869cba3b4780c99c53b8f66e98c212ec5e58546
3
+ metadata.gz: f9e4f16a6c108abed76ee50881ec95b7595a8182092422eaec27a9ba32cfb3b6
4
+ data.tar.gz: 5f463ec6bedc1462e477714599f68a9c22479114af4284de427caac9144cf71c
5
5
  SHA512:
6
- metadata.gz: 4d8f749fafc778428d0e5731ccbdcab3be5d7d91de58cec84590101af59be022c6c4ea1f093921df81546176102370ec1dd279bf8467030efe6e3767ca6e368f
7
- data.tar.gz: 904db9ad9d50e942152dfb26f558b8fe037ce1bd472fd015cdbb4fa739f19b99ae34ae4668b2a9df1685235a1e6e9af2de1d7eb08d70d03dc29cdc22385fd814
6
+ metadata.gz: f05665f72b18c7cd0afee54fa099ec29df4e736fa83d8ec87756a3be80be3402d74d715cafa70b41092091794d2fc4a002e6998d676574365e5b756f53eaa6a0
7
+ data.tar.gz: f9d044f8d60a6154aab10ed680b51da5b6afc499d35a19a4eaefb233164519f74aef05e2583fe9f6194bf4989f6894a3065f3de164658ea9691da9df0dec030d
data/Gemfile CHANGED
@@ -4,5 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
- # Specify your gem's dependencies in stimulus_reflex.gemspec
8
7
  gemspec
data/Gemfile.lock CHANGED
@@ -1,207 +1,203 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (3.5.0.pre9)
5
- actioncable (>= 5.2)
6
- actionpack (>= 5.2)
7
- actionview (>= 5.2)
8
- activesupport (>= 5.2)
9
- cable_ready (>= 5.0.0.pre9)
10
- nokogiri
11
- rack
12
- railties (>= 5.2)
13
- redis
4
+ stimulus_reflex (3.5.0.rc1)
5
+ actioncable (>= 5.2, < 8)
6
+ actionpack (>= 5.2, < 8)
7
+ actionview (>= 5.2, < 8)
8
+ activesupport (>= 5.2, < 8)
9
+ cable_ready (>= 5.0.0.rc1)
10
+ nokogiri (~> 1.0)
11
+ rack (>= 2, < 4)
12
+ railties (>= 5.2, < 8)
13
+ redis (>= 4.0, < 6.0)
14
14
 
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
- actioncable (7.0.2.3)
19
- actionpack (= 7.0.2.3)
20
- activesupport (= 7.0.2.3)
18
+ actioncable (7.0.4.2)
19
+ actionpack (= 7.0.4.2)
20
+ activesupport (= 7.0.4.2)
21
21
  nio4r (~> 2.0)
22
22
  websocket-driver (>= 0.6.1)
23
- actionmailbox (7.0.2.3)
24
- actionpack (= 7.0.2.3)
25
- activejob (= 7.0.2.3)
26
- activerecord (= 7.0.2.3)
27
- activestorage (= 7.0.2.3)
28
- activesupport (= 7.0.2.3)
23
+ actionmailbox (7.0.4.2)
24
+ actionpack (= 7.0.4.2)
25
+ activejob (= 7.0.4.2)
26
+ activerecord (= 7.0.4.2)
27
+ activestorage (= 7.0.4.2)
28
+ activesupport (= 7.0.4.2)
29
29
  mail (>= 2.7.1)
30
30
  net-imap
31
31
  net-pop
32
32
  net-smtp
33
- actionmailer (7.0.2.3)
34
- actionpack (= 7.0.2.3)
35
- actionview (= 7.0.2.3)
36
- activejob (= 7.0.2.3)
37
- activesupport (= 7.0.2.3)
33
+ actionmailer (7.0.4.2)
34
+ actionpack (= 7.0.4.2)
35
+ actionview (= 7.0.4.2)
36
+ activejob (= 7.0.4.2)
37
+ activesupport (= 7.0.4.2)
38
38
  mail (~> 2.5, >= 2.5.4)
39
39
  net-imap
40
40
  net-pop
41
41
  net-smtp
42
42
  rails-dom-testing (~> 2.0)
43
- actionpack (7.0.2.3)
44
- actionview (= 7.0.2.3)
45
- activesupport (= 7.0.2.3)
43
+ actionpack (7.0.4.2)
44
+ actionview (= 7.0.4.2)
45
+ activesupport (= 7.0.4.2)
46
46
  rack (~> 2.0, >= 2.2.0)
47
47
  rack-test (>= 0.6.3)
48
48
  rails-dom-testing (~> 2.0)
49
49
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
50
- actiontext (7.0.2.3)
51
- actionpack (= 7.0.2.3)
52
- activerecord (= 7.0.2.3)
53
- activestorage (= 7.0.2.3)
54
- activesupport (= 7.0.2.3)
50
+ actiontext (7.0.4.2)
51
+ actionpack (= 7.0.4.2)
52
+ activerecord (= 7.0.4.2)
53
+ activestorage (= 7.0.4.2)
54
+ activesupport (= 7.0.4.2)
55
55
  globalid (>= 0.6.0)
56
56
  nokogiri (>= 1.8.5)
57
- actionview (7.0.2.3)
58
- activesupport (= 7.0.2.3)
57
+ actionview (7.0.4.2)
58
+ activesupport (= 7.0.4.2)
59
59
  builder (~> 3.1)
60
60
  erubi (~> 1.4)
61
61
  rails-dom-testing (~> 2.0)
62
62
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
63
- activejob (7.0.2.3)
64
- activesupport (= 7.0.2.3)
63
+ activejob (7.0.4.2)
64
+ activesupport (= 7.0.4.2)
65
65
  globalid (>= 0.3.6)
66
- activemodel (7.0.2.3)
67
- activesupport (= 7.0.2.3)
68
- activerecord (7.0.2.3)
69
- activemodel (= 7.0.2.3)
70
- activesupport (= 7.0.2.3)
71
- activestorage (7.0.2.3)
72
- actionpack (= 7.0.2.3)
73
- activejob (= 7.0.2.3)
74
- activerecord (= 7.0.2.3)
75
- activesupport (= 7.0.2.3)
66
+ activemodel (7.0.4.2)
67
+ activesupport (= 7.0.4.2)
68
+ activerecord (7.0.4.2)
69
+ activemodel (= 7.0.4.2)
70
+ activesupport (= 7.0.4.2)
71
+ activestorage (7.0.4.2)
72
+ actionpack (= 7.0.4.2)
73
+ activejob (= 7.0.4.2)
74
+ activerecord (= 7.0.4.2)
75
+ activesupport (= 7.0.4.2)
76
76
  marcel (~> 1.0)
77
77
  mini_mime (>= 1.1.0)
78
- activesupport (7.0.2.3)
78
+ activesupport (7.0.4.2)
79
79
  concurrent-ruby (~> 1.0, >= 1.0.2)
80
80
  i18n (>= 1.6, < 2)
81
81
  minitest (>= 5.1)
82
82
  tzinfo (~> 2.0)
83
83
  ast (2.4.2)
84
84
  builder (3.2.4)
85
- cable_ready (5.0.0.pre9)
86
- actioncable (>= 5.2)
85
+ cable_ready (5.0.0.rc1)
87
86
  actionpack (>= 5.2)
88
87
  actionview (>= 5.2)
89
- activerecord (>= 5.2)
90
88
  activesupport (>= 5.2)
91
89
  railties (>= 5.2)
92
90
  thread-local (>= 1.1.0)
93
- coderay (1.1.3)
94
- concurrent-ruby (1.1.10)
91
+ concurrent-ruby (1.2.0)
92
+ connection_pool (2.4.0)
95
93
  crass (1.0.6)
96
- digest (3.1.0)
97
- erubi (1.10.0)
98
- globalid (1.0.0)
94
+ date (3.3.3)
95
+ erubi (1.12.0)
96
+ globalid (1.1.0)
99
97
  activesupport (>= 5.0)
100
- i18n (1.10.0)
98
+ i18n (1.12.0)
101
99
  concurrent-ruby (~> 1.0)
102
- loofah (2.15.0)
100
+ json (2.6.3)
101
+ language_server-protocol (3.17.0.3)
102
+ loofah (2.19.1)
103
103
  crass (~> 1.0.2)
104
104
  nokogiri (>= 1.5.9)
105
- mail (2.7.1)
105
+ magic_frozen_string_literal (1.2.0)
106
+ mail (2.8.1)
106
107
  mini_mime (>= 0.1.1)
108
+ net-imap
109
+ net-pop
110
+ net-smtp
107
111
  marcel (1.0.2)
108
112
  method_source (1.0.0)
109
113
  mini_mime (1.1.2)
110
- minitest (5.15.0)
114
+ minitest (5.17.0)
111
115
  mocha (1.13.0)
112
- net-imap (0.2.3)
113
- digest
116
+ net-imap (0.3.4)
117
+ date
114
118
  net-protocol
115
- strscan
116
- net-pop (0.1.1)
117
- digest
119
+ net-pop (0.1.2)
118
120
  net-protocol
121
+ net-protocol (0.2.1)
119
122
  timeout
120
- net-protocol (0.1.3)
121
- timeout
122
- net-smtp (0.3.1)
123
- digest
123
+ net-smtp (0.3.3)
124
124
  net-protocol
125
- timeout
126
125
  nio4r (2.5.8)
127
- nokogiri (1.13.3-x86_64-darwin)
126
+ nokogiri (1.14.2-x86_64-darwin)
128
127
  racc (~> 1.4)
129
- nokogiri (1.13.3-x86_64-linux)
128
+ nokogiri (1.14.2-x86_64-linux)
130
129
  racc (~> 1.4)
131
- parallel (1.21.0)
132
- parser (3.0.2.0)
130
+ parallel (1.22.1)
131
+ parser (3.2.1.0)
133
132
  ast (~> 2.4.1)
134
- pry (0.14.1)
135
- coderay (~> 1.1)
136
- method_source (~> 1.0)
137
- pry-nav (1.0.0)
138
- pry (>= 0.9.10, < 0.15)
139
- racc (1.6.0)
140
- rack (2.2.3)
141
- rack-test (1.1.0)
142
- rack (>= 1.0, < 3)
143
- rails (7.0.2.3)
144
- actioncable (= 7.0.2.3)
145
- actionmailbox (= 7.0.2.3)
146
- actionmailer (= 7.0.2.3)
147
- actionpack (= 7.0.2.3)
148
- actiontext (= 7.0.2.3)
149
- actionview (= 7.0.2.3)
150
- activejob (= 7.0.2.3)
151
- activemodel (= 7.0.2.3)
152
- activerecord (= 7.0.2.3)
153
- activestorage (= 7.0.2.3)
154
- activesupport (= 7.0.2.3)
133
+ racc (1.6.2)
134
+ rack (2.2.6.4)
135
+ rack-test (2.0.2)
136
+ rack (>= 1.3)
137
+ rails (7.0.4.2)
138
+ actioncable (= 7.0.4.2)
139
+ actionmailbox (= 7.0.4.2)
140
+ actionmailer (= 7.0.4.2)
141
+ actionpack (= 7.0.4.2)
142
+ actiontext (= 7.0.4.2)
143
+ actionview (= 7.0.4.2)
144
+ activejob (= 7.0.4.2)
145
+ activemodel (= 7.0.4.2)
146
+ activerecord (= 7.0.4.2)
147
+ activestorage (= 7.0.4.2)
148
+ activesupport (= 7.0.4.2)
155
149
  bundler (>= 1.15.0)
156
- railties (= 7.0.2.3)
150
+ railties (= 7.0.4.2)
157
151
  rails-dom-testing (2.0.3)
158
152
  activesupport (>= 4.2.0)
159
153
  nokogiri (>= 1.6)
160
- rails-html-sanitizer (1.4.2)
161
- loofah (~> 2.3)
162
- railties (7.0.2.3)
163
- actionpack (= 7.0.2.3)
164
- activesupport (= 7.0.2.3)
154
+ rails-html-sanitizer (1.5.0)
155
+ loofah (~> 2.19, >= 2.19.1)
156
+ railties (7.0.4.2)
157
+ actionpack (= 7.0.4.2)
158
+ activesupport (= 7.0.4.2)
165
159
  method_source
166
160
  rake (>= 12.2)
167
161
  thor (~> 1.0)
168
162
  zeitwerk (~> 2.5)
169
- rainbow (3.0.0)
163
+ rainbow (3.1.1)
170
164
  rake (13.0.6)
171
- redis (4.6.0)
172
- regexp_parser (2.1.1)
165
+ redis (5.0.6)
166
+ redis-client (>= 0.9.0)
167
+ redis-client (0.14.0)
168
+ connection_pool
169
+ regexp_parser (2.7.0)
173
170
  rexml (3.2.5)
174
- rubocop (1.22.3)
171
+ rubocop (1.44.1)
172
+ json (~> 2.3)
175
173
  parallel (~> 1.10)
176
- parser (>= 3.0.0.0)
174
+ parser (>= 3.2.0.0)
177
175
  rainbow (>= 2.2.2, < 4.0)
178
176
  regexp_parser (>= 1.8, < 3.0)
179
- rexml
180
- rubocop-ast (>= 1.12.0, < 2.0)
177
+ rexml (>= 3.2.5, < 4.0)
178
+ rubocop-ast (>= 1.24.1, < 2.0)
181
179
  ruby-progressbar (~> 1.7)
182
- unicode-display_width (>= 1.4.0, < 3.0)
183
- rubocop-ast (1.13.0)
184
- parser (>= 3.0.1.1)
185
- rubocop-performance (1.11.5)
180
+ unicode-display_width (>= 2.4.0, < 3.0)
181
+ rubocop-ast (1.26.0)
182
+ parser (>= 3.2.1.0)
183
+ rubocop-performance (1.15.2)
186
184
  rubocop (>= 1.7.0, < 2.0)
187
185
  rubocop-ast (>= 0.4.0)
188
186
  ruby-progressbar (1.11.0)
189
- standard (1.4.0)
190
- rubocop (= 1.22.3)
191
- rubocop-performance (= 1.11.5)
192
- standardrb (1.0.0)
193
- standard
194
- strscan (3.0.1)
187
+ standard (1.24.3)
188
+ language_server-protocol (~> 3.17.0.2)
189
+ rubocop (= 1.44.1)
190
+ rubocop-performance (= 1.15.2)
195
191
  thor (1.2.1)
196
192
  thread-local (1.1.0)
197
- timeout (0.2.0)
198
- tzinfo (2.0.4)
193
+ timeout (0.3.2)
194
+ tzinfo (2.0.6)
199
195
  concurrent-ruby (~> 1.0)
200
- unicode-display_width (2.1.0)
196
+ unicode-display_width (2.4.2)
201
197
  websocket-driver (0.7.5)
202
198
  websocket-extensions (>= 0.1.0)
203
199
  websocket-extensions (0.1.5)
204
- zeitwerk (2.5.4)
200
+ zeitwerk (2.6.7)
205
201
 
206
202
  PLATFORMS
207
203
  x86_64-darwin-19
@@ -209,12 +205,11 @@ PLATFORMS
209
205
 
210
206
  DEPENDENCIES
211
207
  bundler (~> 2.0)
212
- mocha
213
- pry
214
- pry-nav
215
- rails (>= 5.2)
216
- rake
217
- standardrb (~> 1.0)
208
+ magic_frozen_string_literal (~> 1.2)
209
+ mocha (~> 1.13)
210
+ rails (>= 5.2, < 8)
211
+ rake (~> 13.0)
212
+ standard (~> 1.24)
218
213
  stimulus_reflex!
219
214
 
220
215
  BUNDLED WITH
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://gitcdn.link/repo/hopsoft/stimulus_reflex/master/assets/stimulus-reflex-logo-with-copy.svg" width="360" />
2
+ <img src="https://github.com/stimulusreflex/stimulus_reflex/blob/main/assets/stimulus-reflex-logo-with-copy.png?raw=1" width="360" />
3
3
  <h1 align="center">Welcome to StimulusReflex 👋</h1>
4
4
  <p align="center">
5
5
  <img src="https://img.shields.io/gem/v/stimulus_reflex.svg?color=red" />
@@ -7,12 +7,9 @@
7
7
  <a href="https://www.npmjs.com/package/stimulus_reflex">
8
8
  <img alt="downloads" src="https://img.shields.io/npm/dm/stimulus_reflex.svg?color=blue" target="_blank" />
9
9
  </a>
10
- <a href="https://github.com/stimulusreflex/stimulus_reflex/blob/master/LICENSE">
10
+ <a href="https://github.com/stimulusreflex/stimulus_reflex/blob/main/LICENSE.txt">
11
11
  <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
12
12
  </a>
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-2190-brightgreen.svg?style=flat" />
15
- </a>
16
13
  <a href="https://docs.stimulusreflex.com/" target="_blank">
17
14
  <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
18
15
  </a>
@@ -27,16 +24,13 @@
27
24
  <img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
28
25
  </a>
29
26
  <br />
30
- <a href="https://www.codacy.com/manual/hopsoft/stimulus_reflex/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=hopsoft/stimulus_reflex&amp;utm_campaign=Badge_Grade" target="_blank">
31
- <img alt="Code Quality" src="https://app.codacy.com/project/badge/Grade/d1d72a7060f5467b8696884351cf477f"/>
32
- </a>
33
- <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/Prettier-Standard/badge.svg">
27
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/prettier-standard.yml">
34
28
  <img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/Prettier-Standard/badge.svg" alt="Prettier-Standard" style="max-width:100%;">
35
29
  </a>
36
- <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/StandardRB/badge.svg">
30
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/standardrb.yml">
37
31
  <img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/StandardRB/badge.svg" alt="StandardRB" style="max-width:100%;">
38
32
  </a>
39
- <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/Tests/badge.svg">
33
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/tests.yml">
40
34
  <img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/Tests/badge.svg" alt="Tests">
41
35
  </a>
42
36
  </p>
@@ -54,7 +48,7 @@ It works seamlessly with the Rails tooling you already know and love.
54
48
  - Server-rendered HTML, delivered in milliseconds over the wire via Websockets
55
49
  - ERB templates and partials, with first-class [ViewComponent](https://github.com/github/view_component) support
56
50
  - [Russian doll caching](https://edgeguides.rubyonrails.org/caching_with_rails.html#russian-doll-caching) and [ActiveJob](https://guides.rubyonrails.org/active_job_basics.html)
57
- - [StimulusJS](https://stimulusjs.org/) and [Turbolinks](https://www.youtube.com/watch?v=SWEts0rlezA)
51
+ - [StimulusJS](https://stimulus.hotwired.dev/) and [Turbolinks](https://www.youtube.com/watch?v=SWEts0rlezA)/[Turbo Drive](https://turbo.hotwired.dev/reference/drive)
58
52
  - Built with [CableReady](https://www.youtube.com/watch?v=dPzv2qsj5L8), our secret power-move
59
53
 
60
54
  **Our goal is to help small teams do big things with familiar tools.**
@@ -72,11 +66,11 @@ This project strives to live up to the vision outlined in [The Rails Doctrine](h
72
66
  - [Build a Twitter Clone in 10 Minutes](https://youtu.be/F5hA79vKE_E) (video)
73
67
  - [BeastMode](https://beastmode.leastbad.com/) - faceted search, with filtering, sorting and pagination
74
68
  - [StimulusReflex Patterns](https://www.stimulusreflexpatterns.com/patterns/) - single-file SR apps hosted on Glitch
75
- - [BoxDrop](https://dropbox-clone-rails.herokuapp.com/) - a Dropbox-inspired [concept demo](https://github.com/marcoroth/boxdrop/)
69
+ - [Boxdrop](https://www.boxdrop.io) - a Dropbox-inspired [concept demo](https://github.com/marcoroth/boxdrop/)
76
70
 
77
71
  ## 👩‍👩‍👧 Discord Community
78
72
 
79
- Please join over 1500 of us on [Discord](https://discord.gg/stimulus-reflex) for support getting started, as well as active discussions around Rails, StimulusJS and CableReady.
73
+ Please join over 2000 of us on [Discord](https://discord.gg/stimulus-reflex) for support getting started, as well as active discussions around Rails, Hotwire, Stimulus, Phlex and CableReady.
80
74
 
81
75
  ![](https://img.shields.io/discord/629472241427415060)
82
76
 
@@ -84,18 +78,18 @@ Stop by #newcomers and introduce yourselves!
84
78
 
85
79
  ## 💙 Support
86
80
 
87
- Your best bet is to ask for help on Discord before filing an issue on Github. We are happy to help, and we ask people who need help to come with all relevant code to look at. A git repo is preferred, but Gists are fine, too. If you need an MVCE template, try [this](https://github.com/leastbad/stimulus_reflex_harness).
81
+ Your best bet is to ask for help on Discord before filing an issue on GitHub. We are happy to help, and we ask people who need help to come with all relevant code to look at. A git repo is preferred, but Gists are fine, too. If you need a template for reproducing your issue, try [this](https://github.com/leastbad/stimulus_reflex_harness).
88
82
 
89
83
  Please note that we are not actively providing support on Stack Overflow. If you post there, we likely won't see it.
90
84
 
91
85
  ## 🚀 Installation and upgrading
92
86
 
93
- CLI and manual setup procedures are fully detailed in the [official docs](https://docs.stimulusreflex.com/setup).
87
+ CLI and manual setup procedures are fully detailed in the [official docs](https://docs.stimulusreflex.com/hello-world/setup.html).
94
88
 
95
89
  ### Rubygem
96
90
 
97
91
  ```sh
98
- bundle add cable_ready
92
+ bundle add stimulus_reflex
99
93
  ```
100
94
 
101
95
  ### JavaScript
@@ -115,7 +109,7 @@ yarn add stimulus_reflex
115
109
 
116
110
  # ...
117
111
 
118
- pin 'stimulus_reflex', to: 'stimulus_reflex.min.js', preload: true
112
+ pin 'stimulus_reflex', to: 'stimulus_reflex.js', preload: true
119
113
  ```
120
114
 
121
115
  #### Rails Asset pipeline (Sprockets):
@@ -123,7 +117,7 @@ pin 'stimulus_reflex', to: 'stimulus_reflex.min.js', preload: true
123
117
  ```html+erb
124
118
  <!-- app/views/layouts/application.html.erb -->
125
119
 
126
- <%= javascript_include_tag "stimulus_reflex.umd.min.js", "data-turbo-track": "reload" %>
120
+ <%= javascript_include_tag "stimulus_reflex.umd.js", "data-turbo-track": "reload" %>
127
121
  ```
128
122
 
129
123
  ## 🙏 Contributing