railties 7.1.0.rc1 → 7.1.0.rc2

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: 4d9c922d487cf3c067c1a65e48220c5073060674bc98fd7d1bb8b1fd8ff9a557
4
+ data.tar.gz: 47298c50c11159f36d8f213fffc70aa1d416c114c1ee4a48d980e521ae88fb5c
5
5
  SHA512:
6
- metadata.gz: ac25e791cb1d7209726a566fbb687287ca55a4ac6b1f9e87cc8234986798cd8efa0ac3678fa2d5d9adcc4c8f2a280ce9eaeeebb34f714eecbf9c8311378b0b27
7
- data.tar.gz: 00afe64975a58ba819c91b562da2d710216ec160e48ff05bc281c2f87dabcf4bac422020d1d356791b9cff030a0027ba7098880f7b4b5b4f7963ad775d73bcc8
6
+ metadata.gz: 1479a364eb0e3afd7b3f8824819fe96a6145b7e144ffef4956d1f9083e932ff555432622897d6f845f7848d2b90e67868ad376fefc1bb56d7ba5789fa34975a5
7
+ data.tar.gz: 96ee0b4198d8b5d725ab27dd2caae58958fad652c11d4823c4c3107f39a89620b70e4ea05587100c862c5982d2108e05c7acdd803b7f4b3604022994f31f26dd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
2
+
3
+ * Always set the Rails logger to be an instance of `ActiveSupport::BroadcastLogger`.
4
+
5
+ *Edouard Chin*
6
+
7
+
1
8
  ## Rails 7.1.0.rc1 (September 27, 2023) ##
2
9
 
3
10
  * Require `concurrent-ruby` in `config/puma.rb` so that Puma can boot in
@@ -56,6 +56,10 @@ 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
62
+
59
63
  unless config.consider_all_requests_local
60
64
  Rails.error.logger = Rails.logger
61
65
  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 = "rc2"
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"
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.rc2
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-01 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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
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.rc2
131
131
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
132
132
  email: david@loudthinking.com
133
133
  executables:
@@ -457,10 +457,10 @@ licenses:
457
457
  - MIT
458
458
  metadata:
459
459
  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/
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/
462
462
  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
463
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.0.rc2/railties
464
464
  rubygems_mfa_required: 'true'
465
465
  post_install_message:
466
466
  rdoc_options: