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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd1cd6384b8820c453ae775a06a575622d23da73a4bac3f3c13849f080188a1d
4
- data.tar.gz: '095ea07595909b1a3b8f44c1977f3637438a17e3e26ff70c7e21351566e402c3'
3
+ metadata.gz: ef62f9bd93d210f9dab067b6c425e87856270615f9416e347c74d833453096b2
4
+ data.tar.gz: f405f87214572e3e77d2c6916342dafd8809a6e956518040adb57938ea2d9e19
5
5
  SHA512:
6
- metadata.gz: 2a5a2c4021ae3d0a6b446e7f0ee32e6e9e04678d0b64c49804f24de41ac5005d8342330153b396645028559f97011de81eeac82407c426dcaca020a6d03c2fc2
7
- data.tar.gz: 57191b9e25cc91fc759bdd308acbcedcc35488e0157d8f8e93daa78686126829115dbf63e3cc5848ae38719f4b9f1ef301ec92a6369c8aa1e1b930ccd0acc107
6
+ metadata.gz: ac990f46b016fbc43c559511596e6c6e84a911dd1d5ae3cee65746cefd9f84691979e55f02c5d0a50da4d55720b44d72609db3da6fe9d507927d64a7030a6c5a
7
+ data.tar.gz: f8bf05ced8bfdc32dd941eaac774b9daa70878480d9c3331b02450c4bd5aa4f1cc98c9cba5840a11f2c0e3c2880c822b045bb5f751992ac5eaf461c333f33f07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## Rails 7.1.1 (October 11, 2023) ##
2
+
3
+ * Ensures the Rails generated Dockerfile uses correct ruby version and matches Gemfile.
4
+
5
+ *Abhay Nikam*
6
+
7
+
1
8
  ## Rails 7.1.0 (October 05, 2023) ##
2
9
 
3
10
  * No changes.
@@ -9,7 +9,7 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -32,21 +32,27 @@ module Rails
32
32
  @name = name
33
33
  end
34
34
 
35
- # GET index
35
+ # Used for:
36
+ #
37
+ # * GET +index+
36
38
  def self.all(klass)
37
39
  "#{klass}.all"
38
40
  end
39
41
 
40
- # GET show
41
- # GET edit
42
- # PATCH/PUT update
43
- # DELETE destroy
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
- # GET new
49
- # POST create
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
- # POST create
64
+ # Used for:
65
+ #
66
+ # * POST +create+
59
67
  def save
60
68
  "#{name}.save"
61
69
  end
62
70
 
63
- # PATCH/PUT update
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
- # POST create
69
- # PATCH/PUT update
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
- # DELETE destroy
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=<%= Gem.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 postgres.
16
- # To create additional roles in postgres see `$ createuser --help`.
17
- # When left blank, postgres will use the default role. This is
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 postgres role (username).
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 postgres.
27
- # To create additional roles in postgres see `$ createuser --help`.
28
- # When left blank, postgres will use the default role. This is
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 postgres role (username).
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
@@ -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
@@ -49,7 +49,7 @@ module Rails
49
49
  end
50
50
 
51
51
  def html_status(color:)
52
- %(<html><body style="background-color: #{color}"></body></html>).html_safe
52
+ %(<!DOCTYPE html><html><body style="background-color: #{color}"></body></html>).html_safe
53
53
  end
54
54
  end
55
55
  end
@@ -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 unless model.abstract_class?
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.0
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-05 00:00:00.000000000 Z
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.0
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.0
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.0
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.0
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.0
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.0
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.0/railties/CHANGELOG.md
462
- documentation_uri: https://api.rubyonrails.org/v7.1.0/
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.0/railties
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: