activesupport 5.2.8.1 → 6.0.0.beta1
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 +182 -586
- data/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/lib/active_support/backtrace_cleaner.rb +23 -0
- data/lib/active_support/cache/file_store.rb +19 -12
- data/lib/active_support/cache/mem_cache_store.rb +16 -2
- data/lib/active_support/cache/memory_store.rb +5 -0
- data/lib/active_support/cache/null_store.rb +5 -0
- data/lib/active_support/cache/redis_cache_store.rb +39 -20
- data/lib/active_support/cache.rb +40 -18
- data/lib/active_support/callbacks.rb +16 -5
- data/lib/active_support/concurrency/load_interlock_aware_monitor.rb +0 -18
- data/lib/active_support/configurable.rb +4 -8
- data/lib/active_support/core_ext/array/extract.rb +21 -0
- data/lib/active_support/core_ext/array/prepend_and_append.rb +2 -6
- data/lib/active_support/core_ext/array.rb +1 -1
- data/lib/active_support/core_ext/class/attribute.rb +1 -1
- data/lib/active_support/core_ext/class/subclasses.rb +1 -1
- data/lib/active_support/core_ext/date/calculations.rb +6 -5
- data/lib/active_support/core_ext/date_and_time/calculations.rb +24 -17
- data/lib/active_support/core_ext/date_time/calculations.rb +1 -1
- data/lib/active_support/core_ext/enumerable.rb +71 -67
- data/lib/active_support/core_ext/hash/compact.rb +2 -26
- data/lib/active_support/core_ext/hash/keys.rb +0 -29
- data/lib/active_support/core_ext/hash/slice.rb +3 -25
- data/lib/active_support/core_ext/hash/transform_values.rb +2 -29
- data/lib/active_support/core_ext/hash.rb +0 -2
- data/lib/active_support/core_ext/integer/multiple.rb +1 -1
- data/lib/active_support/core_ext/load_error.rb +1 -1
- data/lib/active_support/core_ext/module/attribute_accessors.rb +2 -5
- data/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +8 -14
- data/lib/active_support/core_ext/module/delegation.rb +27 -7
- data/lib/active_support/core_ext/module/introspection.rb +37 -13
- data/lib/active_support/core_ext/module/reachable.rb +1 -6
- data/lib/active_support/core_ext/module/redefine_method.rb +8 -17
- data/lib/active_support/core_ext/module.rb +0 -1
- data/lib/active_support/core_ext/numeric/conversions.rb +124 -128
- data/lib/active_support/core_ext/numeric/inquiry.rb +2 -25
- data/lib/active_support/core_ext/numeric.rb +0 -1
- data/lib/active_support/core_ext/object/blank.rb +1 -2
- data/lib/active_support/core_ext/object/duplicable.rb +5 -2
- data/lib/active_support/core_ext/object/json.rb +1 -0
- data/lib/active_support/core_ext/object/try.rb +15 -7
- data/lib/active_support/core_ext/object/with_options.rb +1 -1
- data/lib/active_support/core_ext/range/compare_range.rb +1 -1
- data/lib/active_support/core_ext/range/conversions.rb +31 -29
- data/lib/active_support/core_ext/range/include_range.rb +6 -0
- data/lib/active_support/core_ext/regexp.rb +0 -4
- data/lib/active_support/core_ext/securerandom.rb +23 -3
- data/lib/active_support/core_ext/string/access.rb +8 -0
- data/lib/active_support/core_ext/string/filters.rb +41 -0
- data/lib/active_support/core_ext/string/multibyte.rb +4 -3
- data/lib/active_support/core_ext/string/output_safety.rb +16 -33
- data/lib/active_support/core_ext/string/strip.rb +3 -1
- data/lib/active_support/core_ext/uri.rb +1 -0
- data/lib/active_support/current_attributes.rb +2 -0
- data/lib/active_support/dependencies.rb +28 -11
- data/lib/active_support/deprecation/behaviors.rb +1 -1
- data/lib/active_support/deprecation/method_wrappers.rb +4 -5
- data/lib/active_support/deprecation/proxy_wrappers.rb +0 -2
- data/lib/active_support/deprecation.rb +1 -1
- data/lib/active_support/descendants_tracker.rb +6 -5
- data/lib/active_support/duration/iso8601_parser.rb +2 -3
- data/lib/active_support/duration/iso8601_serializer.rb +3 -4
- data/lib/active_support/duration.rb +12 -14
- data/lib/active_support/encrypted_configuration.rb +0 -4
- data/lib/active_support/evented_file_update_checker.rb +25 -7
- data/lib/active_support/execution_wrapper.rb +14 -16
- data/lib/active_support/gem_version.rb +4 -4
- data/lib/active_support/hash_with_indifferent_access.rb +16 -28
- data/lib/active_support/i18n.rb +1 -0
- data/lib/active_support/i18n_railtie.rb +8 -1
- data/lib/active_support/inflector/inflections.rb +1 -4
- data/lib/active_support/inflector/methods.rb +15 -27
- data/lib/active_support/inflector/transliterate.rb +6 -6
- data/lib/active_support/json/decoding.rb +23 -23
- data/lib/active_support/json/encoding.rb +6 -2
- data/lib/active_support/key_generator.rb +0 -32
- data/lib/active_support/lazy_load_hooks.rb +5 -1
- data/lib/active_support/locale/en.rb +31 -0
- data/lib/active_support/log_subscriber.rb +31 -8
- data/lib/active_support/logger.rb +0 -15
- data/lib/active_support/logger_silence.rb +28 -12
- data/lib/active_support/logger_thread_safe_level.rb +27 -6
- data/lib/active_support/message_encryptor.rb +2 -4
- data/lib/active_support/message_verifier.rb +2 -2
- data/lib/active_support/multibyte/chars.rb +29 -48
- data/lib/active_support/multibyte/unicode.rb +44 -281
- data/lib/active_support/notifications/fanout.rb +42 -4
- data/lib/active_support/notifications/instrumenter.rb +73 -2
- data/lib/active_support/notifications.rb +32 -4
- data/lib/active_support/number_helper/number_to_currency_converter.rb +2 -2
- data/lib/active_support/number_helper/number_to_delimited_converter.rb +3 -1
- data/lib/active_support/number_helper/number_to_human_converter.rb +3 -1
- data/lib/active_support/number_helper/number_to_human_size_converter.rb +3 -1
- data/lib/active_support/number_helper/number_to_percentage_converter.rb +3 -1
- data/lib/active_support/number_helper/number_to_phone_converter.rb +2 -0
- data/lib/active_support/number_helper/number_to_rounded_converter.rb +5 -3
- data/lib/active_support/number_helper.rb +7 -0
- data/lib/active_support/ordered_options.rb +1 -1
- data/lib/active_support/parameter_filter.rb +124 -0
- data/lib/active_support/rails.rb +0 -6
- data/lib/active_support/reloader.rb +5 -6
- data/lib/active_support/subscriber.rb +16 -26
- data/lib/active_support/tagged_logging.rb +13 -4
- data/lib/active_support/test_case.rb +91 -0
- data/lib/active_support/testing/assertions.rb +15 -1
- data/lib/active_support/testing/deprecation.rb +0 -1
- data/lib/active_support/testing/file_fixtures.rb +2 -0
- data/lib/active_support/testing/isolation.rb +2 -2
- data/lib/active_support/testing/method_call_assertions.rb +28 -1
- data/lib/active_support/testing/parallelization.rb +109 -0
- data/lib/active_support/testing/stream.rb +1 -1
- data/lib/active_support/testing/time_helpers.rb +7 -7
- data/lib/active_support/time_with_zone.rb +15 -5
- data/lib/active_support/values/time_zone.rb +12 -7
- data/lib/active_support/xml_mini/jdom.rb +2 -2
- data/lib/active_support/xml_mini/libxml.rb +2 -2
- data/lib/active_support/xml_mini/libxmlsax.rb +4 -4
- data/lib/active_support/xml_mini/nokogiri.rb +2 -2
- data/lib/active_support/xml_mini/nokogirisax.rb +3 -3
- data/lib/active_support/xml_mini/rexml.rb +2 -2
- data/lib/active_support/xml_mini.rb +2 -9
- data/lib/active_support.rb +1 -1
- metadata +15 -13
- data/lib/active_support/core_ext/digest.rb +0 -3
- data/lib/active_support/values/unicode_tables.dat +0 -0
data/CHANGELOG.md
CHANGED
@@ -1,153 +1,27 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 6.0.0.beta1 (January 18, 2019) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Remove deprecated `Module#reachable?` method.
|
4
4
|
|
5
|
+
*Rafael Mendonça França*
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
* No changes.
|
9
|
-
|
10
|
-
|
11
|
-
## Rails 5.2.7.1 (April 26, 2022) ##
|
12
|
-
|
13
|
-
* Fix and add protections for XSS in `ActionView::Helpers` and `ERB::Util`.
|
14
|
-
|
15
|
-
Add the method `ERB::Util.xml_name_escape` to escape dangerous characters
|
16
|
-
in names of tags and names of attributes, following the specification of XML.
|
17
|
-
|
18
|
-
*Álvaro Martín Fraguas*
|
19
|
-
|
20
|
-
|
21
|
-
## Rails 5.2.7 (March 10, 2022) ##
|
22
|
-
|
23
|
-
* Restore support to Ruby 2.2.
|
24
|
-
|
25
|
-
*ojab*
|
26
|
-
|
27
|
-
|
28
|
-
## Rails 5.2.6.3 (March 08, 2022) ##
|
29
|
-
|
30
|
-
* No changes.
|
31
|
-
|
32
|
-
|
33
|
-
## Rails 5.2.6.2 (February 11, 2022) ##
|
34
|
-
|
35
|
-
* Fix Reloader method signature to work with the new Executor signature
|
36
|
-
|
37
|
-
|
38
|
-
## Rails 5.2.6.1 (February 11, 2022) ##
|
39
|
-
|
40
|
-
* No changes.
|
41
|
-
|
42
|
-
|
43
|
-
## Rails 5.2.6 (May 05, 2021) ##
|
44
|
-
|
45
|
-
* No changes.
|
46
|
-
|
47
|
-
|
48
|
-
## Rails 5.2.5 (March 26, 2021) ##
|
49
|
-
|
50
|
-
* No changes.
|
51
|
-
|
52
|
-
|
53
|
-
## Rails 5.2.4.6 (May 05, 2021) ##
|
54
|
-
|
55
|
-
* No changes.
|
56
|
-
|
57
|
-
|
58
|
-
## Rails 5.2.4.5 (February 10, 2021) ##
|
59
|
-
|
60
|
-
* No changes.
|
61
|
-
|
62
|
-
|
63
|
-
## Rails 5.2.4.4 (September 09, 2020) ##
|
64
|
-
|
65
|
-
* No changes.
|
66
|
-
|
67
|
-
|
68
|
-
## Rails 5.2.4.3 (May 18, 2020) ##
|
69
|
-
|
70
|
-
* [CVE-2020-8165] Deprecate Marshal.load on raw cache read in RedisCacheStore
|
71
|
-
|
72
|
-
* [CVE-2020-8165] Avoid Marshal.load on raw cache value in MemCacheStore
|
73
|
-
|
74
|
-
## Rails 5.2.4.2 (March 19, 2020) ##
|
75
|
-
|
76
|
-
* No changes.
|
77
|
-
|
78
|
-
|
79
|
-
## Rails 5.2.4.1 (December 18, 2019) ##
|
80
|
-
|
81
|
-
* No changes.
|
82
|
-
|
83
|
-
|
84
|
-
## Rails 5.2.4 (November 27, 2019) ##
|
85
|
-
|
86
|
-
* Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
|
87
|
-
|
88
|
-
Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order
|
89
|
-
to make log level local to Ruby Fibers in addition to Threads.
|
90
|
-
|
91
|
-
Example:
|
92
|
-
|
93
|
-
logger = ActiveSupport::Logger.new(STDOUT)
|
94
|
-
logger.level = 1
|
95
|
-
p "Main is debug? #{logger.debug?}"
|
96
|
-
|
97
|
-
Fiber.new {
|
98
|
-
logger.local_level = 0
|
99
|
-
p "Thread is debug? #{logger.debug?}"
|
100
|
-
}.resume
|
101
|
-
|
102
|
-
p "Main is debug? #{logger.debug?}"
|
103
|
-
|
104
|
-
Before:
|
105
|
-
|
106
|
-
Main is debug? false
|
107
|
-
Thread is debug? true
|
108
|
-
Main is debug? true
|
109
|
-
|
110
|
-
After:
|
111
|
-
|
112
|
-
Main is debug? false
|
113
|
-
Thread is debug? true
|
114
|
-
Main is debug? false
|
115
|
-
|
116
|
-
*Alexander Varnin*
|
117
|
-
|
118
|
-
|
119
|
-
## Rails 5.2.3 (March 27, 2019) ##
|
120
|
-
|
121
|
-
* Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
|
122
|
-
|
123
|
-
`assoc` can now be called with either a string or a symbol.
|
7
|
+
* Remove deprecated `#acronym_regex` method from `Inflections`.
|
124
8
|
|
125
|
-
*
|
9
|
+
*Rafael Mendonça França*
|
126
10
|
|
127
11
|
* Fix `String#safe_constantize` throwing a `LoadError` for incorrectly cased constant references.
|
128
12
|
|
129
13
|
*Keenan Brock*
|
130
14
|
|
131
|
-
*
|
15
|
+
* Preserve key order passed to `ActiveSupport::CacheStore#fetch_multi`.
|
132
16
|
|
133
|
-
`
|
134
|
-
`Range#===`. `Range#===` works correctly on Ruby 2.6. `Range#include?` is moved
|
135
|
-
into a new file, with these two methods.
|
17
|
+
`fetch_multi(*names)` now returns its results in the same order as the `*names` requested, rather than returning cache hits followed by cache misses.
|
136
18
|
|
137
|
-
*
|
19
|
+
*Gannon McGibbon*
|
138
20
|
|
139
21
|
* If the same block is `included` multiple times for a Concern, an exception is no longer raised.
|
140
22
|
|
141
23
|
*Mark J. Titorenko*, *Vlad Bokov*
|
142
24
|
|
143
|
-
|
144
|
-
## Rails 5.2.2.1 (March 11, 2019) ##
|
145
|
-
|
146
|
-
* No changes.
|
147
|
-
|
148
|
-
|
149
|
-
## Rails 5.2.2 (December 04, 2018) ##
|
150
|
-
|
151
25
|
* Fix bug where `#to_options` for `ActiveSupport::HashWithIndifferentAccess`
|
152
26
|
would not act as alias for `#symbolize_keys`.
|
153
27
|
|
@@ -157,564 +31,286 @@
|
|
157
31
|
|
158
32
|
*Jan Habermann*, *Xavier Noria*
|
159
33
|
|
160
|
-
*
|
161
|
-
|
162
|
-
URI.unescape("\xe3\x83\x90") # => "バ"
|
163
|
-
URI.unescape("%E3%83%90") # => "バ"
|
164
|
-
URI.unescape("\xe3\x83\x90%E3%83%90") # => Encoding::CompatibilityError
|
165
|
-
|
166
|
-
*Ashe Connor*, *Aaron Patterson*
|
167
|
-
|
168
|
-
|
169
|
-
## Rails 5.2.1.1 (November 27, 2018) ##
|
170
|
-
|
171
|
-
* No changes.
|
172
|
-
|
173
|
-
|
174
|
-
## Rails 5.2.1 (August 07, 2018) ##
|
175
|
-
|
176
|
-
* Redis cache store: `delete_matched` no longer blocks the Redis server.
|
177
|
-
(Switches from evaled Lua to a batched SCAN + DEL loop.)
|
178
|
-
|
179
|
-
*Gleb Mazovetskiy*
|
180
|
-
|
181
|
-
* Fix bug where `ActiveSupport::Timezone.all` would fail when tzinfo data for
|
182
|
-
any timezone defined in `ActiveSupport::TimeZone::MAPPING` is missing.
|
183
|
-
|
184
|
-
*Dominik Sander*
|
185
|
-
|
186
|
-
* Fix bug where `ActiveSupport::Cache` will massively inflate the storage
|
187
|
-
size when compression is enabled (which is true by default). This patch
|
188
|
-
does not attempt to repair existing data: please manually flush the cache
|
189
|
-
to clear out the problematic entries.
|
190
|
-
|
191
|
-
*Godfrey Chan*
|
192
|
-
|
193
|
-
* Fix `ActiveSupport::Cache#read_multi` bug with local cache enabled that was
|
194
|
-
returning instances of `ActiveSupport::Cache::Entry` instead of the raw values.
|
195
|
-
|
196
|
-
*Jason Lee*
|
197
|
-
|
198
|
-
|
199
|
-
## Rails 5.2.0 (April 09, 2018) ##
|
200
|
-
|
201
|
-
* Caching: MemCache and Redis `read_multi` and `fetch_multi` speedup.
|
202
|
-
Read from the local in-memory cache before consulting the backend.
|
203
|
-
|
204
|
-
*Gabriel Sobrinho*
|
205
|
-
|
206
|
-
* Return all mappings for a timezone identifier in `country_zones`.
|
207
|
-
|
208
|
-
Some timezones like `Europe/London` have multiple mappings in
|
209
|
-
`ActiveSupport::TimeZone::MAPPING` so return all of them instead
|
210
|
-
of the first one found by using `Hash#value`. e.g:
|
211
|
-
|
212
|
-
# Before
|
213
|
-
ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
|
214
|
-
|
215
|
-
# After
|
216
|
-
ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh", "London"]
|
217
|
-
|
218
|
-
Fixes #31668.
|
219
|
-
|
220
|
-
*Andrew White*
|
221
|
-
|
222
|
-
* Add support for connection pooling on RedisCacheStore.
|
223
|
-
|
224
|
-
*fatkodima*
|
225
|
-
|
226
|
-
* Support hash as first argument in `assert_difference`. This allows to specify multiple
|
227
|
-
numeric differences in the same assertion.
|
34
|
+
* Deprecate `ActiveSupport::Multibyte::Unicode#pack_graphemes(array)` and `ActiveSuppport::Multibyte::Unicode#unpack_graphemes(string)`
|
35
|
+
in favor of `array.flatten.pack("U*")` and `string.scan(/\X/).map(&:codepoints)`, respectively.
|
228
36
|
|
229
|
-
|
37
|
+
*Francesco Rodríguez*
|
230
38
|
|
231
|
-
|
39
|
+
* Deprecate `ActiveSupport::Multibyte::Chars.consumes?` in favor of `String#is_utf8?`.
|
232
40
|
|
233
|
-
*
|
234
|
-
|
235
|
-
*Ignatius Reza Lesmana*
|
236
|
-
|
237
|
-
* `assert_changes` will always assert that the expression changes,
|
238
|
-
regardless of `from:` and `to:` argument combinations.
|
239
|
-
|
240
|
-
*Daniel Ma*
|
241
|
-
|
242
|
-
* Use SHA-1 to generate non-sensitive digests, such as the ETag header.
|
243
|
-
|
244
|
-
Enabled by default for new apps; upgrading apps can opt in by setting
|
245
|
-
`config.active_support.use_sha1_digests = true`.
|
246
|
-
|
247
|
-
*Dmitri Dolguikh*, *Eugene Kenny*
|
248
|
-
|
249
|
-
* Changed default behaviour of `ActiveSupport::SecurityUtils.secure_compare`,
|
250
|
-
to make it not leak length information even for variable length string.
|
251
|
-
|
252
|
-
Renamed old `ActiveSupport::SecurityUtils.secure_compare` to `fixed_length_secure_compare`,
|
253
|
-
and started raising `ArgumentError` in case of length mismatch of passed strings.
|
254
|
-
|
255
|
-
*Vipul A M*
|
256
|
-
|
257
|
-
* Make `ActiveSupport::TimeZone.all` return only time zones that are in
|
258
|
-
`ActiveSupport::TimeZone::MAPPING`.
|
259
|
-
|
260
|
-
Fixes #7245.
|
261
|
-
|
262
|
-
*Chris LaRose*
|
263
|
-
|
264
|
-
* MemCacheStore: Support expiring counters.
|
265
|
-
|
266
|
-
Pass `expires_in: [seconds]` to `#increment` and `#decrement` options
|
267
|
-
to set the Memcached TTL (time-to-live) if the counter doesn't exist.
|
268
|
-
If the counter exists, Memcached doesn't extend its expiry when it's
|
269
|
-
incremented or decremented.
|
270
|
-
|
271
|
-
```
|
272
|
-
Rails.cache.increment("my_counter", 1, expires_in: 2.minutes)
|
273
|
-
```
|
274
|
-
|
275
|
-
*Takumasa Ochi*
|
276
|
-
|
277
|
-
* Handle `TZInfo::AmbiguousTime` errors.
|
278
|
-
|
279
|
-
Make `ActiveSupport::TimeWithZone` match Ruby's handling of ambiguous
|
280
|
-
times by choosing the later period, e.g.
|
281
|
-
|
282
|
-
Ruby:
|
283
|
-
```
|
284
|
-
ENV["TZ"] = "Europe/Moscow"
|
285
|
-
Time.local(2014, 10, 26, 1, 0, 0) # => 2014-10-26 01:00:00 +0300
|
286
|
-
```
|
287
|
-
|
288
|
-
Before:
|
289
|
-
```
|
290
|
-
>> "2014-10-26 01:00:00".in_time_zone("Moscow")
|
291
|
-
TZInfo::AmbiguousTime: 26/10/2014 01:00 is an ambiguous local time.
|
292
|
-
```
|
293
|
-
|
294
|
-
After:
|
295
|
-
```
|
296
|
-
>> "2014-10-26 01:00:00".in_time_zone("Moscow")
|
297
|
-
=> Sun, 26 Oct 2014 01:00:00 MSK +03:00
|
298
|
-
```
|
299
|
-
|
300
|
-
Fixes #17395.
|
301
|
-
|
302
|
-
*Andrew White*
|
303
|
-
|
304
|
-
* Redis cache store.
|
41
|
+
*Francesco Rodríguez*
|
305
42
|
|
43
|
+
* Fix duration being rounded to a full second.
|
306
44
|
```
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
# Supports all common cache store options (:namespace, :compress,
|
311
|
-
# :compress_threshold, :expires_in, :race_condition_ttl) and all
|
312
|
-
# Redis options.
|
313
|
-
cache_password = Rails.application.secrets.redis_cache_password
|
314
|
-
config.cache_store = :redis_cache_store, driver: :hiredis,
|
315
|
-
namespace: 'myapp-cache', compress: true, timeout: 1,
|
316
|
-
url: "redis://:#{cache_password}@myapp-cache-1:6379/0"
|
317
|
-
|
318
|
-
# Supports Redis::Distributed with multiple hosts
|
319
|
-
config.cache_store = :redis_cache_store, driver: :hiredis
|
320
|
-
namespace: 'myapp-cache', compress: true,
|
321
|
-
url: %w[
|
322
|
-
redis://myapp-cache-1:6379/0
|
323
|
-
redis://myapp-cache-1:6380/0
|
324
|
-
redis://myapp-cache-2:6379/0
|
325
|
-
redis://myapp-cache-2:6380/0
|
326
|
-
redis://myapp-cache-3:6379/0
|
327
|
-
redis://myapp-cache-3:6380/0
|
328
|
-
]
|
329
|
-
|
330
|
-
# Or pass a builder block
|
331
|
-
config.cache_store = :redis_cache_store,
|
332
|
-
namespace: 'myapp-cache', compress: true,
|
333
|
-
redis: -> { Redis.new … }
|
45
|
+
time = DateTime.parse("2018-1-1")
|
46
|
+
time += 0.51.seconds
|
334
47
|
```
|
48
|
+
Will now correctly add 0.51 second and not 1 full second.
|
335
49
|
|
336
|
-
|
337
|
-
than pointing this at your existing Redis server. It won't cope well
|
338
|
-
with mixed usage patterns and it won't expire cache entries by default.
|
50
|
+
*Edouard Chin*
|
339
51
|
|
340
|
-
|
52
|
+
* Deprecate `ActiveSupport::Multibyte::Unicode#normalize` and `ActiveSuppport::Multibyte::Chars#normalize`
|
53
|
+
in favor of `String#unicode_normalize`
|
341
54
|
|
342
|
-
*
|
55
|
+
*Francesco Rodríguez*
|
343
56
|
|
344
|
-
*
|
57
|
+
* Deprecate `ActiveSupport::Multibyte::Unicode#downcase/upcase/swapcase` in favor of
|
58
|
+
`String#downcase/upcase/swapcase`.
|
345
59
|
|
346
|
-
|
347
|
-
It wasn't enabled by default due to CPU cost. Today it's cheap and typical
|
348
|
-
cache data is eminently compressible, such as HTML or JSON fragments.
|
349
|
-
Compression dramatically reduces Memcached/Redis mem usage, which means
|
350
|
-
the same cache servers can store more data, which means higher hit rates.
|
60
|
+
*Francesco Rodríguez*
|
351
61
|
|
352
|
-
|
62
|
+
* Add `ActiveSupport::ParameterFilter`.
|
353
63
|
|
354
|
-
*
|
64
|
+
*Yoshiyuki Kinjo*
|
355
65
|
|
356
|
-
*
|
66
|
+
* Rename `Module#parent`, `Module#parents`, and `Module#parent_name` to
|
67
|
+
`module_parent`, `module_parents`, and `module_parent_name`.
|
357
68
|
|
358
|
-
|
359
|
-
Ruby's handling of Time ranges and as a consequence `include?`
|
360
|
-
stopped working with both Time ranges and TWZ ranges. However in
|
361
|
-
ruby/ruby@b061634 support was added for `include?` to use `cover?`
|
362
|
-
for 'linear' objects. Since we have no way of making Ruby consider
|
363
|
-
TWZ instances as 'linear' we have to override `Range#include?`.
|
69
|
+
*Gannon McGibbon*
|
364
70
|
|
365
|
-
|
71
|
+
* Deprecate the use of `LoggerSilence` in favor of `ActiveSupport::LoggerSilence`
|
366
72
|
|
367
|
-
*
|
73
|
+
*Edouard Chin*
|
368
74
|
|
369
|
-
*
|
75
|
+
* Deprecate using negative limits in `String#first` and `String#last`.
|
370
76
|
|
371
|
-
|
372
|
-
the match wasn't being lowercased before being looked up in the hash.
|
373
|
-
This shouldn't have any performance impact because before it would
|
374
|
-
fail to find the acronym and perform the `downcase` operation anyway.
|
77
|
+
*Gannon McGibbon*, *Eric Turner*
|
375
78
|
|
376
|
-
|
79
|
+
* Fix bug where `#without` for `ActiveSupport::HashWithIndifferentAccess` would fail
|
80
|
+
with symbol arguments
|
377
81
|
|
378
|
-
*
|
82
|
+
*Abraham Chan*
|
379
83
|
|
380
|
-
*
|
381
|
-
|
84
|
+
* Treat `#delete_prefix`, `#delete_suffix` and `#unicode_normalize` results as non-`html_safe`.
|
85
|
+
Ensure safety of arguments for `#insert`, `#[]=` and `#replace` calls on `html_safe` Strings.
|
382
86
|
|
383
|
-
|
87
|
+
*Janosch Müller*
|
384
88
|
|
385
|
-
|
386
|
-
|
387
|
-
Time.new(2017, 9, 16, 17, 0).prev_year # => 2016-09-16 17:00:00 +0300
|
388
|
-
Time.new(2017, 9, 16, 17, 0).prev_year(1)
|
389
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
89
|
+
* Changed `ActiveSupport::TaggedLogging.new` to return a new logger instance instead
|
90
|
+
of mutating the one received as parameter.
|
390
91
|
|
391
|
-
|
392
|
-
Time.new(2017, 9, 16, 17, 0).next_year(1)
|
393
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
394
|
-
```
|
92
|
+
*Thierry Joyal*
|
395
93
|
|
396
|
-
|
397
|
-
```
|
398
|
-
Time.new(2017, 9, 16, 17, 0).prev_year # => 2016-09-16 17:00:00 +0300
|
399
|
-
Time.new(2017, 9, 16, 17, 0).prev_year(1) # => 2016-09-16 17:00:00 +0300
|
94
|
+
* Define `unfreeze_time` as an alias of `travel_back` in `ActiveSupport::Testing::TimeHelpers`.
|
400
95
|
|
401
|
-
|
402
|
-
Time.new(2017, 9, 16, 17, 0).next_year(1) # => 2018-09-16 17:00:00 +0300
|
403
|
-
```
|
96
|
+
The alias is provided for symmetry with `freeze_time`.
|
404
97
|
|
405
|
-
*
|
98
|
+
*Ryan Davidson*
|
406
99
|
|
407
|
-
* Add
|
408
|
-
in accordance with `Date#prev_month`, `Date#next_month`.
|
100
|
+
* Add support for tracing constant autoloads. Just throw
|
409
101
|
|
410
|
-
|
102
|
+
ActiveSupport::Dependencies.logger = Rails.logger
|
103
|
+
ActiveSupport::Dependencies.verbose = true
|
411
104
|
|
412
|
-
|
413
|
-
```
|
414
|
-
Time.new(2017, 9, 16, 17, 0).prev_month # => 2017-08-16 17:00:00 +0300
|
415
|
-
Time.new(2017, 9, 16, 17, 0).prev_month(1)
|
416
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
105
|
+
in an initializer.
|
417
106
|
|
418
|
-
|
419
|
-
Time.new(2017, 9, 16, 17, 0).next_month(1)
|
420
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
421
|
-
```
|
107
|
+
*Xavier Noria*
|
422
108
|
|
423
|
-
|
424
|
-
```
|
425
|
-
Time.new(2017, 9, 16, 17, 0).prev_month # => 2017-08-16 17:00:00 +0300
|
426
|
-
Time.new(2017, 9, 16, 17, 0).prev_month(1) # => 2017-08-16 17:00:00 +0300
|
109
|
+
* Maintain `html_safe?` on html_safe strings when sliced.
|
427
110
|
|
428
|
-
|
429
|
-
|
430
|
-
```
|
111
|
+
string = "<div>test</div>".html_safe
|
112
|
+
string[-1..1].html_safe? # => true
|
431
113
|
|
432
|
-
*
|
114
|
+
*Elom Gomez*, *Yumin Wong*
|
433
115
|
|
434
|
-
* Add
|
435
|
-
in accordance with `Date#prev_day`, `Date#next_day`.
|
116
|
+
* Add `Array#extract!`.
|
436
117
|
|
437
|
-
|
118
|
+
The method removes and returns the elements for which the block returns a true value.
|
119
|
+
If no block is given, an Enumerator is returned instead.
|
438
120
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
Time.new(2017, 9, 16, 17, 0).prev_day(1)
|
443
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
444
|
-
|
445
|
-
Time.new(2017, 9, 16, 17, 0).next_day # => 2017-09-17 17:00:00 +0300
|
446
|
-
Time.new(2017, 9, 16, 17, 0).next_day(1)
|
447
|
-
# => ArgumentError: wrong number of arguments (given 1, expected 0)
|
448
|
-
```
|
449
|
-
|
450
|
-
After:
|
451
|
-
```
|
452
|
-
Time.new(2017, 9, 16, 17, 0).prev_day # => 2017-09-15 17:00:00 +0300
|
453
|
-
Time.new(2017, 9, 16, 17, 0).prev_day(1) # => 2017-09-15 17:00:00 +0300
|
454
|
-
|
455
|
-
Time.new(2017, 9, 16, 17, 0).next_day # => 2017-09-17 17:00:00 +0300
|
456
|
-
Time.new(2017, 9, 16, 17, 0).next_day(1) # => 2017-09-17 17:00:00 +0300
|
457
|
-
```
|
121
|
+
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
122
|
+
odd_numbers = numbers.extract! { |number| number.odd? } # => [1, 3, 5, 7, 9]
|
123
|
+
numbers # => [0, 2, 4, 6, 8]
|
458
124
|
|
459
125
|
*bogdanvlviv*
|
460
126
|
|
461
|
-
*
|
462
|
-
attempting to convert to an array. This fixes a bug where `IO#to_json`
|
463
|
-
would raise an `IOError` when called on an unreadable object.
|
127
|
+
* Support not to cache `nil` for `ActiveSupport::Cache#fetch`.
|
464
128
|
|
465
|
-
|
129
|
+
cache.fetch('bar', skip_nil: true) { nil }
|
130
|
+
cache.exist?('bar') # => false
|
466
131
|
|
467
|
-
*
|
132
|
+
*Martin Hong*
|
468
133
|
|
469
|
-
*
|
134
|
+
* Add "event object" support to the notification system.
|
135
|
+
Before this change, end users were forced to create hand made artisanal
|
136
|
+
event objects on their own, like this:
|
470
137
|
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
*Rafael Mendonça França*
|
138
|
+
ActiveSupport::Notifications.subscribe('wait') do |*args|
|
139
|
+
@event = ActiveSupport::Notifications::Event.new(*args)
|
140
|
+
end
|
476
141
|
|
477
|
-
|
142
|
+
ActiveSupport::Notifications.instrument('wait') do
|
143
|
+
sleep 1
|
144
|
+
end
|
478
145
|
|
479
|
-
|
146
|
+
@event.duration # => 1000.138
|
480
147
|
|
481
|
-
|
148
|
+
After this change, if the block passed to `subscribe` only takes one
|
149
|
+
parameter, the framework will yield an event object to the block. Now
|
150
|
+
end users are no longer required to make their own:
|
482
151
|
|
483
|
-
|
484
|
-
|
152
|
+
ActiveSupport::Notifications.subscribe('wait') do |event|
|
153
|
+
@event = event
|
154
|
+
end
|
485
155
|
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
applications to `secret_key_base`.
|
156
|
+
ActiveSupport::Notifications.instrument('wait') do
|
157
|
+
sleep 1
|
158
|
+
end
|
490
159
|
|
491
|
-
|
160
|
+
p @event.allocations # => 7
|
161
|
+
p @event.cpu_time # => 0.256
|
162
|
+
p @event.idle_time # => 1003.2399
|
492
163
|
|
493
|
-
|
164
|
+
Now you can enjoy event objects without making them yourself. Neat!
|
494
165
|
|
495
|
-
*
|
166
|
+
*Aaron "t.lo" Patterson*
|
496
167
|
|
497
|
-
* Add
|
168
|
+
* Add cpu_time, idle_time, and allocations to Event.
|
498
169
|
|
499
|
-
|
500
|
-
`MessageVerifier` classes. This method accepts the same arguments and
|
501
|
-
options as the given classes' constructor. The `encrypt_and_verify` method
|
502
|
-
for `MessageEncryptor` and the `verified` method for `MessageVerifier` also
|
503
|
-
accept an optional keyword argument `:on_rotation` block which is called
|
504
|
-
when a rotated instance is used to decrypt or verify the message.
|
170
|
+
*Eileen M. Uchitelle*, *Aaron Patterson*
|
505
171
|
|
506
|
-
|
507
|
-
|
508
|
-
* Deprecate `Module#reachable?` method.
|
509
|
-
|
510
|
-
*bogdanvlviv*
|
172
|
+
* RedisCacheStore: support key expiry in increment/decrement.
|
511
173
|
|
512
|
-
|
174
|
+
Pass `:expires_in` to `#increment` and `#decrement` to set a Redis EXPIRE on the key.
|
513
175
|
|
514
|
-
|
515
|
-
directly in repo encrypted with `config/master.key` or `ENV["RAILS_MASTER_KEY"]`.
|
176
|
+
If the key is already set to expire, RedisCacheStore won't extend its expiry.
|
516
177
|
|
517
|
-
|
518
|
-
secrets introduced in Rails 5.1.
|
178
|
+
Rails.cache.increment("some_key", 1, expires_in: 2.minutes)
|
519
179
|
|
520
|
-
*
|
521
|
-
|
522
|
-
* Add `ActiveSupport::EncryptedFile` and `ActiveSupport::EncryptedConfiguration`.
|
523
|
-
|
524
|
-
Allows for stashing encrypted files or configuration directly in repo by
|
525
|
-
encrypting it with a key.
|
526
|
-
|
527
|
-
Backs the new credentials setup above, but can also be used independently.
|
528
|
-
|
529
|
-
*DHH*, *Kasper Timm Hansen*
|
530
|
-
|
531
|
-
* `Module#delegate_missing_to` now raises `DelegationError` if target is nil,
|
532
|
-
similar to `Module#delegate`.
|
533
|
-
|
534
|
-
*Anton Khamets*
|
535
|
-
|
536
|
-
* Update `String#camelize` to provide feedback when wrong option is passed.
|
537
|
-
|
538
|
-
`String#camelize` was returning nil without any feedback when an
|
539
|
-
invalid option was passed as a parameter.
|
540
|
-
|
541
|
-
Previously:
|
542
|
-
|
543
|
-
'one_two'.camelize(true)
|
544
|
-
# => nil
|
545
|
-
|
546
|
-
Now:
|
547
|
-
|
548
|
-
'one_two'.camelize(true)
|
549
|
-
# => ArgumentError: Invalid option, use either :upper or :lower.
|
180
|
+
*Jason Lee*
|
550
181
|
|
551
|
-
|
182
|
+
* Allow `Range#===` and `Range#cover?` on Range.
|
552
183
|
|
553
|
-
|
184
|
+
`Range#cover?` can now accept a range argument like `Range#include?` and
|
185
|
+
`Range#===`. `Range#===` works correctly on Ruby 2.6. `Range#include?` is moved
|
186
|
+
into a new file, with these two methods.
|
554
187
|
|
555
|
-
|
556
|
-
|
557
|
-
an expression. However, the implementation was missing support for modulo
|
558
|
-
operations. This support has now been added and should result in a duration
|
559
|
-
being returned from expressions involving modulo operations.
|
188
|
+
*Requiring active_support/core_ext/range/include_range is now deprecated.*
|
189
|
+
*Use `require "active_support/core_ext/range/compare_range"` instead.*
|
560
190
|
|
561
|
-
|
191
|
+
*utilum*
|
562
192
|
|
563
|
-
|
564
|
-
# => 60
|
193
|
+
* Add `index_with` to Enumerable.
|
565
194
|
|
566
|
-
|
195
|
+
Allows creating a hash from an enumerable with the value from a passed block
|
196
|
+
or a default argument.
|
567
197
|
|
568
|
-
|
569
|
-
# =>
|
198
|
+
%i( title body ).index_with { |attr| post.public_send(attr) }
|
199
|
+
# => { title: "hey", body: "what's up?" }
|
570
200
|
|
571
|
-
|
201
|
+
%i( title body ).index_with(nil)
|
202
|
+
# => { title: nil, body: nil }
|
572
203
|
|
573
|
-
|
204
|
+
Closely linked with `index_by`, which creates a hash where the keys are extracted from a block.
|
574
205
|
|
575
|
-
*
|
206
|
+
*Kasper Timm Hansen*
|
576
207
|
|
577
|
-
|
578
|
-
|
579
|
-
return a `Numeric`. The behavior of previous versions of Rails has been restored.
|
208
|
+
* Fix bug where `ActiveSupport::Timezone.all` would fail when tzinfo data for
|
209
|
+
any timezone defined in `ActiveSupport::TimeZone::MAPPING` is missing.
|
580
210
|
|
581
|
-
|
211
|
+
*Dominik Sander*
|
582
212
|
|
583
|
-
|
213
|
+
* Redis cache store: `delete_matched` no longer blocks the Redis server.
|
214
|
+
(Switches from evaled Lua to a batched SCAN + DEL loop.)
|
584
215
|
|
585
|
-
*
|
586
|
-
`ActiveSupport::MessageEncryptor`.
|
216
|
+
*Gleb Mazovetskiy*
|
587
217
|
|
588
|
-
|
218
|
+
* Fix bug where `ActiveSupport::Cache` will massively inflate the storage
|
219
|
+
size when compression is enabled (which is true by default). This patch
|
220
|
+
does not attempt to repair existing data: please manually flush the cache
|
221
|
+
to clear out the problematic entries.
|
589
222
|
|
590
|
-
|
223
|
+
*Godfrey Chan*
|
591
224
|
|
592
|
-
|
593
|
-
@verifier.verified(token) # => nil
|
225
|
+
* Fix bug where `URI.unescape` would fail with mixed Unicode/escaped character input:
|
594
226
|
|
595
|
-
|
227
|
+
URI.unescape("\xe3\x83\x90") # => "バ"
|
228
|
+
URI.unescape("%E3%83%90") # => "バ"
|
229
|
+
URI.unescape("\xe3\x83\x90%E3%83%90") # => Encoding::CompatibilityError
|
596
230
|
|
597
|
-
|
598
|
-
@verifier.generate("y", expires_at: Time.now.end_of_year)
|
231
|
+
*Ashe Connor*, *Aaron Patterson*
|
599
232
|
|
600
|
-
|
601
|
-
`
|
233
|
+
* Add `before?` and `after?` methods to `Date`, `DateTime`,
|
234
|
+
`Time`, and `TimeWithZone`.
|
602
235
|
|
603
|
-
|
236
|
+
*Nick Holden*
|
604
237
|
|
605
|
-
|
238
|
+
* `ActiveSupport::Inflector#ordinal` and `ActiveSupport::Inflector#ordinalize` now support
|
239
|
+
translations through I18n.
|
606
240
|
|
607
|
-
|
241
|
+
# locale/fr.rb
|
608
242
|
|
609
|
-
|
243
|
+
{
|
244
|
+
fr: {
|
245
|
+
number: {
|
246
|
+
nth: {
|
247
|
+
ordinals: lambda do |_key, number:, **_options|
|
248
|
+
if number.to_i.abs == 1
|
249
|
+
'er'
|
250
|
+
else
|
251
|
+
'e'
|
252
|
+
end
|
253
|
+
end,
|
610
254
|
|
611
|
-
|
255
|
+
ordinalized: lambda do |_key, number:, **_options|
|
256
|
+
"#{number}#{ActiveSupport::Inflector.ordinal(number)}"
|
257
|
+
end
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
612
262
|
|
613
|
-
*Prathamesh Sonpatki*
|
614
263
|
|
615
|
-
*
|
264
|
+
*Christian Blais*
|
616
265
|
|
617
|
-
|
618
|
-
|
266
|
+
* Add `:private` option to ActiveSupport's `Module#delegate`
|
267
|
+
in order to delegate methods as private:
|
619
268
|
|
620
|
-
|
269
|
+
class User < ActiveRecord::Base
|
270
|
+
has_one :profile
|
271
|
+
delegate :date_of_birth, to: :profile, private: true
|
621
272
|
|
622
|
-
|
273
|
+
def age
|
274
|
+
Date.today.year - date_of_birth.year
|
275
|
+
end
|
276
|
+
end
|
623
277
|
|
624
|
-
|
278
|
+
# User.new.age # => 29
|
279
|
+
# User.new.date_of_birth
|
280
|
+
# => NoMethodError: private method `date_of_birth' called for #<User:0x00000008221340>
|
625
281
|
|
626
|
-
|
627
|
-
Keys that aren't found may be written to the cache store in one shot
|
628
|
-
instead of separate writes.
|
282
|
+
*Tomas Valent*
|
629
283
|
|
630
|
-
|
631
|
-
|
632
|
-
Redis `MSET`.
|
284
|
+
* `String#truncate_bytes` to truncate a string to a maximum bytesize without
|
285
|
+
breaking multibyte characters or grapheme clusters like 👩👩👦👦.
|
633
286
|
|
634
287
|
*Jeremy Daer*
|
635
288
|
|
636
|
-
*
|
637
|
-
|
638
|
-
mattr_accessor :settings, default: {}
|
639
|
-
|
640
|
-
Works for `mattr_reader`, `mattr_writer`, `cattr_accessor`, `cattr_reader`,
|
641
|
-
and `cattr_writer` as well.
|
642
|
-
|
643
|
-
*Genadi Samokovarov*
|
644
|
-
|
645
|
-
* Add `Date#prev_occurring` and `Date#next_occurring` to return specified next/previous occurring day of week.
|
646
|
-
|
647
|
-
*Shota Iguchi*
|
648
|
-
|
649
|
-
* Add default option to `class_attribute`.
|
650
|
-
|
651
|
-
Before:
|
652
|
-
|
653
|
-
class_attribute :settings
|
654
|
-
self.settings = {}
|
655
|
-
|
656
|
-
Now:
|
657
|
-
|
658
|
-
class_attribute :settings, default: {}
|
289
|
+
* `String#strip_heredoc` preserves frozenness.
|
659
290
|
|
660
|
-
|
291
|
+
"foo".freeze.strip_heredoc.frozen? # => true
|
661
292
|
|
662
|
-
|
293
|
+
Fixes that frozen string literals would inadvertently become unfrozen:
|
663
294
|
|
664
|
-
|
295
|
+
# frozen_string_literal: true
|
665
296
|
|
666
|
-
|
667
|
-
|
297
|
+
foo = <<-MSG.strip_heredoc
|
298
|
+
la la la
|
299
|
+
MSG
|
668
300
|
|
669
|
-
|
301
|
+
foo.frozen? # => false !??
|
670
302
|
|
671
|
-
*
|
672
|
-
|
673
|
-
Previously, calculations where the scalar is first would be converted to a duration
|
674
|
-
of seconds, but this causes issues with dates being converted to times, e.g:
|
675
|
-
|
676
|
-
Time.zone = "Beijing" # => Asia/Shanghai
|
677
|
-
date = Date.civil(2017, 5, 20) # => Mon, 20 May 2017
|
678
|
-
2 * 1.day # => 172800 seconds
|
679
|
-
date + 2 * 1.day # => Mon, 22 May 2017 00:00:00 CST +08:00
|
680
|
-
|
681
|
-
Now, the `ActiveSupport::Duration::Scalar` calculation methods will try to maintain
|
682
|
-
the part structure of the duration where possible, e.g:
|
683
|
-
|
684
|
-
Time.zone = "Beijing" # => Asia/Shanghai
|
685
|
-
date = Date.civil(2017, 5, 20) # => Mon, 20 May 2017
|
686
|
-
2 * 1.day # => 2 days
|
687
|
-
date + 2 * 1.day # => Mon, 22 May 2017
|
688
|
-
|
689
|
-
Fixes #29160, #28970.
|
690
|
-
|
691
|
-
*Andrew White*
|
692
|
-
|
693
|
-
* Add support for versioned cache entries. This enables the cache stores to recycle cache keys, greatly saving
|
694
|
-
on storage in cases with frequent churn. Works together with the separation of `#cache_key` and `#cache_version`
|
695
|
-
in Active Record and its use in Action Pack's fragment caching.
|
696
|
-
|
697
|
-
*DHH*
|
698
|
-
|
699
|
-
* Pass gem name and deprecation horizon to deprecation notifications.
|
700
|
-
|
701
|
-
*Willem van Bergen*
|
702
|
-
|
703
|
-
* Add support for `:offset` and `:zone` to `ActiveSupport::TimeWithZone#change`.
|
704
|
-
|
705
|
-
*Andrew White*
|
706
|
-
|
707
|
-
* Add support for `:offset` to `Time#change`.
|
303
|
+
*Jeremy Daer*
|
708
304
|
|
709
|
-
|
305
|
+
* Rails 6 requires Ruby 2.5.0 or newer.
|
710
306
|
|
711
|
-
*
|
307
|
+
*Jeremy Daer*, *Kasper Timm Hansen*
|
712
308
|
|
713
|
-
*
|
309
|
+
* Adds parallel testing to Rails.
|
714
310
|
|
715
|
-
|
311
|
+
Parallelize your test suite with forked processes or threads.
|
716
312
|
|
717
|
-
*
|
313
|
+
*Eileen M. Uchitelle*, *Aaron Patterson*
|
718
314
|
|
719
315
|
|
720
|
-
Please check [5-
|
316
|
+
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activesupport/CHANGELOG.md) for previous changes.
|