activesupport 7.2.1 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +67 -189
  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/broadcast_logger.rb +14 -14
  7. data/lib/active_support/cache/file_store.rb +12 -2
  8. data/lib/active_support/cache/memory_store.rb +6 -2
  9. data/lib/active_support/cache/redis_cache_store.rb +5 -2
  10. data/lib/active_support/cache.rb +18 -13
  11. data/lib/active_support/callbacks.rb +1 -2
  12. data/lib/active_support/class_attribute.rb +26 -0
  13. data/lib/active_support/code_generator.rb +9 -0
  14. data/lib/active_support/concurrency/share_lock.rb +0 -1
  15. data/lib/active_support/configuration_file.rb +15 -6
  16. data/lib/active_support/core_ext/benchmark.rb +6 -9
  17. data/lib/active_support/core_ext/class/attribute.rb +10 -19
  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/hash/except.rb +0 -12
  22. data/lib/active_support/core_ext/module/attr_internal.rb +3 -4
  23. data/lib/active_support/core_ext/object/json.rb +20 -12
  24. data/lib/active_support/core_ext/string/multibyte.rb +1 -1
  25. data/lib/active_support/core_ext/thread/backtrace/location.rb +2 -7
  26. data/lib/active_support/core_ext/time/calculations.rb +14 -2
  27. data/lib/active_support/core_ext/time/compatibility.rb +9 -1
  28. data/lib/active_support/core_ext/time/conversions.rb +2 -0
  29. data/lib/active_support/core_ext/time/zones.rb +1 -1
  30. data/lib/active_support/current_attributes.rb +7 -3
  31. data/lib/active_support/delegation.rb +0 -2
  32. data/lib/active_support/dependencies.rb +0 -1
  33. data/lib/active_support/deprecation/reporting.rb +2 -21
  34. data/lib/active_support/deprecation.rb +1 -1
  35. data/lib/active_support/duration.rb +14 -10
  36. data/lib/active_support/encrypted_configuration.rb +20 -2
  37. data/lib/active_support/encrypted_file.rb +1 -1
  38. data/lib/active_support/error_reporter.rb +25 -1
  39. data/lib/active_support/evented_file_update_checker.rb +0 -1
  40. data/lib/active_support/gem_version.rb +3 -3
  41. data/lib/active_support/hash_with_indifferent_access.rb +16 -16
  42. data/lib/active_support/i18n_railtie.rb +19 -11
  43. data/lib/active_support/isolated_execution_state.rb +0 -2
  44. data/lib/active_support/json/encoding.rb +2 -2
  45. data/lib/active_support/notifications/fanout.rb +0 -1
  46. data/lib/active_support/number_helper.rb +22 -0
  47. data/lib/active_support/railtie.rb +4 -0
  48. data/lib/active_support/tagged_logging.rb +5 -0
  49. data/lib/active_support/testing/assertions.rb +79 -21
  50. data/lib/active_support/testing/isolation.rb +2 -2
  51. data/lib/active_support/testing/parallelization/server.rb +3 -0
  52. data/lib/active_support/testing/strict_warnings.rb +3 -0
  53. data/lib/active_support/testing/time_helpers.rb +2 -1
  54. data/lib/active_support/time_with_zone.rb +22 -13
  55. data/lib/active_support/values/time_zone.rb +17 -15
  56. data/lib/active_support.rb +10 -3
  57. metadata +40 -11
  58. data/lib/active_support/proxy_object.rb +0 -20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.1
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -168,6 +168,34 @@ dependencies:
168
168
  - - ">="
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0.3'
171
+ - !ruby/object:Gem::Dependency
172
+ name: uri
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: 0.13.1
178
+ type: :runtime
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 0.13.1
185
+ - !ruby/object:Gem::Dependency
186
+ name: benchmark
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0.3'
192
+ type: :runtime
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0.3'
171
199
  description: A toolkit of support libraries and Ruby core extensions extracted from
172
200
  the Rails framework. Rich support for multibyte strings, internationalization, time
173
201
  zones, and testing.
@@ -184,6 +212,7 @@ files:
184
212
  - lib/active_support/all.rb
185
213
  - lib/active_support/array_inquirer.rb
186
214
  - lib/active_support/backtrace_cleaner.rb
215
+ - lib/active_support/benchmark.rb
187
216
  - lib/active_support/benchmarkable.rb
188
217
  - lib/active_support/broadcast_logger.rb
189
218
  - lib/active_support/builder.rb
@@ -199,6 +228,7 @@ files:
199
228
  - lib/active_support/cache/strategy/local_cache.rb
200
229
  - lib/active_support/cache/strategy/local_cache_middleware.rb
201
230
  - lib/active_support/callbacks.rb
231
+ - lib/active_support/class_attribute.rb
202
232
  - lib/active_support/code_generator.rb
203
233
  - lib/active_support/concern.rb
204
234
  - lib/active_support/concurrency/load_interlock_aware_monitor.rb
@@ -418,7 +448,6 @@ files:
418
448
  - lib/active_support/ordered_hash.rb
419
449
  - lib/active_support/ordered_options.rb
420
450
  - lib/active_support/parameter_filter.rb
421
- - lib/active_support/proxy_object.rb
422
451
  - lib/active_support/rails.rb
423
452
  - lib/active_support/railtie.rb
424
453
  - lib/active_support/reloader.rb
@@ -466,12 +495,12 @@ licenses:
466
495
  - MIT
467
496
  metadata:
468
497
  bug_tracker_uri: https://github.com/rails/rails/issues
469
- changelog_uri: https://github.com/rails/rails/blob/v7.2.1/activesupport/CHANGELOG.md
470
- documentation_uri: https://api.rubyonrails.org/v7.2.1/
498
+ changelog_uri: https://github.com/rails/rails/blob/v8.0.0/activesupport/CHANGELOG.md
499
+ documentation_uri: https://api.rubyonrails.org/v8.0.0/
471
500
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
472
- source_code_uri: https://github.com/rails/rails/tree/v7.2.1/activesupport
501
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.0/activesupport
473
502
  rubygems_mfa_required: 'true'
474
- post_install_message:
503
+ post_install_message:
475
504
  rdoc_options:
476
505
  - "--encoding"
477
506
  - UTF-8
@@ -481,15 +510,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
481
510
  requirements:
482
511
  - - ">="
483
512
  - !ruby/object:Gem::Version
484
- version: 3.1.0
513
+ version: 3.2.0
485
514
  required_rubygems_version: !ruby/object:Gem::Requirement
486
515
  requirements:
487
516
  - - ">="
488
517
  - !ruby/object:Gem::Version
489
518
  version: '0'
490
519
  requirements: []
491
- rubygems_version: 3.5.11
492
- signing_key:
520
+ rubygems_version: 3.5.22
521
+ signing_key:
493
522
  specification_version: 4
494
523
  summary: A toolkit of support libraries and Ruby core extensions extracted from the
495
524
  Rails framework.
@@ -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