railties 7.1.0.rc2 → 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: 4d9c922d487cf3c067c1a65e48220c5073060674bc98fd7d1bb8b1fd8ff9a557
4
- data.tar.gz: 47298c50c11159f36d8f213fffc70aa1d416c114c1ee4a48d980e521ae88fb5c
3
+ metadata.gz: ef62f9bd93d210f9dab067b6c425e87856270615f9416e347c74d833453096b2
4
+ data.tar.gz: f405f87214572e3e77d2c6916342dafd8809a6e956518040adb57938ea2d9e19
5
5
  SHA512:
6
- metadata.gz: 1479a364eb0e3afd7b3f8824819fe96a6145b7e144ffef4956d1f9083e932ff555432622897d6f845f7848d2b90e67868ad376fefc1bb56d7ba5789fa34975a5
7
- data.tar.gz: 96ee0b4198d8b5d725ab27dd2caae58958fad652c11d4823c4c3107f39a89620b70e4ea05587100c862c5982d2108e05c7acdd803b7f4b3604022994f31f26dd
6
+ metadata.gz: ac990f46b016fbc43c559511596e6c6e84a911dd1d5ae3cee65746cefd9f84691979e55f02c5d0a50da4d55720b44d72609db3da6fe9d507927d64a7030a6c5a
7
+ data.tar.gz: f8bf05ced8bfdc32dd941eaac774b9daa70878480d9c3331b02450c4bd5aa4f1cc98c9cba5840a11f2c0e3c2880c822b045bb5f751992ac5eaf461c333f33f07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
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
+
8
+ ## Rails 7.1.0 (October 05, 2023) ##
9
+
10
+ * No changes.
11
+
12
+
1
13
  ## Rails 7.1.0.rc2 (October 01, 2023) ##
2
14
 
3
15
  * Always set the Rails logger to be an instance of `ActiveSupport::BroadcastLogger`.
@@ -56,9 +56,11 @@ module Rails
56
56
  end
57
57
  Rails.logger.level = ActiveSupport::Logger.const_get(config.log_level.to_s.upcase)
58
58
 
59
- broadcast_logger = ActiveSupport::BroadcastLogger.new(Rails.logger)
60
- broadcast_logger.formatter = Rails.logger.formatter
61
- Rails.logger = broadcast_logger
59
+ unless Rails.logger.is_a?(ActiveSupport::BroadcastLogger)
60
+ broadcast_logger = ActiveSupport::BroadcastLogger.new(Rails.logger)
61
+ broadcast_logger.formatter = Rails.logger.formatter
62
+ Rails.logger = broadcast_logger
63
+ end
62
64
 
63
65
  unless config.consider_all_requests_local
64
66
  Rails.error.logger = Rails.logger
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
13
- PRE = "rc2"
12
+ TINY = 1
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  <% unless skip_active_record? -%>
4
4
  # If running the rails server then create or migrate existing database
5
- if [ "${*}" == "./bin/rails server" ]; then
5
+ if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
6
6
  ./bin/rails db:prepare
7
7
  fi
8
8
 
@@ -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
@@ -14,14 +14,9 @@ require "rails/generators/test_case"
14
14
 
15
15
  require "active_support/testing/autorun"
16
16
 
17
- if defined?(ActiveRecord::Base)
18
- begin
19
- ActiveRecord::Migration.maintain_test_schema!
20
- rescue ActiveRecord::PendingMigrationError => e
21
- puts e.to_s.strip
22
- exit 1
23
- end
17
+ require "rails/testing/maintain_test_schema"
24
18
 
19
+ if defined?(ActiveRecord::Base)
25
20
  ActiveSupport.on_load(:active_support_test_case) do
26
21
  include ActiveRecord::TestDatabases
27
22
  include ActiveRecord::TestFixtures
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ if defined?(ActiveRecord::Base)
4
+ begin
5
+ ActiveRecord::Migration.maintain_test_schema!
6
+ rescue ActiveRecord::PendingMigrationError => e
7
+ puts e.to_s.strip
8
+ exit 1
9
+ end
10
+
11
+ if Rails.configuration.eager_load
12
+ ActiveRecord::Base.descendants.each do |model|
13
+ model.load_schema if !model.abstract_class? && model.table_exists?
14
+ end
15
+ end
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.rc2
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-01 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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
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:
@@ -450,6 +450,7 @@ files:
450
450
  - lib/rails/test_unit/runner.rb
451
451
  - lib/rails/test_unit/test_parser.rb
452
452
  - lib/rails/test_unit/testing.rake
453
+ - lib/rails/testing/maintain_test_schema.rb
453
454
  - lib/rails/version.rb
454
455
  - lib/rails/welcome_controller.rb
455
456
  homepage: https://rubyonrails.org
@@ -457,10 +458,10 @@ licenses:
457
458
  - MIT
458
459
  metadata:
459
460
  bug_tracker_uri: https://github.com/rails/rails/issues
460
- changelog_uri: https://github.com/rails/rails/blob/v7.1.0.rc2/railties/CHANGELOG.md
461
- documentation_uri: https://api.rubyonrails.org/v7.1.0.rc2/
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/
462
463
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
463
- source_code_uri: https://github.com/rails/rails/tree/v7.1.0.rc2/railties
464
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.1/railties
464
465
  rubygems_mfa_required: 'true'
465
466
  post_install_message:
466
467
  rdoc_options:
@@ -475,9 +476,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
475
476
  version: 2.7.0
476
477
  required_rubygems_version: !ruby/object:Gem::Requirement
477
478
  requirements:
478
- - - ">"
479
+ - - ">="
479
480
  - !ruby/object:Gem::Version
480
- version: 1.3.1
481
+ version: '0'
481
482
  requirements: []
482
483
  rubygems_version: 3.4.18
483
484
  signing_key: