react_on_rails 16.2.0.beta.20 → 16.2.0.rc.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28e1bda4590cc95516e1a295feacdc8134b077a049e5759a98017770c578c334
|
|
4
|
+
data.tar.gz: bcb1a38c0bfc08887686562d8e0d8d0f7e2819de6bab533a947ef2cba4e711b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7af0f6467580dcfb86ac14e0ea810bbfbd8c938a731fe11a41ffcd898cbebb61716c0626ae4b521928290242be4d9a78127cec11e0bd84d25b65a04bac75a537
|
|
7
|
+
data.tar.gz: 4114a11458885477566823102e70796de40a835c265806d2f4acff4b98ba3887f8e70791d781aaa41605c3ae9cfe14ae64e5d6098ba7d51560042e4d2be5ea35
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
react_on_rails (16.2.0.
|
|
4
|
+
react_on_rails (16.2.0.rc.0)
|
|
5
5
|
addressable
|
|
6
6
|
connection_pool
|
|
7
7
|
execjs (~> 2.5)
|
|
@@ -12,35 +12,36 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
actioncable (7.1.
|
|
16
|
-
actionpack (= 7.1.
|
|
17
|
-
activesupport (= 7.1.
|
|
15
|
+
actioncable (7.1.6)
|
|
16
|
+
actionpack (= 7.1.6)
|
|
17
|
+
activesupport (= 7.1.6)
|
|
18
18
|
nio4r (~> 2.0)
|
|
19
19
|
websocket-driver (>= 0.6.1)
|
|
20
20
|
zeitwerk (~> 2.6)
|
|
21
|
-
actionmailbox (7.1.
|
|
22
|
-
actionpack (= 7.1.
|
|
23
|
-
activejob (= 7.1.
|
|
24
|
-
activerecord (= 7.1.
|
|
25
|
-
activestorage (= 7.1.
|
|
26
|
-
activesupport (= 7.1.
|
|
21
|
+
actionmailbox (7.1.6)
|
|
22
|
+
actionpack (= 7.1.6)
|
|
23
|
+
activejob (= 7.1.6)
|
|
24
|
+
activerecord (= 7.1.6)
|
|
25
|
+
activestorage (= 7.1.6)
|
|
26
|
+
activesupport (= 7.1.6)
|
|
27
27
|
mail (>= 2.7.1)
|
|
28
28
|
net-imap
|
|
29
29
|
net-pop
|
|
30
30
|
net-smtp
|
|
31
|
-
actionmailer (7.1.
|
|
32
|
-
actionpack (= 7.1.
|
|
33
|
-
actionview (= 7.1.
|
|
34
|
-
activejob (= 7.1.
|
|
35
|
-
activesupport (= 7.1.
|
|
31
|
+
actionmailer (7.1.6)
|
|
32
|
+
actionpack (= 7.1.6)
|
|
33
|
+
actionview (= 7.1.6)
|
|
34
|
+
activejob (= 7.1.6)
|
|
35
|
+
activesupport (= 7.1.6)
|
|
36
36
|
mail (~> 2.5, >= 2.5.4)
|
|
37
37
|
net-imap
|
|
38
38
|
net-pop
|
|
39
39
|
net-smtp
|
|
40
40
|
rails-dom-testing (~> 2.2)
|
|
41
|
-
actionpack (7.1.
|
|
42
|
-
actionview (= 7.1.
|
|
43
|
-
activesupport (= 7.1.
|
|
41
|
+
actionpack (7.1.6)
|
|
42
|
+
actionview (= 7.1.6)
|
|
43
|
+
activesupport (= 7.1.6)
|
|
44
|
+
cgi
|
|
44
45
|
nokogiri (>= 1.8.5)
|
|
45
46
|
racc
|
|
46
47
|
rack (>= 2.2.4)
|
|
@@ -48,43 +49,47 @@ GEM
|
|
|
48
49
|
rack-test (>= 0.6.3)
|
|
49
50
|
rails-dom-testing (~> 2.2)
|
|
50
51
|
rails-html-sanitizer (~> 1.6)
|
|
51
|
-
actiontext (7.1.
|
|
52
|
-
actionpack (= 7.1.
|
|
53
|
-
activerecord (= 7.1.
|
|
54
|
-
activestorage (= 7.1.
|
|
55
|
-
activesupport (= 7.1.
|
|
52
|
+
actiontext (7.1.6)
|
|
53
|
+
actionpack (= 7.1.6)
|
|
54
|
+
activerecord (= 7.1.6)
|
|
55
|
+
activestorage (= 7.1.6)
|
|
56
|
+
activesupport (= 7.1.6)
|
|
56
57
|
globalid (>= 0.6.0)
|
|
57
58
|
nokogiri (>= 1.8.5)
|
|
58
|
-
actionview (7.1.
|
|
59
|
-
activesupport (= 7.1.
|
|
59
|
+
actionview (7.1.6)
|
|
60
|
+
activesupport (= 7.1.6)
|
|
60
61
|
builder (~> 3.1)
|
|
62
|
+
cgi
|
|
61
63
|
erubi (~> 1.11)
|
|
62
64
|
rails-dom-testing (~> 2.2)
|
|
63
65
|
rails-html-sanitizer (~> 1.6)
|
|
64
|
-
activejob (7.1.
|
|
65
|
-
activesupport (= 7.1.
|
|
66
|
+
activejob (7.1.6)
|
|
67
|
+
activesupport (= 7.1.6)
|
|
66
68
|
globalid (>= 0.3.6)
|
|
67
|
-
activemodel (7.1.
|
|
68
|
-
activesupport (= 7.1.
|
|
69
|
-
activerecord (7.1.
|
|
70
|
-
activemodel (= 7.1.
|
|
71
|
-
activesupport (= 7.1.
|
|
69
|
+
activemodel (7.1.6)
|
|
70
|
+
activesupport (= 7.1.6)
|
|
71
|
+
activerecord (7.1.6)
|
|
72
|
+
activemodel (= 7.1.6)
|
|
73
|
+
activesupport (= 7.1.6)
|
|
72
74
|
timeout (>= 0.4.0)
|
|
73
|
-
activestorage (7.1.
|
|
74
|
-
actionpack (= 7.1.
|
|
75
|
-
activejob (= 7.1.
|
|
76
|
-
activerecord (= 7.1.
|
|
77
|
-
activesupport (= 7.1.
|
|
75
|
+
activestorage (7.1.6)
|
|
76
|
+
actionpack (= 7.1.6)
|
|
77
|
+
activejob (= 7.1.6)
|
|
78
|
+
activerecord (= 7.1.6)
|
|
79
|
+
activesupport (= 7.1.6)
|
|
78
80
|
marcel (~> 1.0)
|
|
79
|
-
activesupport (7.1.
|
|
81
|
+
activesupport (7.1.6)
|
|
80
82
|
base64
|
|
83
|
+
benchmark (>= 0.3)
|
|
81
84
|
bigdecimal
|
|
82
85
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
83
86
|
connection_pool (>= 2.2.5)
|
|
84
87
|
drb
|
|
85
88
|
i18n (>= 1.6, < 2)
|
|
89
|
+
logger (>= 1.4.2)
|
|
86
90
|
minitest (>= 5.1)
|
|
87
91
|
mutex_m
|
|
92
|
+
securerandom (>= 0.3)
|
|
88
93
|
tzinfo (~> 2.0)
|
|
89
94
|
addressable (2.8.7)
|
|
90
95
|
public_suffix (>= 2.0.2, < 7.0)
|
|
@@ -92,7 +97,7 @@ GEM
|
|
|
92
97
|
ast (2.4.2)
|
|
93
98
|
base64 (0.3.0)
|
|
94
99
|
benchmark (0.4.1)
|
|
95
|
-
bigdecimal (
|
|
100
|
+
bigdecimal (4.0.1)
|
|
96
101
|
bootsnap (1.18.3)
|
|
97
102
|
msgpack (~> 1.2)
|
|
98
103
|
builder (3.3.0)
|
|
@@ -109,10 +114,11 @@ GEM
|
|
|
109
114
|
capybara-screenshot (1.0.26)
|
|
110
115
|
capybara (>= 1.0, < 4)
|
|
111
116
|
launchy
|
|
117
|
+
cgi (0.5.1)
|
|
112
118
|
childprocess (5.0.0)
|
|
113
119
|
coderay (1.1.3)
|
|
114
|
-
concurrent-ruby (1.3.
|
|
115
|
-
connection_pool (
|
|
120
|
+
concurrent-ruby (1.3.6)
|
|
121
|
+
connection_pool (3.0.2)
|
|
116
122
|
coveralls (0.8.23)
|
|
117
123
|
json (>= 1.8, < 3)
|
|
118
124
|
simplecov (~> 0.16.1)
|
|
@@ -123,7 +129,7 @@ GEM
|
|
|
123
129
|
csv (3.3.5)
|
|
124
130
|
cypress-on-rails (1.20.0)
|
|
125
131
|
rack
|
|
126
|
-
date (3.5.
|
|
132
|
+
date (3.5.1)
|
|
127
133
|
debug (1.9.2)
|
|
128
134
|
irb (~> 1.10)
|
|
129
135
|
reline (>= 0.3.8)
|
|
@@ -132,7 +138,7 @@ GEM
|
|
|
132
138
|
drb (2.2.3)
|
|
133
139
|
equivalent-xml (0.6.0)
|
|
134
140
|
nokogiri (>= 1.4.3)
|
|
135
|
-
erb (6.0.
|
|
141
|
+
erb (6.0.1)
|
|
136
142
|
erubi (1.13.1)
|
|
137
143
|
execjs (2.9.1)
|
|
138
144
|
ffi (1.16.3)
|
|
@@ -141,13 +147,13 @@ GEM
|
|
|
141
147
|
generator_spec (0.10.0)
|
|
142
148
|
activesupport (>= 3.0.0)
|
|
143
149
|
railties (>= 3.0.0)
|
|
144
|
-
globalid (1.
|
|
150
|
+
globalid (1.3.0)
|
|
145
151
|
activesupport (>= 6.1)
|
|
146
|
-
i18n (1.14.
|
|
152
|
+
i18n (1.14.8)
|
|
147
153
|
concurrent-ruby (~> 1.0)
|
|
148
154
|
interception (0.5)
|
|
149
|
-
io-console (0.8.
|
|
150
|
-
irb (1.
|
|
155
|
+
io-console (0.8.2)
|
|
156
|
+
irb (1.16.0)
|
|
151
157
|
pp (>= 0.6.0)
|
|
152
158
|
rdoc (>= 4.0.0)
|
|
153
159
|
reline (>= 0.4.2)
|
|
@@ -168,32 +174,34 @@ GEM
|
|
|
168
174
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
169
175
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
170
176
|
logger (1.7.0)
|
|
171
|
-
loofah (2.
|
|
177
|
+
loofah (2.25.0)
|
|
172
178
|
crass (~> 1.0.2)
|
|
173
179
|
nokogiri (>= 1.12.0)
|
|
174
|
-
mail (2.
|
|
180
|
+
mail (2.9.0)
|
|
181
|
+
logger
|
|
175
182
|
mini_mime (>= 0.1.1)
|
|
176
183
|
net-imap
|
|
177
184
|
net-pop
|
|
178
185
|
net-smtp
|
|
179
|
-
marcel (1.0
|
|
186
|
+
marcel (1.1.0)
|
|
180
187
|
matrix (0.4.3)
|
|
181
188
|
method_source (1.1.0)
|
|
182
189
|
mini_mime (1.1.5)
|
|
183
190
|
mini_portile2 (2.8.9)
|
|
184
|
-
minitest (
|
|
191
|
+
minitest (6.0.1)
|
|
192
|
+
prism (~> 1.5)
|
|
185
193
|
msgpack (1.7.2)
|
|
186
194
|
mutex_m (0.3.0)
|
|
187
|
-
net-imap (0.
|
|
195
|
+
net-imap (0.6.2)
|
|
188
196
|
date
|
|
189
197
|
net-protocol
|
|
190
198
|
net-pop (0.1.2)
|
|
191
199
|
net-protocol
|
|
192
200
|
net-protocol (0.2.2)
|
|
193
201
|
timeout
|
|
194
|
-
net-smtp (0.5.
|
|
202
|
+
net-smtp (0.5.1)
|
|
195
203
|
net-protocol
|
|
196
|
-
nio4r (2.7.
|
|
204
|
+
nio4r (2.7.5)
|
|
197
205
|
nokogiri (1.18.10)
|
|
198
206
|
mini_portile2 (~> 2.8.2)
|
|
199
207
|
racc (~> 1.4)
|
|
@@ -206,6 +214,7 @@ GEM
|
|
|
206
214
|
pp (0.6.3)
|
|
207
215
|
prettyprint
|
|
208
216
|
prettyprint (0.2.0)
|
|
217
|
+
prism (1.7.0)
|
|
209
218
|
pry (0.14.2)
|
|
210
219
|
coderay (~> 1.1)
|
|
211
220
|
method_source (~> 1.0)
|
|
@@ -220,11 +229,11 @@ GEM
|
|
|
220
229
|
pry-rescue (1.6.0)
|
|
221
230
|
interception (>= 0.5)
|
|
222
231
|
pry (>= 0.12.0)
|
|
223
|
-
psych (5.
|
|
232
|
+
psych (5.3.1)
|
|
224
233
|
date
|
|
225
234
|
stringio
|
|
226
235
|
public_suffix (6.0.2)
|
|
227
|
-
puma (6.
|
|
236
|
+
puma (6.6.1)
|
|
228
237
|
nio4r (~> 2.0)
|
|
229
238
|
racc (1.8.1)
|
|
230
239
|
rack (3.2.4)
|
|
@@ -235,22 +244,22 @@ GEM
|
|
|
235
244
|
rack (>= 3.0.0)
|
|
236
245
|
rack-test (2.2.0)
|
|
237
246
|
rack (>= 1.3)
|
|
238
|
-
rackup (2.
|
|
247
|
+
rackup (2.3.1)
|
|
239
248
|
rack (>= 3)
|
|
240
|
-
rails (7.1.
|
|
241
|
-
actioncable (= 7.1.
|
|
242
|
-
actionmailbox (= 7.1.
|
|
243
|
-
actionmailer (= 7.1.
|
|
244
|
-
actionpack (= 7.1.
|
|
245
|
-
actiontext (= 7.1.
|
|
246
|
-
actionview (= 7.1.
|
|
247
|
-
activejob (= 7.1.
|
|
248
|
-
activemodel (= 7.1.
|
|
249
|
-
activerecord (= 7.1.
|
|
250
|
-
activestorage (= 7.1.
|
|
251
|
-
activesupport (= 7.1.
|
|
249
|
+
rails (7.1.6)
|
|
250
|
+
actioncable (= 7.1.6)
|
|
251
|
+
actionmailbox (= 7.1.6)
|
|
252
|
+
actionmailer (= 7.1.6)
|
|
253
|
+
actionpack (= 7.1.6)
|
|
254
|
+
actiontext (= 7.1.6)
|
|
255
|
+
actionview (= 7.1.6)
|
|
256
|
+
activejob (= 7.1.6)
|
|
257
|
+
activemodel (= 7.1.6)
|
|
258
|
+
activerecord (= 7.1.6)
|
|
259
|
+
activestorage (= 7.1.6)
|
|
260
|
+
activesupport (= 7.1.6)
|
|
252
261
|
bundler (>= 1.15.0)
|
|
253
|
-
railties (= 7.1.
|
|
262
|
+
railties (= 7.1.6)
|
|
254
263
|
rails-dom-testing (2.3.0)
|
|
255
264
|
activesupport (>= 5.0.0)
|
|
256
265
|
minitest
|
|
@@ -258,13 +267,15 @@ GEM
|
|
|
258
267
|
rails-html-sanitizer (1.6.2)
|
|
259
268
|
loofah (~> 2.21)
|
|
260
269
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
261
|
-
railties (7.1.
|
|
262
|
-
actionpack (= 7.1.
|
|
263
|
-
activesupport (= 7.1.
|
|
270
|
+
railties (7.1.6)
|
|
271
|
+
actionpack (= 7.1.6)
|
|
272
|
+
activesupport (= 7.1.6)
|
|
273
|
+
cgi
|
|
264
274
|
irb
|
|
265
275
|
rackup (>= 1.0.0)
|
|
266
276
|
rake (>= 12.2)
|
|
267
277
|
thor (~> 1.0, >= 1.2.2)
|
|
278
|
+
tsort (>= 0.2)
|
|
268
279
|
zeitwerk (~> 2.6)
|
|
269
280
|
rainbow (3.1.1)
|
|
270
281
|
rake (13.3.1)
|
|
@@ -273,15 +284,14 @@ GEM
|
|
|
273
284
|
ffi (~> 1.0)
|
|
274
285
|
rbs (3.9.5)
|
|
275
286
|
logger
|
|
276
|
-
rdoc (
|
|
287
|
+
rdoc (7.0.3)
|
|
277
288
|
erb
|
|
278
289
|
psych (>= 4.0.0)
|
|
279
290
|
tsort
|
|
280
291
|
regexp_parser (2.11.3)
|
|
281
292
|
reline (0.6.3)
|
|
282
293
|
io-console (~> 0.5)
|
|
283
|
-
rexml (3.
|
|
284
|
-
strscan (>= 3.0.9)
|
|
294
|
+
rexml (3.4.4)
|
|
285
295
|
rspec-core (3.13.0)
|
|
286
296
|
rspec-support (~> 3.13.0)
|
|
287
297
|
rspec-expectations (3.13.1)
|
|
@@ -387,7 +397,7 @@ GEM
|
|
|
387
397
|
strscan (>= 1.0.0)
|
|
388
398
|
terminal-table (>= 2, < 4)
|
|
389
399
|
uri (>= 0.12.0)
|
|
390
|
-
stringio (3.
|
|
400
|
+
stringio (3.2.0)
|
|
391
401
|
strscan (3.1.0)
|
|
392
402
|
sync (0.5.0)
|
|
393
403
|
term-ansicolor (1.8.0)
|
|
@@ -396,15 +406,14 @@ GEM
|
|
|
396
406
|
unicode-display_width (>= 1.1.1, < 3)
|
|
397
407
|
thor (1.4.0)
|
|
398
408
|
tilt (2.3.0)
|
|
399
|
-
timeout (0.
|
|
409
|
+
timeout (0.6.0)
|
|
400
410
|
tins (1.33.0)
|
|
401
411
|
bigdecimal
|
|
402
412
|
sync
|
|
403
413
|
tsort (0.2.0)
|
|
404
|
-
turbo-rails (2.0.
|
|
405
|
-
actionpack (>=
|
|
406
|
-
|
|
407
|
-
railties (>= 6.0.0)
|
|
414
|
+
turbo-rails (2.0.20)
|
|
415
|
+
actionpack (>= 7.1.0)
|
|
416
|
+
railties (>= 7.1.0)
|
|
408
417
|
turbolinks (5.2.1)
|
|
409
418
|
turbolinks-source (~> 5.2)
|
|
410
419
|
turbolinks-source (5.2.0)
|
|
@@ -419,13 +428,14 @@ GEM
|
|
|
419
428
|
rubyzip (>= 1.3.0)
|
|
420
429
|
selenium-webdriver (~> 4.0, < 4.11)
|
|
421
430
|
websocket (1.2.10)
|
|
422
|
-
websocket-driver (0.
|
|
431
|
+
websocket-driver (0.8.0)
|
|
432
|
+
base64
|
|
423
433
|
websocket-extensions (>= 0.1.0)
|
|
424
434
|
websocket-extensions (0.1.5)
|
|
425
435
|
xpath (3.2.0)
|
|
426
436
|
nokogiri (~> 1.8)
|
|
427
437
|
yard (0.9.36)
|
|
428
|
-
zeitwerk (2.7.
|
|
438
|
+
zeitwerk (2.7.4)
|
|
429
439
|
|
|
430
440
|
PLATFORMS
|
|
431
441
|
ruby
|
|
@@ -456,7 +466,7 @@ DEPENDENCIES
|
|
|
456
466
|
pry-rails
|
|
457
467
|
pry-rescue
|
|
458
468
|
puma (~> 6.0)
|
|
459
|
-
rails (~> 7.1)
|
|
469
|
+
rails (~> 7.1.0)
|
|
460
470
|
rbs
|
|
461
471
|
react_on_rails!
|
|
462
472
|
rspec-rails
|
data/lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# React on Rails configuration
|
|
4
|
-
# See https://github.com/shakacode/react_on_rails/blob/master/docs/
|
|
4
|
+
# See https://github.com/shakacode/react_on_rails/blob/master/docs/configuration/configuration.md
|
|
5
5
|
# for complete documentation of all configuration options.
|
|
6
6
|
|
|
7
7
|
ReactOnRails.configure do |config|
|
|
@@ -62,5 +62,5 @@ ReactOnRails.configure do |config|
|
|
|
62
62
|
# - Custom rendering extensions
|
|
63
63
|
# - And more...
|
|
64
64
|
#
|
|
65
|
-
# See: https://github.com/shakacode/react_on_rails/blob/master/docs/
|
|
65
|
+
# See: https://github.com/shakacode/react_on_rails/blob/master/docs/configuration/configuration.md
|
|
66
66
|
end
|
|
@@ -4,41 +4,70 @@ require "English"
|
|
|
4
4
|
require "bundler"
|
|
5
5
|
require_relative "task_helpers"
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
CLAUDE_CODE_TIP = <<~TIP
|
|
8
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
9
|
+
│ TIP: This task only adds version headers and links, not changelog entries. │
|
|
10
|
+
│ For full automation, run /update-changelog in Claude Code. │
|
|
11
|
+
│ │
|
|
12
|
+
│ After running this task, manually add entries under the new header: │
|
|
13
|
+
│ #### Fixed / #### Added / #### Changed / etc. │
|
|
14
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
15
|
+
TIP
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
# Update the compare links at the bottom of the changelog
|
|
18
|
+
# version: version string without 'v' prefix (e.g., "16.2.0.beta.20")
|
|
19
|
+
# anchor: markdown anchor (e.g., "[16.2.0.beta.20]")
|
|
20
|
+
def update_changelog_links(changelog, version, anchor)
|
|
21
|
+
compare_link_prefix = "https://github.com/shakacode/react_on_rails/compare"
|
|
22
|
+
match_data = %r{#{compare_link_prefix}/(?<prev_version>.*)\.\.\.master}.match(changelog)
|
|
23
|
+
return unless match_data
|
|
24
|
+
|
|
25
|
+
prev_version = match_data[:prev_version]
|
|
26
|
+
new_unreleased_link = "#{compare_link_prefix}/#{version}...master"
|
|
27
|
+
new_version_link = "#{anchor}: #{compare_link_prefix}/#{prev_version}...#{version}"
|
|
28
|
+
changelog.sub!(match_data[0], "#{new_unreleased_link}\n#{new_version_link}")
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Insert version header into changelog, returns true if successful
|
|
32
|
+
def insert_version_header(changelog, anchor, tag_date)
|
|
33
|
+
# Try inserting right after ### [Unreleased] first
|
|
34
|
+
return true if changelog.sub!("### [Unreleased]", "### [Unreleased]\n\n### #{anchor} - #{tag_date}")
|
|
35
|
+
|
|
36
|
+
# Fallback: insert after "Changes since the last non-beta release."
|
|
37
|
+
return true if changelog.sub!("Changes since the last non-beta release.", "\\0\n\n### #{anchor} - #{tag_date}")
|
|
38
|
+
|
|
39
|
+
false
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
desc "Updates CHANGELOG.md inserting headers for the new version (headers only, not content).
|
|
43
|
+
Argument: Git tag. Defaults to the latest tag.
|
|
44
|
+
TIP: Use /update-changelog in Claude Code for full automation."
|
|
10
45
|
|
|
11
46
|
task :update_changelog, %i[tag] do |_, args|
|
|
12
|
-
|
|
13
|
-
anchor = "[#{tag}]"
|
|
47
|
+
puts CLAUDE_CODE_TIP
|
|
14
48
|
|
|
49
|
+
# Git tags use 'v' prefix (e.g., v16.2.0), but CHANGELOG uses versions without it
|
|
50
|
+
git_tag = args[:tag] || `git describe --tags --abbrev=0`.strip
|
|
51
|
+
changelog_version = git_tag.delete_prefix("v")
|
|
52
|
+
anchor = "[#{changelog_version}]"
|
|
15
53
|
changelog = File.read("CHANGELOG.md")
|
|
16
54
|
|
|
17
55
|
if changelog.include?(anchor)
|
|
18
|
-
puts "Tag #{
|
|
56
|
+
puts "Tag #{git_tag} is already documented in CHANGELOG.md"
|
|
19
57
|
next
|
|
20
58
|
end
|
|
21
59
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
tag_date = tag_date_output.split("\n").last.strip
|
|
25
|
-
else
|
|
26
|
-
abort("Failed to find tag #{tag}")
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# after "Changes since the last non-beta release.", insert link header
|
|
30
|
-
changelog.sub!("Changes since the last non-beta release.", "\\0\n\n### #{anchor} - #{tag_date}")
|
|
60
|
+
tag_date = `git show -s --format=%cs #{git_tag} 2>&1`.split("\n").last&.strip
|
|
61
|
+
abort("Failed to find tag #{git_tag}") unless $CHILD_STATUS.success? && tag_date
|
|
31
62
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if match_data
|
|
36
|
-
prev_tag = match_data[:prev_tag]
|
|
37
|
-
new_unreleased_link = "#{compare_link_prefix}/#{tag}...master"
|
|
38
|
-
new_tag_link = "#{anchor}: #{compare_link_prefix}/#{prev_tag}...#{tag}"
|
|
39
|
-
changelog.sub!(match_data[0], "#{new_unreleased_link}\n#{new_tag_link}")
|
|
63
|
+
unless insert_version_header(changelog, anchor, tag_date)
|
|
64
|
+
abort("Failed to insert version header: could not find '### [Unreleased]' " \
|
|
65
|
+
"or 'Changes since the last non-beta release.' in CHANGELOG.md")
|
|
40
66
|
end
|
|
41
67
|
|
|
68
|
+
update_changelog_links(changelog, changelog_version, anchor)
|
|
69
|
+
|
|
42
70
|
File.write("CHANGELOG.md", changelog)
|
|
43
|
-
puts "Updated CHANGELOG.md with
|
|
71
|
+
puts "Updated CHANGELOG.md with version header for #{git_tag}"
|
|
72
|
+
puts "NOTE: You still need to write the changelog entries manually."
|
|
44
73
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: react_on_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.2.0.
|
|
4
|
+
version: 16.2.0.rc.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Gordon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|