railties 7.2.3 → 8.0.0.beta1
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 +4 -4
- data/CHANGELOG.md +111 -324
- data/README.rdoc +1 -1
- data/lib/minitest/rails_plugin.rb +2 -2
- data/lib/rails/application/bootstrap.rb +3 -1
- data/lib/rails/application/configuration.rb +22 -7
- data/lib/rails/application/default_middleware_stack.rb +4 -0
- data/lib/rails/application/finisher.rb +2 -2
- data/lib/rails/application/routes_reloader.rb +11 -1
- data/lib/rails/application.rb +14 -12
- data/lib/rails/backtrace_cleaner.rb +1 -1
- data/lib/rails/code_statistics.rb +128 -86
- data/lib/rails/code_statistics_calculator.rb +78 -76
- data/lib/rails/command/helpers/editor.rb +1 -1
- data/lib/rails/commands/app/update_command.rb +1 -9
- data/lib/rails/commands/console/irb_console.rb +6 -3
- data/lib/rails/commands/credentials/USAGE +4 -4
- data/lib/rails/commands/credentials/credentials_command.rb +5 -1
- data/lib/rails/commands/dev/dev_command.rb +1 -1
- data/lib/rails/commands/devcontainer/devcontainer_command.rb +1 -1
- data/lib/rails/commands/stats/stats_command.rb +19 -0
- data/lib/rails/commands/test/test_command.rb +2 -0
- data/lib/rails/dev_caching.rb +2 -2
- data/lib/rails/engine/configuration.rb +3 -1
- data/lib/rails/engine/lazy_route_set.rb +109 -0
- data/lib/rails/engine.rb +8 -3
- data/lib/rails/gem_version.rb +4 -4
- data/lib/rails/generators/actions.rb +5 -9
- data/lib/rails/generators/app_base.rb +49 -31
- data/lib/rails/generators/database.rb +101 -67
- data/lib/rails/generators/erb/authentication/authentication_generator.rb +15 -0
- data/lib/rails/generators/erb/authentication/templates/views/passwords/edit.html.erb +9 -0
- data/lib/rails/generators/erb/authentication/templates/views/passwords/new.html.erb +8 -0
- data/lib/rails/generators/erb/authentication/templates/views/sessions/new.html.erb +11 -0
- data/lib/rails/generators/generated_attribute.rb +16 -11
- data/lib/rails/generators/rails/app/app_generator.rb +19 -28
- data/lib/rails/generators/rails/app/templates/Dockerfile.tt +12 -3
- data/lib/rails/generators/rails/app/templates/Gemfile.tt +23 -8
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css.tt +6 -11
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +10 -3
- data/lib/rails/generators/rails/app/templates/bin/dev.tt +1 -0
- data/lib/rails/generators/rails/app/templates/bin/setup.tt +5 -7
- data/lib/rails/generators/rails/app/templates/bin/thrust.tt +4 -0
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt +23 -0
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt +23 -0
- data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt +40 -0
- data/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt +23 -0
- data/lib/rails/generators/rails/app/templates/config/deploy.yml.tt +124 -0
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +12 -23
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +31 -51
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +5 -19
- data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +0 -7
- data/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_8_0.rb.tt +25 -0
- data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +11 -2
- data/lib/rails/generators/rails/app/templates/config/routes.rb.tt +3 -3
- data/lib/rails/generators/rails/app/templates/docker-entrypoint.tt +4 -3
- data/lib/rails/generators/rails/app/templates/dockerignore.tt +1 -2
- data/lib/rails/generators/rails/app/templates/github/ci.yml.tt +1 -3
- data/lib/rails/generators/rails/app/templates/gitignore.tt +1 -2
- data/lib/rails/generators/rails/app/templates/kamal-secrets.tt +17 -0
- data/lib/rails/generators/rails/app/templates/public/400.html +114 -0
- data/lib/rails/generators/rails/app/templates/public/404.html +113 -66
- data/lib/rails/generators/rails/app/templates/public/406-unsupported-browser.html +113 -65
- data/lib/rails/generators/rails/app/templates/public/422.html +113 -66
- data/lib/rails/generators/rails/app/templates/public/500.html +113 -65
- data/lib/rails/generators/rails/app/templates/public/icon.png +0 -0
- data/lib/rails/generators/rails/app/templates/public/icon.svg +2 -2
- data/lib/rails/generators/rails/authentication/USAGE +6 -0
- data/lib/rails/generators/rails/authentication/authentication_generator.rb +54 -0
- data/lib/rails/generators/rails/authentication/templates/controllers/concerns/authentication.rb +55 -0
- data/lib/rails/generators/rails/authentication/templates/controllers/passwords_controller.rb +33 -0
- data/lib/rails/generators/rails/authentication/templates/controllers/sessions_controller.rb +21 -0
- data/lib/rails/generators/rails/authentication/templates/mailers/passwords_mailer.rb +6 -0
- data/lib/rails/generators/rails/authentication/templates/models/current.rb +4 -0
- data/lib/rails/generators/rails/authentication/templates/models/session.rb +3 -0
- data/lib/rails/generators/rails/authentication/templates/models/user.rb +6 -0
- data/lib/rails/generators/rails/authentication/templates/test/mailers/previews/passwords_mailer_preview.rb +7 -0
- data/lib/rails/generators/rails/authentication/templates/views/passwords_mailer/reset.html.erb +4 -0
- data/lib/rails/generators/rails/authentication/templates/views/passwords_mailer/reset.text.erb +2 -0
- data/lib/rails/generators/rails/credentials/templates/credentials.yml.tt +4 -0
- data/lib/rails/generators/rails/db/system/change/change_generator.rb +1 -1
- data/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb +4 -2
- data/lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt +1 -1
- data/lib/rails/generators/rails/plugin/plugin_generator.rb +7 -9
- data/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt +2 -3
- data/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb.tt +4 -4
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb.tt +5 -5
- data/lib/rails/generators/rails/script/USAGE +18 -0
- data/lib/rails/generators/rails/script/script_generator.rb +18 -0
- data/lib/rails/generators/rails/script/templates/script.rb.tt +3 -0
- data/lib/rails/generators.rb +6 -5
- data/lib/rails/info_controller.rb +10 -4
- data/lib/rails/rack/silence_request.rb +33 -0
- data/lib/rails/rack.rb +1 -0
- data/lib/rails/source_annotation_extractor.rb +31 -14
- data/lib/rails/tasks/statistics.rake +13 -28
- data/lib/rails/templates/rails/info/notes.html.erb +65 -0
- data/lib/rails/test_unit/runner.rb +3 -7
- data/lib/rails/test_unit/test_parser.rb +15 -18
- metadata +45 -50
- data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +0 -2
- data/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb.tt +0 -4
- data/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb.tt +0 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt +0 -70
- data/lib/rails/generators/rails/app/templates/config/initializers/permissions_policy.rb.tt +0 -13
- data/lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt +0 -13
- data/lib/rails/generators/rails/plugin/templates/rails/dummy_manifest.js.tt +0 -10
- data/lib/rails/generators/rails/plugin/templates/rails/engine_manifest.js.tt +0 -6
- data/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt +0 -17
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railties
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: activesupport
|
|
@@ -15,42 +16,28 @@ dependencies:
|
|
|
15
16
|
requirements:
|
|
16
17
|
- - '='
|
|
17
18
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
19
|
+
version: 8.0.0.beta1
|
|
19
20
|
type: :runtime
|
|
20
21
|
prerelease: false
|
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
23
|
requirements:
|
|
23
24
|
- - '='
|
|
24
25
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
26
|
+
version: 8.0.0.beta1
|
|
26
27
|
- !ruby/object:Gem::Dependency
|
|
27
28
|
name: actionpack
|
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
31
|
- - '='
|
|
31
32
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
33
|
+
version: 8.0.0.beta1
|
|
33
34
|
type: :runtime
|
|
34
35
|
prerelease: false
|
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
37
|
requirements:
|
|
37
38
|
- - '='
|
|
38
39
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: cgi
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
47
|
-
type: :runtime
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0'
|
|
40
|
+
version: 8.0.0.beta1
|
|
54
41
|
- !ruby/object:Gem::Dependency
|
|
55
42
|
name: rackup
|
|
56
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -127,34 +114,20 @@ dependencies:
|
|
|
127
114
|
- - "~>"
|
|
128
115
|
- !ruby/object:Gem::Version
|
|
129
116
|
version: '1.13'
|
|
130
|
-
- !ruby/object:Gem::Dependency
|
|
131
|
-
name: tsort
|
|
132
|
-
requirement: !ruby/object:Gem::Requirement
|
|
133
|
-
requirements:
|
|
134
|
-
- - ">="
|
|
135
|
-
- !ruby/object:Gem::Version
|
|
136
|
-
version: '0.2'
|
|
137
|
-
type: :runtime
|
|
138
|
-
prerelease: false
|
|
139
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
140
|
-
requirements:
|
|
141
|
-
- - ">="
|
|
142
|
-
- !ruby/object:Gem::Version
|
|
143
|
-
version: '0.2'
|
|
144
117
|
- !ruby/object:Gem::Dependency
|
|
145
118
|
name: actionview
|
|
146
119
|
requirement: !ruby/object:Gem::Requirement
|
|
147
120
|
requirements:
|
|
148
121
|
- - '='
|
|
149
122
|
- !ruby/object:Gem::Version
|
|
150
|
-
version:
|
|
123
|
+
version: 8.0.0.beta1
|
|
151
124
|
type: :development
|
|
152
125
|
prerelease: false
|
|
153
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
154
127
|
requirements:
|
|
155
128
|
- - '='
|
|
156
129
|
- !ruby/object:Gem::Version
|
|
157
|
-
version:
|
|
130
|
+
version: 8.0.0.beta1
|
|
158
131
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
|
159
132
|
email: david@loudthinking.com
|
|
160
133
|
executables:
|
|
@@ -227,6 +200,7 @@ files:
|
|
|
227
200
|
- lib/rails/commands/runner/runner_command.rb
|
|
228
201
|
- lib/rails/commands/secret/secret_command.rb
|
|
229
202
|
- lib/rails/commands/server/server_command.rb
|
|
203
|
+
- lib/rails/commands/stats/stats_command.rb
|
|
230
204
|
- lib/rails/commands/test/USAGE
|
|
231
205
|
- lib/rails/commands/test/test_command.rb
|
|
232
206
|
- lib/rails/commands/unused_routes/unused_routes_command.rb
|
|
@@ -240,6 +214,7 @@ files:
|
|
|
240
214
|
- lib/rails/engine.rb
|
|
241
215
|
- lib/rails/engine/commands.rb
|
|
242
216
|
- lib/rails/engine/configuration.rb
|
|
217
|
+
- lib/rails/engine/lazy_route_set.rb
|
|
243
218
|
- lib/rails/engine/railties.rb
|
|
244
219
|
- lib/rails/engine/updater.rb
|
|
245
220
|
- lib/rails/gem_version.rb
|
|
@@ -252,6 +227,10 @@ files:
|
|
|
252
227
|
- lib/rails/generators/base.rb
|
|
253
228
|
- lib/rails/generators/database.rb
|
|
254
229
|
- lib/rails/generators/erb.rb
|
|
230
|
+
- lib/rails/generators/erb/authentication/authentication_generator.rb
|
|
231
|
+
- lib/rails/generators/erb/authentication/templates/views/passwords/edit.html.erb
|
|
232
|
+
- lib/rails/generators/erb/authentication/templates/views/passwords/new.html.erb
|
|
233
|
+
- lib/rails/generators/erb/authentication/templates/views/sessions/new.html.erb
|
|
255
234
|
- lib/rails/generators/erb/controller/controller_generator.rb
|
|
256
235
|
- lib/rails/generators/erb/controller/templates/view.html.erb.tt
|
|
257
236
|
- lib/rails/generators/erb/mailer/mailer_generator.rb
|
|
@@ -276,10 +255,7 @@ files:
|
|
|
276
255
|
- lib/rails/generators/rails/app/templates/Gemfile.tt
|
|
277
256
|
- lib/rails/generators/rails/app/templates/README.md.tt
|
|
278
257
|
- lib/rails/generators/rails/app/templates/Rakefile.tt
|
|
279
|
-
- lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt
|
|
280
258
|
- lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css.tt
|
|
281
|
-
- lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb.tt
|
|
282
|
-
- lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb.tt
|
|
283
259
|
- lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt
|
|
284
260
|
- lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb.tt
|
|
285
261
|
- lib/rails/generators/rails/app/templates/app/jobs/application_job.rb.tt
|
|
@@ -291,10 +267,12 @@ files:
|
|
|
291
267
|
- lib/rails/generators/rails/app/templates/app/views/pwa/manifest.json.erb.tt
|
|
292
268
|
- lib/rails/generators/rails/app/templates/app/views/pwa/service-worker.js
|
|
293
269
|
- lib/rails/generators/rails/app/templates/bin/brakeman.tt
|
|
270
|
+
- lib/rails/generators/rails/app/templates/bin/dev.tt
|
|
294
271
|
- lib/rails/generators/rails/app/templates/bin/rails.tt
|
|
295
272
|
- lib/rails/generators/rails/app/templates/bin/rake.tt
|
|
296
273
|
- lib/rails/generators/rails/app/templates/bin/rubocop.tt
|
|
297
274
|
- lib/rails/generators/rails/app/templates/bin/setup.tt
|
|
275
|
+
- lib/rails/generators/rails/app/templates/bin/thrust.tt
|
|
298
276
|
- lib/rails/generators/rails/app/templates/config.ru.tt
|
|
299
277
|
- lib/rails/generators/rails/app/templates/config/application.rb.tt
|
|
300
278
|
- lib/rails/generators/rails/app/templates/config/boot.rb.tt
|
|
@@ -303,6 +281,7 @@ files:
|
|
|
303
281
|
- lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt
|
|
304
282
|
- lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt
|
|
305
283
|
- lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
|
|
284
|
+
- lib/rails/generators/rails/app/templates/config/deploy.yml.tt
|
|
306
285
|
- lib/rails/generators/rails/app/templates/config/environment.rb.tt
|
|
307
286
|
- lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
|
|
308
287
|
- lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
|
|
@@ -312,8 +291,7 @@ files:
|
|
|
312
291
|
- lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt
|
|
313
292
|
- lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt
|
|
314
293
|
- lib/rails/generators/rails/app/templates/config/initializers/inflections.rb.tt
|
|
315
|
-
- lib/rails/generators/rails/app/templates/config/initializers/
|
|
316
|
-
- lib/rails/generators/rails/app/templates/config/initializers/permissions_policy.rb.tt
|
|
294
|
+
- lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_8_0.rb.tt
|
|
317
295
|
- lib/rails/generators/rails/app/templates/config/locales/en.yml
|
|
318
296
|
- lib/rails/generators/rails/app/templates/config/puma.rb.tt
|
|
319
297
|
- lib/rails/generators/rails/app/templates/config/routes.rb.tt
|
|
@@ -325,7 +303,9 @@ files:
|
|
|
325
303
|
- lib/rails/generators/rails/app/templates/github/ci.yml.tt
|
|
326
304
|
- lib/rails/generators/rails/app/templates/github/dependabot.yml
|
|
327
305
|
- lib/rails/generators/rails/app/templates/gitignore.tt
|
|
306
|
+
- lib/rails/generators/rails/app/templates/kamal-secrets.tt
|
|
328
307
|
- lib/rails/generators/rails/app/templates/node-version.tt
|
|
308
|
+
- lib/rails/generators/rails/app/templates/public/400.html
|
|
329
309
|
- lib/rails/generators/rails/app/templates/public/404.html
|
|
330
310
|
- lib/rails/generators/rails/app/templates/public/406-unsupported-browser.html
|
|
331
311
|
- lib/rails/generators/rails/app/templates/public/422.html
|
|
@@ -336,9 +316,20 @@ files:
|
|
|
336
316
|
- lib/rails/generators/rails/app/templates/rubocop.yml.tt
|
|
337
317
|
- lib/rails/generators/rails/app/templates/ruby-version.tt
|
|
338
318
|
- lib/rails/generators/rails/app/templates/test/application_system_test_case.rb.tt
|
|
339
|
-
- lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt
|
|
340
319
|
- lib/rails/generators/rails/app/templates/test/test_helper.rb.tt
|
|
341
320
|
- lib/rails/generators/rails/application_record/application_record_generator.rb
|
|
321
|
+
- lib/rails/generators/rails/authentication/USAGE
|
|
322
|
+
- lib/rails/generators/rails/authentication/authentication_generator.rb
|
|
323
|
+
- lib/rails/generators/rails/authentication/templates/controllers/concerns/authentication.rb
|
|
324
|
+
- lib/rails/generators/rails/authentication/templates/controllers/passwords_controller.rb
|
|
325
|
+
- lib/rails/generators/rails/authentication/templates/controllers/sessions_controller.rb
|
|
326
|
+
- lib/rails/generators/rails/authentication/templates/mailers/passwords_mailer.rb
|
|
327
|
+
- lib/rails/generators/rails/authentication/templates/models/current.rb
|
|
328
|
+
- lib/rails/generators/rails/authentication/templates/models/session.rb
|
|
329
|
+
- lib/rails/generators/rails/authentication/templates/models/user.rb
|
|
330
|
+
- lib/rails/generators/rails/authentication/templates/test/mailers/previews/passwords_mailer_preview.rb
|
|
331
|
+
- lib/rails/generators/rails/authentication/templates/views/passwords_mailer/reset.html.erb
|
|
332
|
+
- lib/rails/generators/rails/authentication/templates/views/passwords_mailer/reset.text.erb
|
|
342
333
|
- lib/rails/generators/rails/benchmark/USAGE
|
|
343
334
|
- lib/rails/generators/rails/benchmark/benchmark_generator.rb
|
|
344
335
|
- lib/rails/generators/rails/benchmark/templates/benchmark.rb.tt
|
|
@@ -394,9 +385,6 @@ files:
|
|
|
394
385
|
- lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb.tt
|
|
395
386
|
- lib/rails/generators/rails/plugin/templates/lib/tasks/%namespaced_name%_tasks.rake.tt
|
|
396
387
|
- lib/rails/generators/rails/plugin/templates/rails/boot.rb.tt
|
|
397
|
-
- lib/rails/generators/rails/plugin/templates/rails/dummy_manifest.js.tt
|
|
398
|
-
- lib/rails/generators/rails/plugin/templates/rails/engine_manifest.js.tt
|
|
399
|
-
- lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt
|
|
400
388
|
- lib/rails/generators/rails/plugin/templates/rails/routes.rb.tt
|
|
401
389
|
- lib/rails/generators/rails/plugin/templates/rails/stylesheets.css
|
|
402
390
|
- lib/rails/generators/rails/plugin/templates/rubocop.yml.tt
|
|
@@ -413,6 +401,9 @@ files:
|
|
|
413
401
|
- lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
|
|
414
402
|
- lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb.tt
|
|
415
403
|
- lib/rails/generators/rails/scaffold_controller/templates/controller.rb.tt
|
|
404
|
+
- lib/rails/generators/rails/script/USAGE
|
|
405
|
+
- lib/rails/generators/rails/script/script_generator.rb
|
|
406
|
+
- lib/rails/generators/rails/script/templates/script.rb.tt
|
|
416
407
|
- lib/rails/generators/rails/system_test/USAGE
|
|
417
408
|
- lib/rails/generators/rails/system_test/system_test_generator.rb
|
|
418
409
|
- lib/rails/generators/rails/task/USAGE
|
|
@@ -459,6 +450,7 @@ files:
|
|
|
459
450
|
- lib/rails/pwa_controller.rb
|
|
460
451
|
- lib/rails/rack.rb
|
|
461
452
|
- lib/rails/rack/logger.rb
|
|
453
|
+
- lib/rails/rack/silence_request.rb
|
|
462
454
|
- lib/rails/rackup/server.rb
|
|
463
455
|
- lib/rails/railtie.rb
|
|
464
456
|
- lib/rails/railtie/configurable.rb
|
|
@@ -474,6 +466,7 @@ files:
|
|
|
474
466
|
- lib/rails/tasks/yarn.rake
|
|
475
467
|
- lib/rails/tasks/zeitwerk.rake
|
|
476
468
|
- lib/rails/templates/layouts/application.html.erb
|
|
469
|
+
- lib/rails/templates/rails/info/notes.html.erb
|
|
477
470
|
- lib/rails/templates/rails/info/properties.html.erb
|
|
478
471
|
- lib/rails/templates/rails/info/routes.html.erb
|
|
479
472
|
- lib/rails/templates/rails/mailers/email.html.erb
|
|
@@ -496,11 +489,12 @@ licenses:
|
|
|
496
489
|
- MIT
|
|
497
490
|
metadata:
|
|
498
491
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
499
|
-
changelog_uri: https://github.com/rails/rails/blob/
|
|
500
|
-
documentation_uri: https://api.rubyonrails.org/
|
|
492
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.beta1/railties/CHANGELOG.md
|
|
493
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.beta1/
|
|
501
494
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
502
|
-
source_code_uri: https://github.com/rails/rails/tree/
|
|
495
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.beta1/railties
|
|
503
496
|
rubygems_mfa_required: 'true'
|
|
497
|
+
post_install_message:
|
|
504
498
|
rdoc_options:
|
|
505
499
|
- "--exclude"
|
|
506
500
|
- "."
|
|
@@ -510,14 +504,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
510
504
|
requirements:
|
|
511
505
|
- - ">="
|
|
512
506
|
- !ruby/object:Gem::Version
|
|
513
|
-
version: 3.
|
|
507
|
+
version: 3.2.0
|
|
514
508
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
515
509
|
requirements:
|
|
516
510
|
- - ">="
|
|
517
511
|
- !ruby/object:Gem::Version
|
|
518
512
|
version: '0'
|
|
519
513
|
requirements: []
|
|
520
|
-
rubygems_version: 3.
|
|
514
|
+
rubygems_version: 3.5.16
|
|
515
|
+
signing_key:
|
|
521
516
|
specification_version: 4
|
|
522
517
|
summary: Tools for creating, working with, and running Rails applications.
|
|
523
518
|
test_files: []
|
data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
#
|
|
3
|
-
# This file eases your Rails 7.2 framework defaults upgrade.
|
|
4
|
-
#
|
|
5
|
-
# Uncomment each configuration one by one to switch to the new default.
|
|
6
|
-
# Once your application is ready to run with all new defaults, you can remove
|
|
7
|
-
# this file and set the `config.load_defaults` to `7.2`.
|
|
8
|
-
#
|
|
9
|
-
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
|
10
|
-
# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
|
|
11
|
-
|
|
12
|
-
###
|
|
13
|
-
# Controls whether Active Job's `#perform_later` and similar methods automatically defer
|
|
14
|
-
# the job queuing to after the current Active Record transaction is committed.
|
|
15
|
-
#
|
|
16
|
-
# Example:
|
|
17
|
-
# Topic.transaction do
|
|
18
|
-
# topic = Topic.create(...)
|
|
19
|
-
# NewTopicNotificationJob.perform_later(topic)
|
|
20
|
-
# end
|
|
21
|
-
#
|
|
22
|
-
# In this example, if the configuration is set to `:never`, the job will
|
|
23
|
-
# be enqueued immediately, even though the `Topic` hasn't been committed yet.
|
|
24
|
-
# Because of this, if the job is picked up almost immediately, or if the
|
|
25
|
-
# transaction doesn't succeed for some reason, the job will fail to find this
|
|
26
|
-
# topic in the database.
|
|
27
|
-
#
|
|
28
|
-
# If `enqueue_after_transaction_commit` is set to `:default`, the queue adapter
|
|
29
|
-
# will define the behaviour.
|
|
30
|
-
#
|
|
31
|
-
# Note: Active Job backends can disable this feature. This is generally done by
|
|
32
|
-
# backends that use the same database as Active Record as a queue, hence they
|
|
33
|
-
# don't need this feature.
|
|
34
|
-
#++
|
|
35
|
-
# Rails.application.config.active_job.enqueue_after_transaction_commit = :default
|
|
36
|
-
|
|
37
|
-
###
|
|
38
|
-
# Adds image/webp to the list of content types Active Storage considers as an image
|
|
39
|
-
# Prevents automatic conversion to a fallback PNG, and assumes clients support WebP, as they support gif, jpeg, and png.
|
|
40
|
-
# This is possible due to broad browser support for WebP, but older browsers and email clients may still not support
|
|
41
|
-
# WebP. Requires imagemagick/libvips built with WebP support.
|
|
42
|
-
#++
|
|
43
|
-
# Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
|
|
44
|
-
|
|
45
|
-
###
|
|
46
|
-
# Enable validation of migration timestamps. When set, an ActiveRecord::InvalidMigrationTimestampError
|
|
47
|
-
# will be raised if the timestamp prefix for a migration is more than a day ahead of the timestamp
|
|
48
|
-
# associated with the current time. This is done to prevent forward-dating of migration files, which can
|
|
49
|
-
# impact migration generation and other migration commands.
|
|
50
|
-
#
|
|
51
|
-
# Applications with existing timestamped migrations that do not adhere to the
|
|
52
|
-
# expected format can disable validation by setting this config to `false`.
|
|
53
|
-
#++
|
|
54
|
-
# Rails.application.config.active_record.validate_migration_timestamps = true
|
|
55
|
-
|
|
56
|
-
###
|
|
57
|
-
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
|
|
58
|
-
#
|
|
59
|
-
# Example:
|
|
60
|
-
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date") #=> Date
|
|
61
|
-
#
|
|
62
|
-
# This query used to return a `String`.
|
|
63
|
-
#++
|
|
64
|
-
# Rails.application.config.active_record.postgresql_adapter_decode_dates = true
|
|
65
|
-
|
|
66
|
-
###
|
|
67
|
-
# Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
|
|
68
|
-
# deploying to a memory constrained environment you may want to set this to `false`.
|
|
69
|
-
#++
|
|
70
|
-
# Rails.application.config.yjit = true
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Define an application-wide HTTP permissions policy. For further
|
|
4
|
-
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
|
|
5
|
-
|
|
6
|
-
# Rails.application.config.permissions_policy do |policy|
|
|
7
|
-
# policy.camera :none
|
|
8
|
-
# policy.gyroscope :none
|
|
9
|
-
# policy.microphone :none
|
|
10
|
-
# policy.usb :none
|
|
11
|
-
# policy.fullscreen :self
|
|
12
|
-
# policy.payment :self, "https://secure.example.com"
|
|
13
|
-
# end
|
data/lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require "test_helper"
|
|
2
|
-
|
|
3
|
-
module ApplicationCable
|
|
4
|
-
class ConnectionTest < ActionCable::Connection::TestCase
|
|
5
|
-
# test "connects with cookies" do
|
|
6
|
-
# cookies.signed[:user_id] = 42
|
|
7
|
-
#
|
|
8
|
-
# connect
|
|
9
|
-
#
|
|
10
|
-
# assert_equal connection.user_id, "42"
|
|
11
|
-
# end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<% unless api? -%>
|
|
2
|
-
//= link_tree ../images
|
|
3
|
-
<% end -%>
|
|
4
|
-
<% unless options.skip_javascript -%>
|
|
5
|
-
//= link_directory ../javascripts .js
|
|
6
|
-
<% end -%>
|
|
7
|
-
//= link_directory ../stylesheets .css
|
|
8
|
-
<% if mountable? && !api? -%>
|
|
9
|
-
//= link <%= underscored_name %>_manifest.js
|
|
10
|
-
<% end -%>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require rails-ujs
|
|
14
|
-
<% unless skip_active_storage? -%>
|
|
15
|
-
//= require activestorage
|
|
16
|
-
<% end -%>
|
|
17
|
-
//= require_tree .
|