activesupport 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e7c1720f83cebc94a181cd94c65ea558ed9e10a4635545893dd5e1bf054f27a
|
4
|
+
data.tar.gz: f61b99bf85b449f9b5262fd32388bf378e5ecd949e9f35da00569025d9c4edda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a363047116d2e984f879cbc39b674faa1deac4791ee325eb616aeb0b482c8c06ab134cabff46ddd6449fb768ff4ca2b06d5f7bf722eb7cb210d6f7c364d94980
|
7
|
+
data.tar.gz: 47ca432654c35b2d8359c42d76e9dc517b8b797a5eac8efb74f5ae59fbcbbedef636a1c3df3891667bd2aefe0db7dd09ef1d1eab855438cef9c03d309f8f97e5
|
data/CHANGELOG.md
CHANGED
@@ -202,5 +202,17 @@ module ActiveSupport
|
|
202
202
|
def dispatch(&block)
|
203
203
|
@broadcasts.each { |logger| block.call(logger) }
|
204
204
|
end
|
205
|
+
|
206
|
+
def method_missing(name, *args)
|
207
|
+
loggers = @broadcasts.select { |logger| logger.respond_to?(name) }
|
208
|
+
|
209
|
+
if loggers.none?
|
210
|
+
super(name, *args)
|
211
|
+
elsif loggers.one?
|
212
|
+
loggers.first.send(name, *args)
|
213
|
+
else
|
214
|
+
loggers.map { |logger| logger.send(name, *args) }
|
215
|
+
end
|
216
|
+
end
|
205
217
|
end
|
206
218
|
end
|
@@ -14,9 +14,16 @@ module ActiveSupport
|
|
14
14
|
# ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
|
15
15
|
# # => true
|
16
16
|
def self.logger_outputs_to?(logger, *sources)
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
loggers = if logger.is_a?(BroadcastLogger)
|
18
|
+
logger.broadcasts
|
19
|
+
else
|
20
|
+
[logger]
|
21
|
+
end
|
22
|
+
|
23
|
+
logdevs = loggers.map { |logger| logger.instance_variable_get(:@logdev) }
|
24
|
+
logger_sources = logdevs.filter_map { |logdev| logdev.dev if logdev.respond_to?(:dev) }
|
25
|
+
|
26
|
+
(sources & logger_sources).any?
|
20
27
|
end
|
21
28
|
|
22
29
|
def initialize(*args, **kwargs)
|
@@ -88,7 +88,7 @@ module ActiveSupport
|
|
88
88
|
initializer "active_support.initialize_time_zone" do |app|
|
89
89
|
begin
|
90
90
|
TZInfo::DataSource.get
|
91
|
-
rescue TZInfo::DataSourceNotFound
|
91
|
+
rescue TZInfo::DataSourceNotFound => e
|
92
92
|
raise e.exception "tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install"
|
93
93
|
end
|
94
94
|
require "active_support/core_ext/time/zones"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.0.
|
4
|
+
version: 7.1.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -446,10 +446,10 @@ licenses:
|
|
446
446
|
- MIT
|
447
447
|
metadata:
|
448
448
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
449
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.0.
|
450
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.0.
|
449
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.0.rc2/activesupport/CHANGELOG.md
|
450
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.0.rc2/
|
451
451
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
452
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.0.
|
452
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.0.rc2/activesupport
|
453
453
|
rubygems_mfa_required: 'true'
|
454
454
|
post_install_message:
|
455
455
|
rdoc_options:
|