activesupport 8.0.4 → 8.1.0.beta1

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +233 -198
  3. data/lib/active_support/backtrace_cleaner.rb +71 -0
  4. data/lib/active_support/cache/mem_cache_store.rb +13 -13
  5. data/lib/active_support/cache/redis_cache_store.rb +36 -30
  6. data/lib/active_support/cache/strategy/local_cache.rb +16 -7
  7. data/lib/active_support/cache/strategy/local_cache_middleware.rb +7 -7
  8. data/lib/active_support/cache.rb +69 -6
  9. data/lib/active_support/configurable.rb +28 -0
  10. data/lib/active_support/continuous_integration.rb +145 -0
  11. data/lib/active_support/core_ext/benchmark.rb +0 -1
  12. data/lib/active_support/core_ext/class/attribute.rb +6 -8
  13. data/lib/active_support/core_ext/date_and_time/compatibility.rb +1 -1
  14. data/lib/active_support/core_ext/enumerable.rb +2 -2
  15. data/lib/active_support/core_ext/erb/util.rb +3 -3
  16. data/lib/active_support/core_ext/object/json.rb +8 -1
  17. data/lib/active_support/core_ext/object/to_query.rb +5 -0
  18. data/lib/active_support/core_ext/range.rb +0 -1
  19. data/lib/active_support/core_ext/string/multibyte.rb +10 -1
  20. data/lib/active_support/core_ext/string/output_safety.rb +19 -12
  21. data/lib/active_support/current_attributes/test_helper.rb +2 -2
  22. data/lib/active_support/current_attributes.rb +13 -10
  23. data/lib/active_support/deprecation/reporting.rb +4 -2
  24. data/lib/active_support/deprecation.rb +1 -1
  25. data/lib/active_support/editor.rb +70 -0
  26. data/lib/active_support/error_reporter.rb +50 -6
  27. data/lib/active_support/event_reporter/test_helper.rb +32 -0
  28. data/lib/active_support/event_reporter.rb +570 -0
  29. data/lib/active_support/evented_file_update_checker.rb +5 -1
  30. data/lib/active_support/execution_context.rb +64 -7
  31. data/lib/active_support/file_update_checker.rb +8 -6
  32. data/lib/active_support/gem_version.rb +3 -3
  33. data/lib/active_support/gzip.rb +1 -0
  34. data/lib/active_support/hash_with_indifferent_access.rb +27 -7
  35. data/lib/active_support/i18n_railtie.rb +1 -2
  36. data/lib/active_support/inflector/inflections.rb +31 -15
  37. data/lib/active_support/inflector/transliterate.rb +6 -8
  38. data/lib/active_support/isolated_execution_state.rb +7 -13
  39. data/lib/active_support/json/decoding.rb +2 -2
  40. data/lib/active_support/json/encoding.rb +103 -14
  41. data/lib/active_support/log_subscriber.rb +2 -0
  42. data/lib/active_support/message_encryptors.rb +52 -0
  43. data/lib/active_support/message_pack/extensions.rb +5 -0
  44. data/lib/active_support/message_verifiers.rb +52 -0
  45. data/lib/active_support/messages/rotation_coordinator.rb +9 -0
  46. data/lib/active_support/messages/rotator.rb +5 -0
  47. data/lib/active_support/multibyte/chars.rb +8 -1
  48. data/lib/active_support/multibyte.rb +4 -0
  49. data/lib/active_support/notifications/instrumenter.rb +1 -1
  50. data/lib/active_support/railtie.rb +26 -12
  51. data/lib/active_support/syntax_error_proxy.rb +3 -0
  52. data/lib/active_support/test_case.rb +61 -6
  53. data/lib/active_support/testing/assertions.rb +34 -6
  54. data/lib/active_support/testing/error_reporter_assertions.rb +18 -1
  55. data/lib/active_support/testing/event_reporter_assertions.rb +217 -0
  56. data/lib/active_support/testing/notification_assertions.rb +92 -0
  57. data/lib/active_support/testing/parallelization/server.rb +2 -15
  58. data/lib/active_support/testing/parallelization/worker.rb +4 -2
  59. data/lib/active_support/testing/parallelization.rb +14 -12
  60. data/lib/active_support/testing/tests_without_assertions.rb +1 -1
  61. data/lib/active_support/testing/time_helpers.rb +7 -3
  62. data/lib/active_support/time_with_zone.rb +19 -5
  63. data/lib/active_support/values/time_zone.rb +8 -1
  64. data/lib/active_support/xml_mini.rb +1 -4
  65. data/lib/active_support.rb +11 -0
  66. metadata +10 -5
  67. data/lib/active_support/core_ext/range/each.rb +0 -24
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "active_support/time_with_zone"
4
-
5
- module ActiveSupport
6
- module EachTimeWithZone # :nodoc:
7
- def each(&block)
8
- ensure_iteration_allowed
9
- super
10
- end
11
-
12
- def step(n = 1, &block)
13
- ensure_iteration_allowed
14
- super
15
- end
16
-
17
- private
18
- def ensure_iteration_allowed
19
- raise TypeError, "can't iterate from #{first.class}" if first.is_a?(TimeWithZone)
20
- end
21
- end
22
- end
23
-
24
- Range.prepend(ActiveSupport::EachTimeWithZone)