activesupport 7.1.3.1 → 7.1.3.2

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: 0caeb01dd45687820a3b9376d7b57a90f881651a02ee49f36ed88377621c8fdd
4
- data.tar.gz: 52d9f59bfea168914f2350656069e28ce6b6d7d741378bb05faaabf8ec86e06b
3
+ metadata.gz: 0affba854f71548d6894f8579e4d883ffbd46a344f1bc88c6fc30a162a3ba5df
4
+ data.tar.gz: ec47f22675d02fd8654acadcb0cfa59966e0974fc3024e2cc19c1def0f145a95
5
5
  SHA512:
6
- metadata.gz: 04b3030290ddad933f276d9be48c481fe5df986af908f53cda61051e3501b2e745280d98298f491493fe494e392d7217fb9ff9abad8c01e5890a05f97c71ffc2
7
- data.tar.gz: ae5d9cc0ee3ffc76b69358504ea2c18de02823e69da2f09bf5ab15c8c9cf74b01aedf54956669b48b03c97e8cd997fd34fa82be8b855f136d7f419463498eb96
6
+ metadata.gz: 3415a9f30405f3d53f298e8599a62534f6015909fb67cb473b85fedfb21e1253caddf7137207ab401738166085533e4e53b0c0190c9af26b87179e28fba9239f
7
+ data.tar.gz: 1717878d06271a68be9622c7e526884ceaa908c31bb9d1807f24b5396c45be631b8bb190b6f10543bdd7ec80119aa8ab66a2e3fe4379cb97a3e7480074e0cb13
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 7.1.3.2 (February 21, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 7.1.3.1 (February 21, 2024) ##
2
7
 
3
8
  * No changes.
@@ -10,7 +10,7 @@ module ActiveSupport
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
12
  TINY = 3
13
- PRE = "1"
13
+ PRE = "2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -7,8 +7,18 @@ module ActiveSupport
7
7
  def translate(key, **options)
8
8
  if html_safe_translation_key?(key)
9
9
  html_safe_options = html_escape_translation_options(options)
10
- translation = I18n.translate(key, **html_safe_options)
11
- html_safe_translation(translation)
10
+
11
+ exception = false
12
+ exception_handler = ->(*args) do
13
+ exception = true
14
+ I18n.exception_handler.call(*args)
15
+ end
16
+ translation = I18n.translate(key, **html_safe_options, exception_handler: exception_handler)
17
+ if exception
18
+ translation
19
+ else
20
+ html_safe_translation(translation)
21
+ end
12
22
  else
13
23
  I18n.translate(key, **options)
14
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.3.1
4
+ version: 7.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -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.3.1/activesupport/CHANGELOG.md
450
- documentation_uri: https://api.rubyonrails.org/v7.1.3.1/
449
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.3.2/activesupport/CHANGELOG.md
450
+ documentation_uri: https://api.rubyonrails.org/v7.1.3.2/
451
451
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
452
- source_code_uri: https://github.com/rails/rails/tree/v7.1.3.1/activesupport
452
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.3.2/activesupport
453
453
  rubygems_mfa_required: 'true'
454
454
  post_install_message:
455
455
  rdoc_options:
@@ -468,7 +468,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
468
468
  - !ruby/object:Gem::Version
469
469
  version: '0'
470
470
  requirements: []
471
- rubygems_version: 3.4.10
471
+ rubygems_version: 3.5.3
472
472
  signing_key:
473
473
  specification_version: 4
474
474
  summary: A toolkit of support libraries and Ruby core extensions extracted from the