omg-activesupport 8.0.0.alpha7 → 8.0.0.alpha9

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: 77025bff26c8b3b43693eedd99347168b016a8bdbf33fbeebe76cea8285878a3
4
- data.tar.gz: 104b900ff396e40ba6d28a27fab8f04f04ca84db082e6858678a42da5aeeb103
3
+ metadata.gz: aac00ea79b527ff09999d9100428a4ce9b564a51dbb90ea95ea41fe27b9962a3
4
+ data.tar.gz: cc640796f724d0b50465855c51fb3e069c491ca9968dd2e984d98458bd5f9787
5
5
  SHA512:
6
- metadata.gz: 44b5ded88399b70f5325251ce09913fe437d7c0c75050f22d50dd8ff9828bd2e4142035921ae552e5562d022ae2e46b92fd15b2df1cb1897a285d83472c16b73
7
- data.tar.gz: e33286306585a63317a3291e0fab85cd4c633ca582c8f1813f6cbcb9d6449d34e231b78e91fcc706f73c63a8a9e07d64ad3cd2ffd42aa30fd1ac901a62262214
6
+ metadata.gz: 9a4b3a9ca04e24e84f44ccfc6fe7a4070f180226e7c2fbfec573af4d1302c7c31f05411579387d4dfa92d9238a270d6fc5388ec1a27f7c92bb7bc83095013939
7
+ data.tar.gz: bf2224f3131e2cdbac0efa98c3d8d2e88388bcec4695d2f95538cfff5f76dded73dbe6d081f0bee4c95a09acf5869cbbbfcbf81d7b4e9e7663f84d2d63bef356
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Rails 8.0.0.alpha9 (September 25, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 8.0.0.alpha8 (September 18, 2024) ##
7
+
8
+ * No changes.
9
+
10
+
1
11
  ## Rails 8.0.0.alpha7 (September 18, 2024) ##
2
12
 
3
13
  * No changes.
@@ -945,9 +945,12 @@ module ActiveSupport
945
945
  #
946
946
  # namespace_key 'foo', namespace: -> { 'cache' }
947
947
  # # => 'cache:foo'
948
- def namespace_key(key, options = nil)
949
- options = merged_options(options)
950
- namespace = options[:namespace]
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
@@ -10,7 +10,7 @@ module ActiveSupport
10
10
  MAJOR = 8
11
11
  MINOR = 0
12
12
  TINY = 0
13
- PRE = "alpha7"
13
+ PRE = "alpha9"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -14,15 +14,18 @@ module I18n
14
14
 
15
15
  config.eager_load_namespaces << I18n
16
16
 
17
- # Set the i18n configuration after initialization since a lot of
18
- # configuration is still usually done in application initializers.
19
- config.after_initialize do |app|
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
- # Trigger i18n config before any eager loading has happened
24
- # so it's ready if any classes require it when eager loaded.
25
- config.before_eager_load do |app|
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.alpha7
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-18 00:00:00.000000000 Z
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.alpha7/activesupport/CHANGELOG.md
500
- documentation_uri: https://api.rubyonrails.org/v8.0.0.alpha7/
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.alpha7/activesupport
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: