railties 7.1.0 → 7.1.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 +7 -0
- data/lib/rails/gem_version.rb +1 -1
- data/lib/rails/generators/active_model.rb +26 -12
- data/lib/rails/generators/rails/app/templates/Dockerfile.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml.tt +4 -4
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt +4 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt +2 -2
- data/lib/rails/health_controller.rb +1 -1
- data/lib/rails/testing/maintain_test_schema.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef62f9bd93d210f9dab067b6c425e87856270615f9416e347c74d833453096b2
|
4
|
+
data.tar.gz: f405f87214572e3e77d2c6916342dafd8809a6e956518040adb57938ea2d9e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac990f46b016fbc43c559511596e6c6e84a911dd1d5ae3cee65746cefd9f84691979e55f02c5d0a50da4d55720b44d72609db3da6fe9d507927d64a7030a6c5a
|
7
|
+
data.tar.gz: f8bf05ced8bfdc32dd941eaac774b9daa70878480d9c3331b02450c4bd5aa4f1cc98c9cba5840a11f2c0e3c2880c822b045bb5f751992ac5eaf461c333f33f07
|
data/CHANGELOG.md
CHANGED
data/lib/rails/gem_version.rb
CHANGED
@@ -32,21 +32,27 @@ module Rails
|
|
32
32
|
@name = name
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
35
|
+
# Used for:
|
36
|
+
#
|
37
|
+
# * GET +index+
|
36
38
|
def self.all(klass)
|
37
39
|
"#{klass}.all"
|
38
40
|
end
|
39
41
|
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
42
|
+
# Used for:
|
43
|
+
#
|
44
|
+
# * GET +show+
|
45
|
+
# * GET +edit+
|
46
|
+
# * PATCH / PUT +update+
|
47
|
+
# * DELETE +destroy+
|
44
48
|
def self.find(klass, params = nil)
|
45
49
|
"#{klass}.find(#{params})"
|
46
50
|
end
|
47
51
|
|
48
|
-
#
|
49
|
-
#
|
52
|
+
# Used for:
|
53
|
+
#
|
54
|
+
# * GET +new+
|
55
|
+
# * POST +create+
|
50
56
|
def self.build(klass, params = nil)
|
51
57
|
if params
|
52
58
|
"#{klass}.new(#{params})"
|
@@ -55,23 +61,31 @@ module Rails
|
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|
58
|
-
#
|
64
|
+
# Used for:
|
65
|
+
#
|
66
|
+
# * POST +create+
|
59
67
|
def save
|
60
68
|
"#{name}.save"
|
61
69
|
end
|
62
70
|
|
63
|
-
#
|
71
|
+
# Used for:
|
72
|
+
#
|
73
|
+
# * PATCH / PUT +update+
|
64
74
|
def update(params = nil)
|
65
75
|
"#{name}.update(#{params})"
|
66
76
|
end
|
67
77
|
|
68
|
-
#
|
69
|
-
#
|
78
|
+
# Used for:
|
79
|
+
#
|
80
|
+
# * POST +create+
|
81
|
+
# * PATCH / PUT +update+
|
70
82
|
def errors
|
71
83
|
"#{name}.errors"
|
72
84
|
end
|
73
85
|
|
74
|
-
#
|
86
|
+
# Used for:
|
87
|
+
#
|
88
|
+
# * DELETE +destroy+
|
75
89
|
def destroy
|
76
90
|
"#{name}.destroy!"
|
77
91
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# syntax = docker/dockerfile:1
|
2
2
|
|
3
3
|
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
|
4
|
-
ARG RUBY_VERSION=<%=
|
4
|
+
ARG RUBY_VERSION=<%= gem_ruby_version %>
|
5
5
|
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
|
6
6
|
|
7
7
|
# Rails app lives here
|
@@ -12,13 +12,13 @@ development:
|
|
12
12
|
<<: *default
|
13
13
|
database: <%= app_name %>_development
|
14
14
|
|
15
|
-
# The specified database role being used to connect to
|
16
|
-
# To create additional roles in
|
17
|
-
# When left blank,
|
15
|
+
# The specified database role being used to connect to PostgreSQL.
|
16
|
+
# To create additional roles in PostgreSQL see `$ createuser --help`.
|
17
|
+
# When left blank, PostgreSQL will use the default role. This is
|
18
18
|
# the same name as the operating system user running Rails.
|
19
19
|
#username: <%= app_name %>
|
20
20
|
|
21
|
-
# The password associated with the
|
21
|
+
# The password associated with the PostgreSQL role (username).
|
22
22
|
#password:
|
23
23
|
|
24
24
|
# Connect on a TCP socket. Omitted by default since the client uses a
|
@@ -23,13 +23,13 @@ development:
|
|
23
23
|
<<: *default
|
24
24
|
database: <%= app_name %>_development
|
25
25
|
|
26
|
-
# The specified database role being used to connect to
|
27
|
-
# To create additional roles in
|
28
|
-
# When left blank,
|
26
|
+
# The specified database role being used to connect to PostgreSQL.
|
27
|
+
# To create additional roles in PostgreSQL see `$ createuser --help`.
|
28
|
+
# When left blank, PostgreSQL will use the default role. This is
|
29
29
|
# the same name as the operating system user running Rails.
|
30
30
|
#username: <%= app_name %>
|
31
31
|
|
32
|
-
# The password associated with the
|
32
|
+
# The password associated with the PostgreSQL role (username).
|
33
33
|
#password:
|
34
34
|
|
35
35
|
# Connect on a TCP socket. Omitted by default since the client uses a
|
data/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
4
|
-
# Use this to limit dissemination of sensitive information.
|
3
|
+
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
4
|
+
# Use this to limit dissemination of sensitive information.
|
5
5
|
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
6
6
|
Rails.application.config.filter_parameters += [
|
7
7
|
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
|
@@ -10,7 +10,7 @@ if defined?(ActiveRecord::Base)
|
|
10
10
|
|
11
11
|
if Rails.configuration.eager_load
|
12
12
|
ActiveRecord::Base.descendants.each do |model|
|
13
|
-
model.load_schema
|
13
|
+
model.load_schema if !model.abstract_class? && model.table_exists?
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
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: 7.1.
|
4
|
+
version: 7.1.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: 2023-10-
|
11
|
+
date: 2023-10-11 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: 7.1.
|
19
|
+
version: 7.1.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: 7.1.
|
26
|
+
version: 7.1.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: 7.1.
|
33
|
+
version: 7.1.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: 7.1.
|
40
|
+
version: 7.1.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: 7.1.
|
123
|
+
version: 7.1.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: 7.1.
|
130
|
+
version: 7.1.1
|
131
131
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
132
132
|
email: david@loudthinking.com
|
133
133
|
executables:
|
@@ -458,10 +458,10 @@ licenses:
|
|
458
458
|
- MIT
|
459
459
|
metadata:
|
460
460
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
461
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
462
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
461
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.1/railties/CHANGELOG.md
|
462
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.1/
|
463
463
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
464
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
464
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.1/railties
|
465
465
|
rubygems_mfa_required: 'true'
|
466
466
|
post_install_message:
|
467
467
|
rdoc_options:
|