-
Notifications
You must be signed in to change notification settings - Fork 0
/
6.1 to 7.0.diff
989 lines (928 loc) · 39.2 KB
/
6.1 to 7.0.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/.gitattributes rails 7.0/.gitattributes
--- rails 6.1/.gitattributes 2023-08-21 12:38:36
+++ rails 7.0/.gitattributes 2023-08-21 12:38:39
@@ -3,8 +3,5 @@
# Mark the database schema as having been generated.
db/schema.rb linguist-generated
-# Mark the yarn lockfile as having been generated.
-yarn.lock linguist-generated
-
# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/.gitignore rails 7.0/.gitignore
--- rails 6.1/.gitignore 2023-08-21 12:38:36
+++ rails 7.0/.gitignore 2023-08-21 12:38:39
@@ -25,9 +25,11 @@
# Ignore uploaded files in development.
/storage/*
!/storage/.keep
+/tmp/storage/*
+!/tmp/storage/
+!/tmp/storage/.keep
/public/assets
-.byebug_history
# Ignore master key for decrypting credentials and more.
/config/master.key
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/Gemfile rails 7.0/Gemfile
--- rails 6.1/Gemfile 2023-08-21 12:38:36
+++ rails 7.0/Gemfile 2023-08-21 12:38:39
@@ -1,53 +1,63 @@
-source 'https://rubygems.org'
+source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
-ruby '2.7.8'
+ruby "2.7.8"
-# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
-gem 'rails', '~> 6.1.7', '>= 6.1.7.4'
+# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
+gem "rails", "~> 7.0.7"
+
+# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
+gem "sprockets-rails"
+
# Use sqlite3 as the database for Active Record
-gem 'sqlite3', '~> 1.4'
-# Use Puma as the app server
-gem 'puma', '~> 5.0'
-# Use SCSS for stylesheets
-gem 'sass-rails', '>= 6'
-# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
-gem 'webpacker', '~> 5.0'
-# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
-gem 'turbolinks', '~> 5'
-# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
-gem 'jbuilder', '~> 2.7'
+gem "sqlite3", "~> 1.4"
+
+# Use the Puma web server [https://github.com/puma/puma]
+gem "puma", "~> 5.0"
+
+# Build JSON APIs with ease [https://github.com/rails/jbuilder]
+gem "jbuilder"
+
# Use Redis adapter to run Action Cable in production
-# gem 'redis', '~> 4.0'
-# Use Active Model has_secure_password
-# gem 'bcrypt', '~> 3.1.7'
+# gem "redis", "~> 4.0"
-# Use Active Storage variant
-# gem 'image_processing', '~> 1.2'
+# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
+# gem "kredis"
+# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
+# gem "bcrypt", "~> 3.1.7"
+
+# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
+gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
+
+# Reduces boot times through caching; required in config/boot.rb
+gem "bootsnap", require: false
+
+# Use Sass to process CSS
+# gem "sassc-rails"
+
+# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
+# gem "image_processing", "~> 1.2"
+
group :development, :test do
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
- gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
+ # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
+ gem "debug", platforms: %i[ mri mingw x64_mingw ]
end
group :development do
- # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
- gem 'web-console', '>= 4.1.0'
- # Display performance information such as SQL time and flame graphs for each request in your browser.
- # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
- gem 'rack-mini-profiler', '~> 2.0'
- gem 'listen', '~> 3.3'
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
- gem 'spring'
+ # Use console on exceptions pages [https://github.com/rails/web-console]
+ gem "web-console"
+
+ # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
+ # gem "rack-mini-profiler"
+
+ # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
+ # gem "spring"
end
group :test do
- # Adds support for Capybara system testing and selenium driver
- gem 'capybara', '>= 3.26'
- gem 'selenium-webdriver', '>= 4.0.0.rc1'
- # Easy installation and use of web drivers to run system tests with browsers
- gem 'webdrivers'
+ # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
+ gem "capybara"
+ gem "selenium-webdriver"
+ gem "webdrivers"
end
-
-# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
-gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/Gemfile.lock rails 7.0/Gemfile.lock
--- rails 6.1/Gemfile.lock 2023-08-21 12:38:38
+++ rails 7.0/Gemfile.lock 2023-08-21 12:38:41
@@ -1,70 +1,77 @@
GEM
remote: https://rubygems.org/
specs:
- actioncable (6.1.7.4)
- actionpack (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ actioncable (7.0.7)
+ actionpack (= 7.0.7)
+ activesupport (= 7.0.7)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
- actionmailbox (6.1.7.4)
- actionpack (= 6.1.7.4)
- activejob (= 6.1.7.4)
- activerecord (= 6.1.7.4)
- activestorage (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ actionmailbox (7.0.7)
+ actionpack (= 7.0.7)
+ activejob (= 7.0.7)
+ activerecord (= 7.0.7)
+ activestorage (= 7.0.7)
+ activesupport (= 7.0.7)
mail (>= 2.7.1)
- actionmailer (6.1.7.4)
- actionpack (= 6.1.7.4)
- actionview (= 6.1.7.4)
- activejob (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ net-imap
+ net-pop
+ net-smtp
+ actionmailer (7.0.7)
+ actionpack (= 7.0.7)
+ actionview (= 7.0.7)
+ activejob (= 7.0.7)
+ activesupport (= 7.0.7)
mail (~> 2.5, >= 2.5.4)
+ net-imap
+ net-pop
+ net-smtp
rails-dom-testing (~> 2.0)
- actionpack (6.1.7.4)
- actionview (= 6.1.7.4)
- activesupport (= 6.1.7.4)
- rack (~> 2.0, >= 2.0.9)
+ actionpack (7.0.7)
+ actionview (= 7.0.7)
+ activesupport (= 7.0.7)
+ rack (~> 2.0, >= 2.2.4)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
- actiontext (6.1.7.4)
- actionpack (= 6.1.7.4)
- activerecord (= 6.1.7.4)
- activestorage (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ actiontext (7.0.7)
+ actionpack (= 7.0.7)
+ activerecord (= 7.0.7)
+ activestorage (= 7.0.7)
+ activesupport (= 7.0.7)
+ globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
- actionview (6.1.7.4)
- activesupport (= 6.1.7.4)
+ actionview (7.0.7)
+ activesupport (= 7.0.7)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
- activejob (6.1.7.4)
- activesupport (= 6.1.7.4)
+ activejob (7.0.7)
+ activesupport (= 7.0.7)
globalid (>= 0.3.6)
- activemodel (6.1.7.4)
- activesupport (= 6.1.7.4)
- activerecord (6.1.7.4)
- activemodel (= 6.1.7.4)
- activesupport (= 6.1.7.4)
- activestorage (6.1.7.4)
- actionpack (= 6.1.7.4)
- activejob (= 6.1.7.4)
- activerecord (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ activemodel (7.0.7)
+ activesupport (= 7.0.7)
+ activerecord (7.0.7)
+ activemodel (= 7.0.7)
+ activesupport (= 7.0.7)
+ activestorage (7.0.7)
+ actionpack (= 7.0.7)
+ activejob (= 7.0.7)
+ activerecord (= 7.0.7)
+ activesupport (= 7.0.7)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
- activesupport (6.1.7.4)
+ activesupport (7.0.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
- zeitwerk (~> 2.3)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
bindex (0.8.1)
+ bootsnap (1.16.0)
+ msgpack (~> 1.2)
builder (3.2.4)
- byebug (11.1.3)
capybara (3.39.2)
addressable
matrix
@@ -77,18 +84,20 @@
concurrent-ruby (1.2.2)
crass (1.0.6)
date (3.3.3)
+ debug (1.8.0)
+ irb (>= 1.5.0)
+ reline (>= 0.3.1)
erubi (1.12.0)
- ffi (1.15.5)
globalid (1.1.0)
activesupport (>= 5.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
+ io-console (0.6.0)
+ irb (1.7.4)
+ reline (>= 0.3.6)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
- listen (3.8.0)
- rb-fsevent (~> 0.10, >= 0.10.3)
- rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.21.3)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
@@ -102,6 +111,7 @@
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.19.0)
+ msgpack (1.7.2)
net-imap (0.3.7)
date
net-protocol
@@ -119,27 +129,22 @@
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.8)
- rack-mini-profiler (2.3.4)
- rack (>= 1.2.0)
- rack-proxy (0.7.6)
- rack
rack-test (2.1.0)
rack (>= 1.3)
- rails (6.1.7.4)
- actioncable (= 6.1.7.4)
- actionmailbox (= 6.1.7.4)
- actionmailer (= 6.1.7.4)
- actionpack (= 6.1.7.4)
- actiontext (= 6.1.7.4)
- actionview (= 6.1.7.4)
- activejob (= 6.1.7.4)
- activemodel (= 6.1.7.4)
- activerecord (= 6.1.7.4)
- activestorage (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ rails (7.0.7)
+ actioncable (= 7.0.7)
+ actionmailbox (= 7.0.7)
+ actionmailer (= 7.0.7)
+ actionpack (= 7.0.7)
+ actiontext (= 7.0.7)
+ actionview (= 7.0.7)
+ activejob (= 7.0.7)
+ activemodel (= 7.0.7)
+ activerecord (= 7.0.7)
+ activestorage (= 7.0.7)
+ activesupport (= 7.0.7)
bundler (>= 1.15.0)
- railties (= 6.1.7.4)
- sprockets-rails (>= 2.0.0)
+ railties (= 7.0.7)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
@@ -147,35 +152,23 @@
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
- railties (6.1.7.4)
- actionpack (= 6.1.7.4)
- activesupport (= 6.1.7.4)
+ railties (7.0.7)
+ actionpack (= 7.0.7)
+ activesupport (= 7.0.7)
method_source
rake (>= 12.2)
thor (~> 1.0)
+ zeitwerk (~> 2.5)
rake (13.0.6)
- rb-fsevent (0.11.2)
- rb-inotify (0.10.1)
- ffi (~> 1.0)
regexp_parser (2.8.1)
+ reline (0.3.8)
+ io-console (~> 0.5)
rexml (3.2.6)
rubyzip (2.3.2)
- sass-rails (6.0.0)
- sassc-rails (~> 2.1, >= 2.1.1)
- sassc (2.4.0)
- ffi (~> 1.9)
- sassc-rails (2.1.2)
- railties (>= 4.0.0)
- sassc (>= 2.0)
- sprockets (> 3.0)
- sprockets-rails
- tilt
selenium-webdriver (4.9.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
- semantic_range (3.0.0)
- spring (4.1.1)
sprockets (4.2.0)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -185,11 +178,7 @@
sprockets (>= 3.0.0)
sqlite3 (1.6.3-arm64-darwin)
thor (1.2.2)
- tilt (2.2.0)
timeout (0.4.0)
- turbolinks (5.2.1)
- turbolinks-source (~> 5.2)
- turbolinks-source (5.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
web-console (4.2.0)
@@ -201,11 +190,6 @@
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0, < 4.11)
- webpacker (5.4.4)
- activesupport (>= 5.2)
- rack-proxy (>= 0.6.1)
- railties (>= 5.2)
- semantic_range (>= 2.3.0)
websocket (1.2.9)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
@@ -218,22 +202,18 @@
arm64-darwin-22
DEPENDENCIES
- byebug
- capybara (>= 3.26)
- jbuilder (~> 2.7)
- listen (~> 3.3)
+ bootsnap
+ capybara
+ debug
+ jbuilder
puma (~> 5.0)
- rack-mini-profiler (~> 2.0)
- rails (~> 6.1.7, >= 6.1.7.4)
- sass-rails (>= 6)
- selenium-webdriver (>= 4.0.0.rc1)
- spring
+ rails (~> 7.0.7)
+ selenium-webdriver
+ sprockets-rails
sqlite3 (~> 1.4)
- turbolinks (~> 5)
tzinfo-data
- web-console (>= 4.1.0)
+ web-console
webdrivers
- webpacker (~> 5.0)
RUBY VERSION
ruby 2.7.8p225
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/app/assets/stylesheets/application.css rails 7.0/app/assets/stylesheets/application.css
--- rails 6.1/app/assets/stylesheets/application.css 2023-08-21 12:38:36
+++ rails 7.0/app/assets/stylesheets/application.css 2023-08-21 12:38:39
@@ -2,11 +2,11 @@
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
+ * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
Only in rails 6.1/app: javascript
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/app/mailers/application_mailer.rb rails 7.0/app/mailers/application_mailer.rb
--- rails 6.1/app/mailers/application_mailer.rb 2023-08-21 12:38:36
+++ rails 7.0/app/mailers/application_mailer.rb 2023-08-21 12:38:39
@@ -1,4 +1,4 @@
class ApplicationMailer < ActionMailer::Base
- default from: '[email protected]'
- layout 'mailer'
+ default from: "[email protected]"
+ layout "mailer"
end
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/app/models/application_record.rb rails 7.0/app/models/application_record.rb
--- rails 6.1/app/models/application_record.rb 2023-08-21 12:38:36
+++ rails 7.0/app/models/application_record.rb 2023-08-21 12:38:39
@@ -1,3 +1,3 @@
class ApplicationRecord < ActiveRecord::Base
- self.abstract_class = true
+ primary_abstract_class
end
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/app/views/layouts/application.html.erb rails 7.0/app/views/layouts/application.html.erb
--- rails 6.1/app/views/layouts/application.html.erb 2023-08-21 12:38:36
+++ rails 7.0/app/views/layouts/application.html.erb 2023-08-21 12:38:39
@@ -1,13 +1,12 @@
<!DOCTYPE html>
<html>
<head>
- <title>Rails61</title>
+ <title>Rails70</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
- <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
+ <%= stylesheet_link_tag "application" %>
</head>
<body>
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/bin/rails rails 7.0/bin/rails
--- rails 6.1/bin/rails 2023-08-21 12:38:36
+++ rails 7.0/bin/rails 2023-08-21 12:38:39
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
-load File.expand_path("spring", __dir__)
-APP_PATH = File.expand_path('../config/application', __dir__)
+APP_PATH = File.expand_path("../config/application", __dir__)
require_relative "../config/boot"
require "rails/commands"
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/bin/rake rails 7.0/bin/rake
--- rails 6.1/bin/rake 2023-08-21 12:38:36
+++ rails 7.0/bin/rake 2023-08-21 12:38:39
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
-load File.expand_path("spring", __dir__)
require_relative "../config/boot"
require "rake"
Rake.application.run
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/bin/setup rails 7.0/bin/setup
--- rails 6.1/bin/setup 2023-08-21 12:38:36
+++ rails 7.0/bin/setup 2023-08-21 12:38:39
@@ -2,7 +2,7 @@
require "fileutils"
# path to your application root.
-APP_ROOT = File.expand_path('..', __dir__)
+APP_ROOT = File.expand_path("..", __dir__)
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
@@ -13,24 +13,21 @@
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
# Add necessary setup steps to this file.
- puts '== Installing dependencies =='
- system! 'gem install bundler --conservative'
- system('bundle check') || system!('bundle install')
+ puts "== Installing dependencies =="
+ system! "gem install bundler --conservative"
+ system("bundle check") || system!("bundle install")
- # Install JavaScript dependencies
- system! 'bin/yarn'
-
# puts "\n== Copying sample files =="
- # unless File.exist?('config/database.yml')
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
+ # unless File.exist?("config/database.yml")
+ # FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end
puts "\n== Preparing database =="
- system! 'bin/rails db:prepare'
+ system! "bin/rails db:prepare"
puts "\n== Removing old logs and tempfiles =="
- system! 'bin/rails log:clear tmp:clear'
+ system! "bin/rails log:clear tmp:clear"
puts "\n== Restarting application server =="
- system! 'bin/rails restart'
+ system! "bin/rails restart"
end
Only in rails 6.1/bin: spring
Only in rails 6.1/bin: yarn
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/application.rb rails 7.0/config/application.rb
--- rails 6.1/config/application.rb 2023-08-21 12:38:36
+++ rails 7.0/config/application.rb 2023-08-21 12:38:39
@@ -6,10 +6,10 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
-module Rails61
+module Rails70
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
- config.load_defaults 6.1
+ config.load_defaults 7.0
# Configuration for the application, engines, and railties goes here.
#
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/boot.rb rails 7.0/config/boot.rb
--- rails 6.1/config/boot.rb 2023-08-21 12:38:36
+++ rails 7.0/config/boot.rb 2023-08-21 12:38:39
@@ -1,3 +1,4 @@
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
require "bundler/setup" # Set up gems listed in the Gemfile.
+require "bootsnap/setup" # Speed up boot time by caching expensive operations.
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/cable.yml rails 7.0/config/cable.yml
--- rails 6.1/config/cable.yml 2023-08-21 12:38:36
+++ rails 7.0/config/cable.yml 2023-08-21 12:38:39
@@ -7,4 +7,4 @@
production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
- channel_prefix: rails_6_1_production
+ channel_prefix: rails_7_0_production
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/credentials.yml.enc rails 7.0/config/credentials.yml.enc
--- rails 6.1/config/credentials.yml.enc 2023-08-21 12:38:36
+++ rails 7.0/config/credentials.yml.enc 2023-08-21 12:38:39
@@ -1 +1 @@
-g7R0YWdoU8uYa3i1vsoDZMAOz22Y/Ex8C77tMon6gVKpnuuT6xmi+HmyjJ6rwI6PXuYFug0rjVXaCcJ8hEuQm+k63MX36Jyr43MUsZZQb3WBjktfqV9Q0FGKa9yJx0SiTeLNdJPFb63j0Pcr6x9Ohi4TSNxYNNL84l7yGrtlNxRBaWQnYQ0jr9/1um2ioDtqUu9fL3UOKSxKFLY1yPWyalAkvVN8dpT+dGo6Lkj71wx0KSI5oEe6td6XKO0VHzz+Z5eyyv58UgsOLpxoKyCOS37MwKSy8FQmWkFEL2ot+jUDJANZWYXWHbD8AmH0mu4BsaqvAxwdMKuRcBsoGAzX2l891J+ukV6kJDbaFUXWA6VhkJcwCAvj808igp0L5MDSGVJZYUfWFdRhdr2lGeszbUvL+SM0aWySeqR3--2ahPV5kxznUStbSC--vSB1qige3wfIjpdYaXt/SA==
\ No newline at end of file
+uwWuIS6s5srCL/ZQgWTq9jgom9gP6dO/l62jVOzryPGXKXskRvvgL5qDj8KwbM1E2nstn8kIVG9Pi8c62QafMczGzyr2odjYSnEkSOrupKyPCm4mXqVRik6OASkryd3XHcZ6F5YaE0WNs6bhf4grhBs+VBE981J9nzgielegZB4RwW+Bdn4IKQPISvZ3/53DjRb4rFl2FIVEIrg6KS5N4hu/d2vG4Val/DGgmuLmgHi/KrFcmo96Ql3IzXcV7Ow7yzOPFSrYABGjTxykWfq+anw8klfA+owUhpHVteFBJqa+4mLutlwpVAciXjEUBup3TmirCizx4U2bWASKPIaHLOXoALZhkUj4o1iaRlNHOTWGCzLyEkLJkYDb8fxrM0K+jcRPh8vMI4c8Qfrsasx5dldoU+oxuK5EJd+o--th4ApfCS6oyRgqPd--AwA/R7WpMGsZR07LPZfWDg==
\ No newline at end of file
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/database.yml rails 7.0/config/database.yml
--- rails 6.1/config/database.yml 2023-08-21 12:38:36
+++ rails 7.0/config/database.yml 2023-08-21 12:38:39
@@ -2,7 +2,7 @@
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
+# gem "sqlite3"
#
default: &default
adapter: sqlite3
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/environments/development.rb rails 7.0/config/environments/development.rb
--- rails 6.1/config/environments/development.rb 2023-08-21 12:38:36
+++ rails 7.0/config/environments/development.rb 2023-08-21 12:38:39
@@ -14,15 +14,18 @@
# Show full error reports.
config.consider_all_requests_local = true
+ # Enable server timing
+ config.server_timing = true
+
# Enable/disable caching. By default caching is disabled.
# Run rails dev:cache to toggle caching.
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
+ if Rails.root.join("tmp/caching-dev.txt").exist?
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true
config.cache_store = :memory_store
config.public_file_server.headers = {
- 'Cache-Control' => "public, max-age=#{2.days.to_i}"
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
}
else
config.action_controller.perform_caching = false
@@ -53,11 +56,6 @@
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true
- # Debug mode disables concatenation and preprocessing of assets.
- # This option may cause significant delays in view rendering with a large
- # number of complex assets.
- config.assets.debug = true
-
# Suppress logger output for asset requests.
config.assets.quiet = true
@@ -66,10 +64,6 @@
# Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true
-
- # Use an evented file watcher to asynchronously detect changes in source code,
- # routes, locales, etc. This feature depends on the listen gem.
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/environments/production.rb rails 7.0/config/environments/production.rb
--- rails 6.1/config/environments/production.rb 2023-08-21 12:38:36
+++ rails 7.0/config/environments/production.rb 2023-08-21 12:38:39
@@ -22,7 +22,7 @@
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
+ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
@@ -31,19 +31,19 @@
config.assets.compile = false
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.asset_host = 'http://assets.example.com'
+ # config.asset_host = "http://assets.example.com"
# Specifies the header that your server uses for sending files.
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
+ # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
- # config.action_cable.url = 'wss://example.com/cable'
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
+ # config.action_cable.url = "wss://example.com/cable"
+ # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
@@ -60,7 +60,7 @@
# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
- # config.active_job.queue_name_prefix = "rails_6_1_production"
+ # config.active_job.queue_name_prefix = "rails_7_0_production"
config.action_mailer.perform_caching = false
@@ -72,21 +72,15 @@
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true
- # Send deprecation notices to registered listeners.
- config.active_support.deprecation = :notify
+ # Don't log any deprecations.
+ config.active_support.report_deprecations = false
- # Log disallowed deprecations.
- config.active_support.disallowed_deprecation = :log
-
- # Tell Active Support which deprecation messages to disallow.
- config.active_support.disallowed_deprecation_warnings = []
-
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
# Use a different logger for distributed setups.
# require "syslog/logger"
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
@@ -96,25 +90,4 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
-
- # Inserts middleware to perform automatic connection switching.
- # The `database_selector` hash is used to pass options to the DatabaseSelector
- # middleware. The `delay` is used to determine how long to wait after a write
- # to send a subsequent read to the primary.
- #
- # The `database_resolver` class is used by the middleware to determine which
- # database is appropriate to use based on the time delay.
- #
- # The `database_resolver_context` class is used by the middleware to set
- # timestamps for the last write to the primary. The resolver uses the context
- # class timestamps to determine how long to wait before reading from the
- # replica.
- #
- # By default Rails will store a last write timestamp in the session. The
- # DatabaseSelector middleware is designed as such you can define your own
- # strategy for connection switching and pass that into the middleware through
- # these configuration options.
- # config.active_record.database_selector = { delay: 2.seconds }
- # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
- # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
end
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/environments/test.rb rails 7.0/config/environments/test.rb
--- rails 6.1/config/environments/test.rb 2023-08-21 12:38:36
+++ rails 7.0/config/environments/test.rb 2023-08-21 12:38:39
@@ -8,18 +8,18 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
- config.cache_classes = false
- config.action_view.cache_template_loading = true
+ # Turn false under Spring and add config.action_view.cache_template_loading = true.
+ config.cache_classes = true
- # Do not eager load code on boot. This avoids loading your whole application
- # just for the purpose of running a single test. If you are using a tool that
- # preloads Rails for running tests, you may have to set it to true.
- config.eager_load = false
+ # Eager loading loads your whole application. When running a single test locally,
+ # this probably isn't necessary. It's a good idea to do in a continuous integration
+ # system, or in some way before deploying your code.
+ config.eager_load = ENV["CI"].present?
# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
config.public_file_server.headers = {
- 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
+ "Cache-Control" => "public, max-age=#{1.hour.to_i}"
}
# Show full error reports and disable caching.
Only in rails 6.1/config/initializers: application_controller_renderer.rb
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/initializers/assets.rb rails 7.0/config/initializers/assets.rb
--- rails 6.1/config/initializers/assets.rb 2023-08-21 12:38:36
+++ rails 7.0/config/initializers/assets.rb 2023-08-21 12:38:39
@@ -1,12 +1,10 @@
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = '1.0'
+Rails.application.config.assets.version = "1.0"
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
-# Add Yarn node_modules folder to the asset load path.
-Rails.application.config.assets.paths << Rails.root.join('node_modules')
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
Only in rails 6.1/config/initializers: backtrace_silencers.rb
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/initializers/content_security_policy.rb rails 7.0/config/initializers/content_security_policy.rb
--- rails 6.1/config/initializers/content_security_policy.rb 2023-08-21 12:38:36
+++ rails 7.0/config/initializers/content_security_policy.rb 2023-08-21 12:38:39
@@ -1,30 +1,25 @@
# Be sure to restart your server when you modify this file.
-# Define an application-wide content security policy
-# For further information see the following documentation
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
+# Define an application-wide content security policy.
+# See the Securing Rails Applications Guide for more information:
+# https://guides.rubyonrails.org/security.html#content-security-policy-header
-# Rails.application.config.content_security_policy do |policy|
+# Rails.application.configure do
+# config.content_security_policy do |policy|
# policy.default_src :self, :https
# policy.font_src :self, :https, :data
# policy.img_src :self, :https, :data
# policy.object_src :none
# policy.script_src :self, :https
# policy.style_src :self, :https
-# # If you are using webpack-dev-server then specify webpack-dev-server host
-# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
-
# # Specify URI for violation reports
# # policy.report_uri "/csp-violation-report-endpoint"
# end
-
-# If you are using UJS then enable automatic nonce generation
-# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
-
-# Set the nonce only to specific directives
-# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
-
-# Report CSP violations to a specified URI
-# For further information see the following documentation:
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
-# Rails.application.config.content_security_policy_report_only = true
+#
+# # Generate session nonces for permitted importmap and inline scripts
+# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
+# config.content_security_policy_nonce_directives = %w(script-src)
+#
+# # Report violations without enforcing the policy.
+# # config.content_security_policy_report_only = true
+# end
Only in rails 6.1/config/initializers: cookies_serializer.rb
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/initializers/filter_parameter_logging.rb rails 7.0/config/initializers/filter_parameter_logging.rb
--- rails 6.1/config/initializers/filter_parameter_logging.rb 2023-08-21 12:38:36
+++ rails 7.0/config/initializers/filter_parameter_logging.rb 2023-08-21 12:38:39
@@ -1,6 +1,8 @@
# Be sure to restart your server when you modify this file.
-# Configure sensitive parameters which will be filtered from the log file.
+# Configure parameters to be filtered from the log file. Use this to limit dissemination of
+# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
+# notations and behaviors.
Rails.application.config.filter_parameters += [
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
]
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/initializers/inflections.rb rails 7.0/config/initializers/inflections.rb
--- rails 6.1/config/initializers/inflections.rb 2023-08-21 12:38:36
+++ rails 7.0/config/initializers/inflections.rb 2023-08-21 12:38:39
@@ -4,13 +4,13 @@
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
+# inflect.plural /^(ox)$/i, "\\1en"
+# inflect.singular /^(ox)en/i, "\\1"
+# inflect.irregular "person", "people"
# inflect.uncountable %w( fish sheep )
# end
# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym 'RESTful'
+# inflect.acronym "RESTful"
# end
Only in rails 6.1/config/initializers: mime_types.rb
Only in rails 6.1/config/initializers: wrap_parameters.rb
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/locales/en.yml rails 7.0/config/locales/en.yml
--- rails 6.1/config/locales/en.yml 2023-08-21 12:38:36
+++ rails 7.0/config/locales/en.yml 2023-08-21 12:38:39
@@ -4,11 +4,11 @@
#
# To use the locales, use `I18n.t`:
#
-# I18n.t 'hello'
+# I18n.t "hello"
#
# In views, this is aliased to just `t`:
#
-# <%= t('hello') %>
+# <%= t("hello") %>
#
# To use a different locale, set it with `I18n.locale`:
#
@@ -24,7 +24,7 @@
# Instead, surround them with single quotes.
#
# en:
-# 'true': 'foo'
+# "true": "foo"
#
# To learn more, please read the Rails Internationalization guide
# available at https://guides.rubyonrails.org/i18n.html.
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/master.key rails 7.0/config/master.key
--- rails 6.1/config/master.key 2023-08-21 12:38:36
+++ rails 7.0/config/master.key 2023-08-21 12:38:39
@@ -1 +1 @@
-be12abcc8a703abe4d08dcbd10e341a0
\ No newline at end of file
+d0f0ad44771c691207722099d997dfe9
\ No newline at end of file
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/puma.rb rails 7.0/config/puma.rb
--- rails 6.1/config/puma.rb 2023-08-21 12:38:36
+++ rails 7.0/config/puma.rb 2023-08-21 12:38:39
@@ -39,5 +39,5 @@
#
# preload_app!
-# Allow puma to be restarted by `rails restart` command.
+# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/routes.rb rails 7.0/config/routes.rb
--- rails 6.1/config/routes.rb 2023-08-21 12:38:36
+++ rails 7.0/config/routes.rb 2023-08-21 12:38:39
@@ -1,3 +1,6 @@
Rails.application.routes.draw do
- # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
+ # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
+
+ # Defines the root path route ("/")
+ # root "articles#index"
end
Only in rails 6.1/config: spring.rb
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/config/storage.yml rails 7.0/config/storage.yml
--- rails 6.1/config/storage.yml 2023-08-21 12:38:36
+++ rails 7.0/config/storage.yml 2023-08-21 12:38:39
@@ -6,27 +6,27 @@
service: Disk
root: <%= Rails.root.join("storage") %>
-# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
+# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
# amazon:
# service: S3
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
# region: us-east-1
-# bucket: your_own_bucket
+# bucket: your_own_bucket-<%= Rails.env %>
# Remember not to checkin your GCS keyfile to a repository
# google:
# service: GCS
# project: your_project
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
-# bucket: your_own_bucket
+# bucket: your_own_bucket-<%= Rails.env %>
-# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
+# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
# microsoft:
# service: AzureStorage
# storage_account_name: your_account_name
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
-# container: your_container_name
+# container: your_container_name-<%= Rails.env %>
# mirror:
# service: Mirror
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/db/seeds.rb rails 7.0/db/seeds.rb
--- rails 6.1/db/seeds.rb 2023-08-21 12:38:36
+++ rails 7.0/db/seeds.rb 2023-08-21 12:38:39
@@ -3,5 +3,5 @@
#
# Examples:
#
-# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
-# Character.create(name: 'Luke', movie: movies.first)
+# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
+# Character.create(name: "Luke", movie: movies.first)
Only in rails 6.1: package.json
diff --ignore-space-change --minimal --recursive --unidirectional-new-file --unified rails 6.1/test/test_helper.rb rails 7.0/test/test_helper.rb
--- rails 6.1/test/test_helper.rb 2023-08-21 12:38:36
+++ rails 7.0/test/test_helper.rb 2023-08-21 12:38:39
@@ -1,4 +1,4 @@
-ENV['RAILS_ENV'] ||= 'test'
+ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
require "rails/test_help"