activesupport 7.2.2.2 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +143 -0
  3. data/README.rdoc +1 -1
  4. data/lib/active_support/backtrace_cleaner.rb +1 -1
  5. data/lib/active_support/broadcast_logger.rb +61 -74
  6. data/lib/active_support/cache/file_store.rb +2 -2
  7. data/lib/active_support/cache/mem_cache_store.rb +13 -15
  8. data/lib/active_support/cache/memory_store.rb +5 -5
  9. data/lib/active_support/cache/null_store.rb +2 -2
  10. data/lib/active_support/cache/redis_cache_store.rb +1 -1
  11. data/lib/active_support/cache/strategy/local_cache.rb +56 -20
  12. data/lib/active_support/cache.rb +3 -3
  13. data/lib/active_support/callbacks.rb +3 -2
  14. data/lib/active_support/core_ext/benchmark.rb +1 -0
  15. data/lib/active_support/core_ext/class/attribute.rb +2 -2
  16. data/lib/active_support/core_ext/date_time/conversions.rb +4 -2
  17. data/lib/active_support/core_ext/enumerable.rb +17 -5
  18. data/lib/active_support/core_ext/erb/util.rb +2 -2
  19. data/lib/active_support/core_ext/module/introspection.rb +3 -0
  20. data/lib/active_support/core_ext/object/try.rb +2 -2
  21. data/lib/active_support/core_ext/range/sole.rb +17 -0
  22. data/lib/active_support/core_ext/range.rb +1 -0
  23. data/lib/active_support/core_ext/securerandom.rb +24 -8
  24. data/lib/active_support/core_ext/string/filters.rb +3 -3
  25. data/lib/active_support/core_ext/string/multibyte.rb +2 -2
  26. data/lib/active_support/core_ext/time/compatibility.rb +9 -1
  27. data/lib/active_support/current_attributes.rb +14 -7
  28. data/lib/active_support/error_reporter.rb +5 -2
  29. data/lib/active_support/execution_wrapper.rb +1 -1
  30. data/lib/active_support/file_update_checker.rb +1 -1
  31. data/lib/active_support/gem_version.rb +2 -2
  32. data/lib/active_support/hash_with_indifferent_access.rb +20 -16
  33. data/lib/active_support/json/decoding.rb +1 -1
  34. data/lib/active_support/json/encoding.rb +23 -5
  35. data/lib/active_support/lazy_load_hooks.rb +1 -1
  36. data/lib/active_support/message_encryptors.rb +2 -2
  37. data/lib/active_support/message_verifier.rb +9 -0
  38. data/lib/active_support/message_verifiers.rb +5 -3
  39. data/lib/active_support/messages/rotator.rb +5 -0
  40. data/lib/active_support/multibyte/chars.rb +4 -1
  41. data/lib/active_support/testing/parallelization/server.rb +15 -2
  42. data/lib/active_support/testing/parallelization/worker.rb +2 -2
  43. data/lib/active_support/testing/parallelization.rb +12 -1
  44. data/lib/active_support/xml_mini.rb +2 -0
  45. metadata +5 -5
  46. data/lib/active_support/testing/strict_warnings.rb +0 -43
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.2.2.2
4
+ version: 7.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -313,6 +313,7 @@ files:
313
313
  - lib/active_support/core_ext/range/conversions.rb
314
314
  - lib/active_support/core_ext/range/each.rb
315
315
  - lib/active_support/core_ext/range/overlap.rb
316
+ - lib/active_support/core_ext/range/sole.rb
316
317
  - lib/active_support/core_ext/regexp.rb
317
318
  - lib/active_support/core_ext/securerandom.rb
318
319
  - lib/active_support/core_ext/string.rb
@@ -459,7 +460,6 @@ files:
459
460
  - lib/active_support/testing/parallelize_executor.rb
460
461
  - lib/active_support/testing/setup_and_teardown.rb
461
462
  - lib/active_support/testing/stream.rb
462
- - lib/active_support/testing/strict_warnings.rb
463
463
  - lib/active_support/testing/tagged_logging.rb
464
464
  - lib/active_support/testing/tests_without_assertions.rb
465
465
  - lib/active_support/testing/time_helpers.rb
@@ -479,10 +479,10 @@ licenses:
479
479
  - MIT
480
480
  metadata:
481
481
  bug_tracker_uri: https://github.com/rails/rails/issues
482
- changelog_uri: https://github.com/rails/rails/blob/v7.2.2.2/activesupport/CHANGELOG.md
483
- documentation_uri: https://api.rubyonrails.org/v7.2.2.2/
482
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.3/activesupport/CHANGELOG.md
483
+ documentation_uri: https://api.rubyonrails.org/v7.2.3/
484
484
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
485
- source_code_uri: https://github.com/rails/rails/tree/v7.2.2.2/activesupport
485
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.3/activesupport
486
486
  rubygems_mfa_required: 'true'
487
487
  rdoc_options:
488
488
  - "--encoding"
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $VERBOSE = true
4
- Warning[:deprecated] = true
5
-
6
- module ActiveSupport
7
- module RaiseWarnings # :nodoc:
8
- class WarningError < StandardError; end
9
-
10
- PROJECT_ROOT = File.expand_path("../../../../", __dir__)
11
- ALLOWED_WARNINGS = Regexp.union(
12
- /circular require considered harmful.*delayed_job/, # Bug in delayed job.
13
-
14
- # Expected non-verbose warning emitted by Rails.
15
- /Ignoring .*\.yml because it has expired/,
16
- /Failed to validate the schema cache because/,
17
-
18
- # TODO: We need to decide what to do with this.
19
- /Status code :unprocessable_entity is deprecated/
20
- )
21
-
22
- SUPPRESSED_WARNINGS = Regexp.union(
23
- # TODO: remove if https://github.com/mikel/mail/pull/1557 or similar fix
24
- %r{/lib/mail/parsers/.*statement not reached},
25
- %r{/lib/mail/parsers/.*assigned but unused variable - disp_type_s},
26
- %r{/lib/mail/parsers/.*assigned but unused variable - testEof}
27
- )
28
-
29
- def warn(message, ...)
30
- return if SUPPRESSED_WARNINGS.match?(message)
31
-
32
- super
33
-
34
- return unless message.include?(PROJECT_ROOT)
35
- return if ALLOWED_WARNINGS.match?(message)
36
- return unless ENV["RAILS_STRICT_WARNINGS"] || ENV["BUILDKITE"]
37
-
38
- raise WarningError.new(message)
39
- end
40
- end
41
- end
42
-
43
- Warning.singleton_class.prepend(ActiveSupport::RaiseWarnings)