railties 8.0.0.rc2 → 8.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/rails/application/routes_reloader.rb +6 -2
- data/lib/rails/backtrace_cleaner.rb +3 -3
- data/lib/rails/gem_version.rb +1 -1
- data/lib/rails/generators/actions.rb +3 -3
- data/lib/rails/generators/app_base.rb +1 -1
- data/lib/rails/generators/rails/app/templates/github/ci.yml.tt +2 -0
- data/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb +1 -1
- data/lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fca089938bf115d240c9b62e4accfcba3bdc04e73448a93187748b1a20661bc
|
4
|
+
data.tar.gz: cedc794ab75fabf3f2e6a74f44cf19b0c36243afe38a4e21d9a063b173e37cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97156cb0b8c0459441fe390bf5bb5731c7746b49a532bdf0474d92ba38fd982e16c257ca02b529ce6548dad90e70d2f49d3e683e24fb2a6268fd2896305529bd
|
7
|
+
data.tar.gz: a08eec8d223b51e6f9962e3a8e984759a8a4a2c58b775bca52511f35ebb32090c23421532fcdfc42a00738bb7c7544a4b7bb082cc40ab6a9ea694a04135f1f12
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ module Rails
|
|
10
10
|
attr_reader :route_sets, :paths, :external_routes, :loaded
|
11
11
|
attr_accessor :eager_load
|
12
12
|
attr_writer :run_after_load_paths # :nodoc:
|
13
|
-
delegate :execute_if_updated, :
|
13
|
+
delegate :execute_if_updated, :updated?, to: :updater
|
14
14
|
|
15
15
|
def initialize
|
16
16
|
@paths = []
|
@@ -21,7 +21,6 @@ module Rails
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def reload!
|
24
|
-
@loaded = true
|
25
24
|
clear!
|
26
25
|
load_paths
|
27
26
|
finalize!
|
@@ -30,6 +29,11 @@ module Rails
|
|
30
29
|
revert
|
31
30
|
end
|
32
31
|
|
32
|
+
def execute
|
33
|
+
@loaded = true
|
34
|
+
updater.execute
|
35
|
+
end
|
36
|
+
|
33
37
|
def execute_unless_loaded
|
34
38
|
unless @loaded
|
35
39
|
execute
|
@@ -5,7 +5,7 @@ require "active_support/core_ext/string/access"
|
|
5
5
|
|
6
6
|
module Rails
|
7
7
|
class BacktraceCleaner < ActiveSupport::BacktraceCleaner # :nodoc:
|
8
|
-
APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|\(\w*\))/
|
8
|
+
APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|\(\w+(?:-\w+)*\))/
|
9
9
|
RENDER_TEMPLATE_PATTERN = /:in [`'].*_\w+_{2,3}\d+_\d+'/
|
10
10
|
|
11
11
|
def initialize
|
@@ -27,14 +27,14 @@ module Rails
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def clean(backtrace, kind = :silent)
|
30
|
-
|
30
|
+
return backtrace if ENV["BACKTRACE"]
|
31
31
|
|
32
32
|
super(backtrace, kind)
|
33
33
|
end
|
34
34
|
alias_method :filter, :clean
|
35
35
|
|
36
36
|
def clean_frame(frame, kind = :silent)
|
37
|
-
|
37
|
+
return frame if ENV["BACKTRACE"]
|
38
38
|
|
39
39
|
super(frame, kind)
|
40
40
|
end
|
data/lib/rails/gem_version.rb
CHANGED
@@ -516,9 +516,9 @@ module Rails
|
|
516
516
|
|
517
517
|
def route_namespace_pattern(namespace)
|
518
518
|
namespace.each_with_index.reverse_each.reduce(nil) do |pattern, (name, i)|
|
519
|
-
|
520
|
-
blank_or_indented_line = "^[ ]*\n|^#{
|
521
|
-
"(?:(?:#{blank_or_indented_line})*?^(#{
|
519
|
+
cumulative_margin = "\\#{i + 1}[ ]{2}"
|
520
|
+
blank_or_indented_line = "^[ ]*\n|^#{cumulative_margin}.*\n"
|
521
|
+
"(?:(?:#{blank_or_indented_line})*?^(#{cumulative_margin})namespace :#{name} do\n#{pattern})?"
|
522
522
|
end.then do |pattern|
|
523
523
|
/^([ ]*).+\.routes\.draw do[ ]*\n#{pattern}/
|
524
524
|
end
|
@@ -110,7 +110,7 @@ module Rails
|
|
110
110
|
desc: "Skip Kamal setup"
|
111
111
|
|
112
112
|
class_option :skip_solid, type: :boolean, default: nil,
|
113
|
-
desc: "Skip Solid Cache
|
113
|
+
desc: "Skip Solid Cache, Queue, and Cable setup"
|
114
114
|
|
115
115
|
class_option :dev, type: :boolean, default: nil,
|
116
116
|
desc: "Set up the #{name} with Gemfile pointing to your Rails checkout"
|
@@ -131,6 +131,7 @@ jobs:
|
|
131
131
|
<%- else -%>
|
132
132
|
run: bin/rails db:test:prepare test test:system
|
133
133
|
<%- end -%>
|
134
|
+
<%- unless options[:api] -%>
|
134
135
|
|
135
136
|
- name: Keep screenshots from failed system tests
|
136
137
|
uses: actions/upload-artifact@v4
|
@@ -139,4 +140,5 @@ jobs:
|
|
139
140
|
name: screenshots
|
140
141
|
path: ${{ github.workspace }}/tmp/screenshots
|
141
142
|
if-no-files-found: ignore
|
143
|
+
<%- end -%>
|
142
144
|
<% end -%>
|
@@ -30,7 +30,7 @@ module Rails
|
|
30
30
|
desc: "Include configuration for Kamal"
|
31
31
|
|
32
32
|
class_option :skip_solid, type: :boolean, default: nil,
|
33
|
-
desc: "Skip Solid Cache
|
33
|
+
desc: "Skip Solid Cache, Queue, and Cable setup"
|
34
34
|
|
35
35
|
source_paths << File.expand_path(File.join(base_name, "app", "templates"), base_root)
|
36
36
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// For format details, see https://
|
2
|
-
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
|
1
|
+
// For format details, see https://containers.dev/implementors/json_reference/.
|
2
|
+
// For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/ruby
|
3
3
|
{
|
4
4
|
"name": "<%= options[:app_name] %>",
|
5
5
|
"dockerComposeFile": "compose.yaml",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
// Configure tool-specific properties.
|
24
24
|
// "customizations": {},
|
25
25
|
|
26
|
-
// Uncomment to connect as root instead. More info: https://
|
26
|
+
// Uncomment to connect as root instead. More info: https://containers.dev/implementors/json_reference/#remoteUser.
|
27
27
|
// "remoteUser": "root",
|
28
28
|
|
29
29
|
<%- if !mounts.empty? -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.0.
|
4
|
+
version: 8.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 8.0.0.
|
19
|
+
version: 8.0.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 8.0.0.
|
26
|
+
version: 8.0.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 8.0.0.
|
33
|
+
version: 8.0.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 8.0.0.
|
40
|
+
version: 8.0.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rackup
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - '='
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 8.0.0.
|
123
|
+
version: 8.0.0.1
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - '='
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 8.0.0.
|
130
|
+
version: 8.0.0.1
|
131
131
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
132
132
|
email: david@loudthinking.com
|
133
133
|
executables:
|
@@ -491,10 +491,10 @@ licenses:
|
|
491
491
|
- MIT
|
492
492
|
metadata:
|
493
493
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
494
|
-
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.
|
495
|
-
documentation_uri: https://api.rubyonrails.org/v8.0.0.
|
494
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.1/railties/CHANGELOG.md
|
495
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.1/
|
496
496
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
497
|
-
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.
|
497
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.1/railties
|
498
498
|
rubygems_mfa_required: 'true'
|
499
499
|
post_install_message:
|
500
500
|
rdoc_options:
|
@@ -513,7 +513,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
513
513
|
- !ruby/object:Gem::Version
|
514
514
|
version: '0'
|
515
515
|
requirements: []
|
516
|
-
rubygems_version: 3.5.
|
516
|
+
rubygems_version: 3.5.22
|
517
517
|
signing_key:
|
518
518
|
specification_version: 4
|
519
519
|
summary: Tools for creating, working with, and running Rails applications.
|