activesupport 7.2.2 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +76 -198
  3. data/lib/active_support/backtrace_cleaner.rb +1 -1
  4. data/lib/active_support/benchmark.rb +21 -0
  5. data/lib/active_support/benchmarkable.rb +3 -2
  6. data/lib/active_support/cache/file_store.rb +12 -2
  7. data/lib/active_support/cache/memory_store.rb +6 -2
  8. data/lib/active_support/cache/redis_cache_store.rb +5 -2
  9. data/lib/active_support/cache.rb +16 -11
  10. data/lib/active_support/callbacks.rb +5 -3
  11. data/lib/active_support/class_attribute.rb +33 -0
  12. data/lib/active_support/code_generator.rb +9 -0
  13. data/lib/active_support/concurrency/share_lock.rb +0 -1
  14. data/lib/active_support/configuration_file.rb +15 -6
  15. data/lib/active_support/core_ext/array/conversions.rb +3 -3
  16. data/lib/active_support/core_ext/benchmark.rb +6 -9
  17. data/lib/active_support/core_ext/class/attribute.rb +24 -20
  18. data/lib/active_support/core_ext/date/conversions.rb +2 -0
  19. data/lib/active_support/core_ext/date_and_time/compatibility.rb +2 -2
  20. data/lib/active_support/core_ext/enumerable.rb +8 -3
  21. data/lib/active_support/core_ext/erb/util.rb +2 -2
  22. data/lib/active_support/core_ext/hash/except.rb +0 -12
  23. data/lib/active_support/core_ext/module/attr_internal.rb +3 -4
  24. data/lib/active_support/core_ext/object/json.rb +15 -9
  25. data/lib/active_support/core_ext/securerandom.rb +24 -8
  26. data/lib/active_support/core_ext/thread/backtrace/location.rb +2 -7
  27. data/lib/active_support/core_ext/time/calculations.rb +14 -2
  28. data/lib/active_support/core_ext/time/compatibility.rb +9 -1
  29. data/lib/active_support/core_ext/time/conversions.rb +2 -0
  30. data/lib/active_support/delegation.rb +0 -2
  31. data/lib/active_support/dependencies.rb +0 -1
  32. data/lib/active_support/deprecation/reporting.rb +0 -19
  33. data/lib/active_support/deprecation.rb +1 -1
  34. data/lib/active_support/duration.rb +14 -10
  35. data/lib/active_support/encrypted_configuration.rb +20 -2
  36. data/lib/active_support/error_reporter.rb +25 -1
  37. data/lib/active_support/evented_file_update_checker.rb +0 -1
  38. data/lib/active_support/gem_version.rb +3 -3
  39. data/lib/active_support/hash_with_indifferent_access.rb +16 -16
  40. data/lib/active_support/i18n_railtie.rb +19 -11
  41. data/lib/active_support/isolated_execution_state.rb +0 -2
  42. data/lib/active_support/json/encoding.rb +2 -2
  43. data/lib/active_support/notifications/fanout.rb +0 -1
  44. data/lib/active_support/number_helper.rb +22 -0
  45. data/lib/active_support/railtie.rb +4 -0
  46. data/lib/active_support/tagged_logging.rb +5 -0
  47. data/lib/active_support/testing/assertions.rb +79 -21
  48. data/lib/active_support/testing/isolation.rb +0 -2
  49. data/lib/active_support/testing/strict_warnings.rb +1 -1
  50. data/lib/active_support/testing/time_helpers.rb +2 -1
  51. data/lib/active_support/time_with_zone.rb +22 -13
  52. data/lib/active_support/values/time_zone.rb +11 -9
  53. data/lib/active_support.rb +10 -3
  54. metadata +23 -8
  55. data/lib/active_support/proxy_object.rb +0 -20
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ActiveSupport
4
- class ProxyObject < ::BasicObject # :nodoc:
5
- undef_method :==
6
- undef_method :equal?
7
-
8
- # Let ActiveSupport::ProxyObject at least raise exceptions.
9
- def raise(*args)
10
- ::Object.send(:raise, *args)
11
- end
12
-
13
- def self.inherited(_subclass)
14
- ::ActiveSupport.deprecator.warn(<<~MSG)
15
- ActiveSupport::ProxyObject is deprecated and will be removed in Rails 8.0.
16
- Use Ruby's built-in BasicObject instead.
17
- MSG
18
- end
19
- end
20
- end