activesupport 7.2.2.1 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +148 -0
- data/README.rdoc +1 -1
- data/lib/active_support/backtrace_cleaner.rb +1 -1
- data/lib/active_support/broadcast_logger.rb +61 -74
- data/lib/active_support/cache/file_store.rb +2 -2
- data/lib/active_support/cache/mem_cache_store.rb +13 -15
- data/lib/active_support/cache/memory_store.rb +5 -5
- data/lib/active_support/cache/null_store.rb +2 -2
- data/lib/active_support/cache/redis_cache_store.rb +1 -1
- data/lib/active_support/cache/strategy/local_cache.rb +56 -20
- data/lib/active_support/cache.rb +3 -3
- data/lib/active_support/callbacks.rb +3 -2
- data/lib/active_support/core_ext/benchmark.rb +1 -0
- data/lib/active_support/core_ext/class/attribute.rb +2 -2
- data/lib/active_support/core_ext/date_time/conversions.rb +4 -2
- data/lib/active_support/core_ext/enumerable.rb +17 -5
- data/lib/active_support/core_ext/erb/util.rb +2 -2
- data/lib/active_support/core_ext/module/introspection.rb +3 -0
- data/lib/active_support/core_ext/object/try.rb +2 -2
- data/lib/active_support/core_ext/range/sole.rb +17 -0
- data/lib/active_support/core_ext/range.rb +1 -0
- data/lib/active_support/core_ext/securerandom.rb +24 -8
- data/lib/active_support/core_ext/string/filters.rb +3 -3
- data/lib/active_support/core_ext/string/multibyte.rb +2 -2
- data/lib/active_support/core_ext/time/compatibility.rb +9 -1
- data/lib/active_support/current_attributes.rb +14 -7
- data/lib/active_support/error_reporter.rb +5 -2
- data/lib/active_support/execution_wrapper.rb +1 -1
- data/lib/active_support/file_update_checker.rb +1 -1
- data/lib/active_support/gem_version.rb +2 -2
- data/lib/active_support/hash_with_indifferent_access.rb +20 -16
- data/lib/active_support/json/decoding.rb +1 -1
- data/lib/active_support/json/encoding.rb +23 -5
- data/lib/active_support/lazy_load_hooks.rb +1 -1
- data/lib/active_support/message_encryptors.rb +2 -2
- data/lib/active_support/message_verifier.rb +9 -0
- data/lib/active_support/message_verifiers.rb +5 -3
- data/lib/active_support/messages/rotator.rb +5 -0
- data/lib/active_support/multibyte/chars.rb +4 -1
- data/lib/active_support/testing/parallelization/server.rb +15 -2
- data/lib/active_support/testing/parallelization/worker.rb +2 -2
- data/lib/active_support/testing/parallelization.rb +12 -1
- data/lib/active_support/xml_mini.rb +2 -0
- metadata +7 -10
- data/lib/active_support/testing/strict_warnings.rb +0 -43
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activesupport
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.2.
|
|
4
|
+
version: 7.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: i18n
|
|
@@ -314,6 +313,7 @@ files:
|
|
|
314
313
|
- lib/active_support/core_ext/range/conversions.rb
|
|
315
314
|
- lib/active_support/core_ext/range/each.rb
|
|
316
315
|
- lib/active_support/core_ext/range/overlap.rb
|
|
316
|
+
- lib/active_support/core_ext/range/sole.rb
|
|
317
317
|
- lib/active_support/core_ext/regexp.rb
|
|
318
318
|
- lib/active_support/core_ext/securerandom.rb
|
|
319
319
|
- lib/active_support/core_ext/string.rb
|
|
@@ -460,7 +460,6 @@ files:
|
|
|
460
460
|
- lib/active_support/testing/parallelize_executor.rb
|
|
461
461
|
- lib/active_support/testing/setup_and_teardown.rb
|
|
462
462
|
- lib/active_support/testing/stream.rb
|
|
463
|
-
- lib/active_support/testing/strict_warnings.rb
|
|
464
463
|
- lib/active_support/testing/tagged_logging.rb
|
|
465
464
|
- lib/active_support/testing/tests_without_assertions.rb
|
|
466
465
|
- lib/active_support/testing/time_helpers.rb
|
|
@@ -480,12 +479,11 @@ licenses:
|
|
|
480
479
|
- MIT
|
|
481
480
|
metadata:
|
|
482
481
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
483
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.2.
|
|
484
|
-
documentation_uri: https://api.rubyonrails.org/v7.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/
|
|
485
484
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
486
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.2.
|
|
485
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.2.3/activesupport
|
|
487
486
|
rubygems_mfa_required: 'true'
|
|
488
|
-
post_install_message:
|
|
489
487
|
rdoc_options:
|
|
490
488
|
- "--encoding"
|
|
491
489
|
- UTF-8
|
|
@@ -502,8 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
502
500
|
- !ruby/object:Gem::Version
|
|
503
501
|
version: '0'
|
|
504
502
|
requirements: []
|
|
505
|
-
rubygems_version: 3.
|
|
506
|
-
signing_key:
|
|
503
|
+
rubygems_version: 3.6.9
|
|
507
504
|
specification_version: 4
|
|
508
505
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
|
509
506
|
Rails framework.
|
|
@@ -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)
|