activesupport 7.0.0.alpha2 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +103 -0
- data/lib/active_support/cache/mem_cache_store.rb +9 -5
- data/lib/active_support/cache/memory_store.rb +2 -2
- data/lib/active_support/cache/redis_cache_store.rb +3 -8
- data/lib/active_support/cache/strategy/local_cache.rb +6 -12
- data/lib/active_support/callbacks.rb +145 -50
- data/lib/active_support/code_generator.rb +65 -0
- data/lib/active_support/core_ext/array/conversions.rb +3 -1
- data/lib/active_support/core_ext/array/deprecated_conversions.rb +25 -0
- data/lib/active_support/core_ext/array.rb +1 -0
- data/lib/active_support/core_ext/class/subclasses.rb +4 -2
- data/lib/active_support/core_ext/date/calculations.rb +2 -2
- data/lib/active_support/core_ext/date/conversions.rb +3 -3
- data/lib/active_support/core_ext/date/deprecated_conversions.rb +26 -0
- data/lib/active_support/core_ext/date.rb +1 -0
- data/lib/active_support/core_ext/date_and_time/compatibility.rb +1 -1
- data/lib/active_support/core_ext/date_time/conversions.rb +5 -5
- data/lib/active_support/core_ext/date_time/deprecated_conversions.rb +22 -0
- data/lib/active_support/core_ext/date_time.rb +1 -0
- data/lib/active_support/core_ext/digest/uuid.rb +26 -1
- data/lib/active_support/core_ext/module/attribute_accessors.rb +2 -0
- data/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +19 -10
- data/lib/active_support/core_ext/numeric/conversions.rb +78 -75
- data/lib/active_support/core_ext/numeric/deprecated_conversions.rb +60 -0
- data/lib/active_support/core_ext/numeric.rb +1 -0
- data/lib/active_support/core_ext/object/with_options.rb +20 -1
- data/lib/active_support/core_ext/pathname/existence.rb +21 -0
- data/lib/active_support/core_ext/pathname.rb +3 -0
- data/lib/active_support/core_ext/range/conversions.rb +8 -8
- data/lib/active_support/core_ext/range/deprecated_conversions.rb +26 -0
- data/lib/active_support/core_ext/range/include_time_with_zone.rb +4 -25
- data/lib/active_support/core_ext/range.rb +1 -1
- data/lib/active_support/core_ext/time/calculations.rb +1 -1
- data/lib/active_support/core_ext/time/conversions.rb +4 -3
- data/lib/active_support/core_ext/time/deprecated_conversions.rb +22 -0
- data/lib/active_support/core_ext/time/zones.rb +2 -2
- data/lib/active_support/core_ext/time.rb +1 -0
- data/lib/active_support/core_ext/uri.rb +3 -13
- data/lib/active_support/core_ext.rb +1 -0
- data/lib/active_support/current_attributes.rb +26 -25
- data/lib/active_support/descendants_tracker.rb +175 -69
- data/lib/active_support/duration.rb +4 -3
- data/lib/active_support/error_reporter.rb +117 -0
- data/lib/active_support/execution_context/test_helper.rb +13 -0
- data/lib/active_support/execution_context.rb +53 -0
- data/lib/active_support/execution_wrapper.rb +30 -4
- data/lib/active_support/executor/test_helper.rb +7 -0
- data/lib/active_support/fork_tracker.rb +18 -9
- data/lib/active_support/gem_version.rb +1 -1
- data/lib/active_support/html_safe_translation.rb +43 -0
- data/lib/active_support/i18n_railtie.rb +1 -1
- data/lib/active_support/inflector/inflections.rb +12 -3
- data/lib/active_support/inflector/methods.rb +2 -2
- data/lib/active_support/isolated_execution_state.rb +56 -0
- data/lib/active_support/logger_thread_safe_level.rb +2 -3
- data/lib/active_support/message_encryptor.rb +5 -0
- data/lib/active_support/message_verifier.rb +42 -10
- data/lib/active_support/multibyte/unicode.rb +0 -12
- data/lib/active_support/notifications/fanout.rb +61 -55
- data/lib/active_support/notifications/instrumenter.rb +15 -15
- data/lib/active_support/notifications.rb +5 -21
- data/lib/active_support/option_merger.rb +4 -0
- data/lib/active_support/per_thread_registry.rb +4 -0
- data/lib/active_support/railtie.rb +38 -11
- data/lib/active_support/ruby_features.rb +7 -0
- data/lib/active_support/subscriber.rb +2 -18
- data/lib/active_support/tagged_logging.rb +1 -1
- data/lib/active_support/testing/deprecation.rb +52 -1
- data/lib/active_support/testing/isolation.rb +1 -1
- data/lib/active_support/time_with_zone.rb +34 -6
- data/lib/active_support/values/time_zone.rb +5 -0
- data/lib/active_support/xml_mini.rb +3 -3
- data/lib/active_support.rb +7 -4
- metadata +25 -8
data/lib/active_support.rb
CHANGED
@@ -34,19 +34,24 @@ module ActiveSupport
|
|
34
34
|
extend ActiveSupport::Autoload
|
35
35
|
|
36
36
|
autoload :Concern
|
37
|
+
autoload :CodeGenerator
|
37
38
|
autoload :ActionableError
|
38
39
|
autoload :ConfigurationFile
|
39
40
|
autoload :CurrentAttributes
|
40
41
|
autoload :Dependencies
|
41
42
|
autoload :DescendantsTracker
|
43
|
+
autoload :ExecutionContext
|
42
44
|
autoload :ExecutionWrapper
|
43
45
|
autoload :Executor
|
46
|
+
autoload :ErrorReporter
|
44
47
|
autoload :FileUpdateChecker
|
45
48
|
autoload :EventedFileUpdateChecker
|
46
49
|
autoload :ForkTracker
|
47
50
|
autoload :LogSubscriber
|
51
|
+
autoload :IsolatedExecutionState
|
48
52
|
autoload :Notifications
|
49
53
|
autoload :Reloader
|
54
|
+
autoload :PerThreadRegistry
|
50
55
|
autoload :SecureCompareRotator
|
51
56
|
|
52
57
|
eager_autoload do
|
@@ -89,6 +94,8 @@ module ActiveSupport
|
|
89
94
|
cattr_accessor :test_order # :nodoc:
|
90
95
|
cattr_accessor :test_parallelization_threshold, default: 50 # :nodoc:
|
91
96
|
|
97
|
+
singleton_class.attr_accessor :error_reporter # :nodoc:
|
98
|
+
|
92
99
|
def self.cache_format_version
|
93
100
|
Cache.format_version
|
94
101
|
end
|
@@ -112,10 +119,6 @@ module ActiveSupport
|
|
112
119
|
def self.utc_to_local_returns_utc_offset_times=(value)
|
113
120
|
DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value
|
114
121
|
end
|
115
|
-
|
116
|
-
def self.current_attributes_use_thread_variables=(value)
|
117
|
-
CurrentAttributes._use_thread_variables = value
|
118
|
-
end
|
119
122
|
end
|
120
123
|
|
121
124
|
autoload :I18n, "active_support/i18n"
|
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.0.0
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/active_support/cache/strategy/local_cache.rb
|
106
106
|
- lib/active_support/cache/strategy/local_cache_middleware.rb
|
107
107
|
- lib/active_support/callbacks.rb
|
108
|
+
- lib/active_support/code_generator.rb
|
108
109
|
- lib/active_support/concern.rb
|
109
110
|
- lib/active_support/concurrency/load_interlock_aware_monitor.rb
|
110
111
|
- lib/active_support/concurrency/share_lock.rb
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- lib/active_support/core_ext/array.rb
|
115
116
|
- lib/active_support/core_ext/array/access.rb
|
116
117
|
- lib/active_support/core_ext/array/conversions.rb
|
118
|
+
- lib/active_support/core_ext/array/deprecated_conversions.rb
|
117
119
|
- lib/active_support/core_ext/array/extract.rb
|
118
120
|
- lib/active_support/core_ext/array/extract_options.rb
|
119
121
|
- lib/active_support/core_ext/array/grouping.rb
|
@@ -131,6 +133,7 @@ files:
|
|
131
133
|
- lib/active_support/core_ext/date/blank.rb
|
132
134
|
- lib/active_support/core_ext/date/calculations.rb
|
133
135
|
- lib/active_support/core_ext/date/conversions.rb
|
136
|
+
- lib/active_support/core_ext/date/deprecated_conversions.rb
|
134
137
|
- lib/active_support/core_ext/date/zones.rb
|
135
138
|
- lib/active_support/core_ext/date_and_time/calculations.rb
|
136
139
|
- lib/active_support/core_ext/date_and_time/compatibility.rb
|
@@ -141,6 +144,7 @@ files:
|
|
141
144
|
- lib/active_support/core_ext/date_time/calculations.rb
|
142
145
|
- lib/active_support/core_ext/date_time/compatibility.rb
|
143
146
|
- lib/active_support/core_ext/date_time/conversions.rb
|
147
|
+
- lib/active_support/core_ext/date_time/deprecated_conversions.rb
|
144
148
|
- lib/active_support/core_ext/digest.rb
|
145
149
|
- lib/active_support/core_ext/digest/uuid.rb
|
146
150
|
- lib/active_support/core_ext/enumerable.rb
|
@@ -180,6 +184,7 @@ files:
|
|
180
184
|
- lib/active_support/core_ext/numeric.rb
|
181
185
|
- lib/active_support/core_ext/numeric/bytes.rb
|
182
186
|
- lib/active_support/core_ext/numeric/conversions.rb
|
187
|
+
- lib/active_support/core_ext/numeric/deprecated_conversions.rb
|
183
188
|
- lib/active_support/core_ext/numeric/time.rb
|
184
189
|
- lib/active_support/core_ext/object.rb
|
185
190
|
- lib/active_support/core_ext/object/acts_like.rb
|
@@ -194,9 +199,12 @@ files:
|
|
194
199
|
- lib/active_support/core_ext/object/to_query.rb
|
195
200
|
- lib/active_support/core_ext/object/try.rb
|
196
201
|
- lib/active_support/core_ext/object/with_options.rb
|
202
|
+
- lib/active_support/core_ext/pathname.rb
|
203
|
+
- lib/active_support/core_ext/pathname/existence.rb
|
197
204
|
- lib/active_support/core_ext/range.rb
|
198
205
|
- lib/active_support/core_ext/range/compare_range.rb
|
199
206
|
- lib/active_support/core_ext/range/conversions.rb
|
207
|
+
- lib/active_support/core_ext/range/deprecated_conversions.rb
|
200
208
|
- lib/active_support/core_ext/range/each.rb
|
201
209
|
- lib/active_support/core_ext/range/include_time_with_zone.rb
|
202
210
|
- lib/active_support/core_ext/range/overlaps.rb
|
@@ -223,6 +231,7 @@ files:
|
|
223
231
|
- lib/active_support/core_ext/time/calculations.rb
|
224
232
|
- lib/active_support/core_ext/time/compatibility.rb
|
225
233
|
- lib/active_support/core_ext/time/conversions.rb
|
234
|
+
- lib/active_support/core_ext/time/deprecated_conversions.rb
|
226
235
|
- lib/active_support/core_ext/time/zones.rb
|
227
236
|
- lib/active_support/core_ext/uri.rb
|
228
237
|
- lib/active_support/current_attributes.rb
|
@@ -247,14 +256,19 @@ files:
|
|
247
256
|
- lib/active_support/encrypted_configuration.rb
|
248
257
|
- lib/active_support/encrypted_file.rb
|
249
258
|
- lib/active_support/environment_inquirer.rb
|
259
|
+
- lib/active_support/error_reporter.rb
|
250
260
|
- lib/active_support/evented_file_update_checker.rb
|
261
|
+
- lib/active_support/execution_context.rb
|
262
|
+
- lib/active_support/execution_context/test_helper.rb
|
251
263
|
- lib/active_support/execution_wrapper.rb
|
252
264
|
- lib/active_support/executor.rb
|
265
|
+
- lib/active_support/executor/test_helper.rb
|
253
266
|
- lib/active_support/file_update_checker.rb
|
254
267
|
- lib/active_support/fork_tracker.rb
|
255
268
|
- lib/active_support/gem_version.rb
|
256
269
|
- lib/active_support/gzip.rb
|
257
270
|
- lib/active_support/hash_with_indifferent_access.rb
|
271
|
+
- lib/active_support/html_safe_translation.rb
|
258
272
|
- lib/active_support/i18n.rb
|
259
273
|
- lib/active_support/i18n_railtie.rb
|
260
274
|
- lib/active_support/inflections.rb
|
@@ -262,6 +276,7 @@ files:
|
|
262
276
|
- lib/active_support/inflector/inflections.rb
|
263
277
|
- lib/active_support/inflector/methods.rb
|
264
278
|
- lib/active_support/inflector/transliterate.rb
|
279
|
+
- lib/active_support/isolated_execution_state.rb
|
265
280
|
- lib/active_support/json.rb
|
266
281
|
- lib/active_support/json/decoding.rb
|
267
282
|
- lib/active_support/json/encoding.rb
|
@@ -305,6 +320,7 @@ files:
|
|
305
320
|
- lib/active_support/railtie.rb
|
306
321
|
- lib/active_support/reloader.rb
|
307
322
|
- lib/active_support/rescuable.rb
|
323
|
+
- lib/active_support/ruby_features.rb
|
308
324
|
- lib/active_support/secure_compare_rotator.rb
|
309
325
|
- lib/active_support/security_utils.rb
|
310
326
|
- lib/active_support/string_inquirer.rb
|
@@ -343,10 +359,11 @@ licenses:
|
|
343
359
|
- MIT
|
344
360
|
metadata:
|
345
361
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
346
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.0
|
347
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.0
|
362
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.0/activesupport/CHANGELOG.md
|
363
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.0/
|
348
364
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
349
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.0
|
365
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.0/activesupport
|
366
|
+
rubygems_mfa_required: 'true'
|
350
367
|
post_install_message:
|
351
368
|
rdoc_options:
|
352
369
|
- "--encoding"
|
@@ -360,11 +377,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
360
377
|
version: 2.7.0
|
361
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
379
|
requirements:
|
363
|
-
- - "
|
380
|
+
- - ">="
|
364
381
|
- !ruby/object:Gem::Version
|
365
|
-
version:
|
382
|
+
version: '0'
|
366
383
|
requirements: []
|
367
|
-
rubygems_version: 3.
|
384
|
+
rubygems_version: 3.2.32
|
368
385
|
signing_key:
|
369
386
|
specification_version: 4
|
370
387
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|