omg-activesupport 8.0.0.alpha8 → 8.0.0.alpha9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_support/cache.rb +6 -3
- data/lib/active_support/gem_version.rb +1 -1
- data/lib/active_support/i18n_railtie.rb +9 -6
- data/lib/active_support/tagged_logging.rb +5 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aac00ea79b527ff09999d9100428a4ce9b564a51dbb90ea95ea41fe27b9962a3
|
4
|
+
data.tar.gz: cc640796f724d0b50465855c51fb3e069c491ca9968dd2e984d98458bd5f9787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4b3a9ca04e24e84f44ccfc6fe7a4070f180226e7c2fbfec573af4d1302c7c31f05411579387d4dfa92d9238a270d6fc5388ec1a27f7c92bb7bc83095013939
|
7
|
+
data.tar.gz: bf2224f3131e2cdbac0efa98c3d8d2e88388bcec4695d2f95538cfff5f76dded73dbe6d081f0bee4c95a09acf5869cbbbfcbf81d7b4e9e7663f84d2d63bef356
|
data/CHANGELOG.md
CHANGED
data/lib/active_support/cache.rb
CHANGED
@@ -945,9 +945,12 @@ module ActiveSupport
|
|
945
945
|
#
|
946
946
|
# namespace_key 'foo', namespace: -> { 'cache' }
|
947
947
|
# # => 'cache:foo'
|
948
|
-
def namespace_key(key,
|
949
|
-
|
950
|
-
|
948
|
+
def namespace_key(key, call_options = nil)
|
949
|
+
namespace = if call_options&.key?(:namespace)
|
950
|
+
call_options[:namespace]
|
951
|
+
else
|
952
|
+
options[:namespace]
|
953
|
+
end
|
951
954
|
|
952
955
|
if namespace.respond_to?(:call)
|
953
956
|
namespace = namespace.call
|
@@ -14,15 +14,18 @@ module I18n
|
|
14
14
|
|
15
15
|
config.eager_load_namespaces << I18n
|
16
16
|
|
17
|
-
#
|
18
|
-
#
|
19
|
-
config.
|
17
|
+
# Make sure i18n is ready before eager loading, in case any eager loaded
|
18
|
+
# code needs it.
|
19
|
+
config.before_eager_load do |app|
|
20
20
|
I18n::Railtie.initialize_i18n(app)
|
21
21
|
end
|
22
22
|
|
23
|
-
#
|
24
|
-
#
|
25
|
-
|
23
|
+
# i18n initialization needs to run after application initialization, since
|
24
|
+
# initializers may configure i18n.
|
25
|
+
#
|
26
|
+
# If the application eager loaded, this was done on before_eager_load. The
|
27
|
+
# hook is still OK, though, because initialize_i18n is idempotent.
|
28
|
+
config.after_initialize do |app|
|
26
29
|
I18n::Railtie.initialize_i18n(app)
|
27
30
|
end
|
28
31
|
|
@@ -113,6 +113,11 @@ module ActiveSupport
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# Returns an `ActiveSupport::Logger` that has already been wrapped with tagged logging concern.
|
117
|
+
def self.logger(*args, **kwargs)
|
118
|
+
new ActiveSupport::Logger.new(*args, **kwargs)
|
119
|
+
end
|
120
|
+
|
116
121
|
def self.new(logger)
|
117
122
|
logger = logger.clone
|
118
123
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omg-activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.0.
|
4
|
+
version: 8.0.0.alpha9
|
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: 2024-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -496,10 +496,10 @@ licenses:
|
|
496
496
|
- MIT
|
497
497
|
metadata:
|
498
498
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
499
|
-
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.
|
500
|
-
documentation_uri: https://api.rubyonrails.org/v8.0.0.
|
499
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.alpha9/activesupport/CHANGELOG.md
|
500
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.alpha9/
|
501
501
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
502
|
-
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.
|
502
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.alpha9/activesupport
|
503
503
|
rubygems_mfa_required: 'true'
|
504
504
|
post_install_message:
|
505
505
|
rdoc_options:
|