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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12f0f70aec5621a16c0a887c1ac51e1b48f4799f1e177551515343a15bd835ec
4
- data.tar.gz: 893fd4f916d194b88b087b9379d40d3eea00b5a05d70b5972240e631ca4e6481
3
+ metadata.gz: aac00ea79b527ff09999d9100428a4ce9b564a51dbb90ea95ea41fe27b9962a3
4
+ data.tar.gz: cc640796f724d0b50465855c51fb3e069c491ca9968dd2e984d98458bd5f9787
5
5
  SHA512:
6
- metadata.gz: d50609226ceaa3d2d1857485e1fcccf0b590fb360e7f5fc8ed0e90cb10e57441c701da499b2d80f37648c69e2af1b779e2a65c90a314b22c1bb92b8c6e50d698
7
- data.tar.gz: a13411455a3a35fd041c1fb0261013bd6d114adb19955c3da62bd3f124434d5c6ae8f5d9d36a8e4f29aca3bce60609a373fd27f618ae6afb8ac217c187e22efc
6
+ metadata.gz: 9a4b3a9ca04e24e84f44ccfc6fe7a4070f180226e7c2fbfec573af4d1302c7c31f05411579387d4dfa92d9238a270d6fc5388ec1a27f7c92bb7bc83095013939
7
+ data.tar.gz: bf2224f3131e2cdbac0efa98c3d8d2e88388bcec4695d2f95538cfff5f76dded73dbe6d081f0bee4c95a09acf5869cbbbfcbf81d7b4e9e7663f84d2d63bef356
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 8.0.0.alpha9 (September 25, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 8.0.0.alpha8 (September 18, 2024) ##
2
7
 
3
8
  * 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 = "alpha8"
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.alpha8
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.alpha8/activesupport/CHANGELOG.md
500
- documentation_uri: https://api.rubyonrails.org/v8.0.0.alpha8/
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.alpha8/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: