railties 7.1.0.rc1 → 7.1.0

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: 3416ad21bc1fea96fde2559809ea0a6308235550c8a2c6eba98bce7fa80d8593
4
- data.tar.gz: 79563508482421776e153045f0070f94b3707ff209be5495da350c9f4ece9bbc
3
+ metadata.gz: bd1cd6384b8820c453ae775a06a575622d23da73a4bac3f3c13849f080188a1d
4
+ data.tar.gz: '095ea07595909b1a3b8f44c1977f3637438a17e3e26ff70c7e21351566e402c3'
5
5
  SHA512:
6
- metadata.gz: ac25e791cb1d7209726a566fbb687287ca55a4ac6b1f9e87cc8234986798cd8efa0ac3678fa2d5d9adcc4c8f2a280ce9eaeeebb34f714eecbf9c8311378b0b27
7
- data.tar.gz: 00afe64975a58ba819c91b562da2d710216ec160e48ff05bc281c2f87dabcf4bac422020d1d356791b9cff030a0027ba7098880f7b4b5b4f7963ad775d73bcc8
6
+ metadata.gz: 2a5a2c4021ae3d0a6b446e7f0ee32e6e9e04678d0b64c49804f24de41ac5005d8342330153b396645028559f97011de81eeac82407c426dcaca020a6d03c2fc2
7
+ data.tar.gz: 57191b9e25cc91fc759bdd308acbcedcc35488e0157d8f8e93daa78686126829115dbf63e3cc5848ae38719f4b9f1ef301ec92a6369c8aa1e1b930ccd0acc107
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## Rails 7.1.0 (October 05, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
7
+
8
+ * Always set the Rails logger to be an instance of `ActiveSupport::BroadcastLogger`.
9
+
10
+ *Edouard Chin*
11
+
12
+
1
13
  ## Rails 7.1.0.rc1 (September 27, 2023) ##
2
14
 
3
15
  * Require `concurrent-ruby` in `config/puma.rb` so that Puma can boot in
@@ -56,6 +56,12 @@ module Rails
56
56
  end
57
57
  Rails.logger.level = ActiveSupport::Logger.const_get(config.log_level.to_s.upcase)
58
58
 
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
64
+
59
65
  unless config.consider_all_requests_local
60
66
  Rails.error.logger = Rails.logger
61
67
  end
@@ -80,7 +80,7 @@ module Rails
80
80
  console.level = Rails.logger.level
81
81
 
82
82
  unless ActiveSupport::Logger.logger_outputs_to?(Rails.logger, STDERR, STDOUT)
83
- Rails.logger = ActiveSupport::BroadcastLogger.new(Rails.logger, console)
83
+ Rails.logger.broadcast_to(console)
84
84
  end
85
85
  end
86
86
 
@@ -10,7 +10,7 @@ module Rails
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
12
  TINY = 0
13
- PRE = "rc1"
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -345,6 +345,10 @@ module Rails
345
345
  options[:skip_active_storage]
346
346
  end
347
347
 
348
+ def skip_action_cable? # :doc:
349
+ options[:skip_action_cable]
350
+ end
351
+
348
352
  def skip_action_mailer? # :doc:
349
353
  options[:skip_action_mailer]
350
354
  end
@@ -51,7 +51,7 @@ group :development do
51
51
  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
52
52
  # gem "spring"
53
53
 
54
- <%- if RUBY_VERSION >= "3.1" -%>
54
+ <%- if RUBY_VERSION >= "3.1" && RUBY_VERSION < "3.2" -%>
55
55
  gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
56
56
  <%- end -%>
57
57
  end
@@ -80,9 +80,11 @@ Rails.application.configure do
80
80
  # Annotate rendered view with file names.
81
81
  # config.action_view.annotate_rendered_view_with_filenames = true
82
82
 
83
+ <%- unless skip_action_cable? -%>
83
84
  # Uncomment if you wish to allow Action Cable access from any origin.
84
85
  # config.action_cable.disable_request_forgery_protection = true
85
86
 
87
+ <%- end -%>
86
88
  # Raise error when a before_action's only/except options reference missing actions
87
89
  config.action_controller.raise_on_missing_callback_actions = true
88
90
  end
@@ -45,7 +45,7 @@ Rails.application.configure do
45
45
  config.active_storage.service = :local
46
46
 
47
47
  <%- end -%>
48
- <%- unless options[:skip_action_cable] -%>
48
+ <%- unless skip_action_cable? -%>
49
49
  # Mount Action Cable outside main process or domain.
50
50
  # config.action_cable.mount_path = nil
51
51
  # config.action_cable.url = "wss://example.com/cable"
@@ -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
 
@@ -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 unless model.abstract_class?
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.rc1
4
+ version: 7.1.0
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-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-05 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.rc1
19
+ version: 7.1.0
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.rc1
26
+ version: 7.1.0
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.rc1
33
+ version: 7.1.0
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.rc1
40
+ version: 7.1.0
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.rc1
123
+ version: 7.1.0
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.rc1
130
+ version: 7.1.0
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.rc1/railties/CHANGELOG.md
461
- documentation_uri: https://api.rubyonrails.org/v7.1.0.rc1/
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/
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.rc1/railties
464
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.0/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: