activesupport 8.0.0.rc2 → 8.0.0.1
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 +10 -0
- data/lib/active_support/cache.rb +2 -2
- data/lib/active_support/core_ext/date_and_time/compatibility.rb +1 -1
- data/lib/active_support/core_ext/time/compatibility.rb +9 -1
- data/lib/active_support/gem_version.rb +1 -1
- data/lib/active_support/testing/assertions.rb +1 -1
- data/lib/active_support.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c85fb4feaab6bdc90cc10e0605e5933ed3ade33d530f64c2bc2dfa52982e36
|
4
|
+
data.tar.gz: 9a93c397cc744ef297479159ef3796e821ae64fe36613ca7ccf8466e42cc4838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd41a33f8623947ba884dc425f416ad44195cd778649223ed37e40d481d9b8b9079d8e8ece0202d3837341e30589676b6b0eba5676724a183e00bd4f03bd5e7
|
7
|
+
data.tar.gz: '009219b148292ecff2ba70d4d9201ed919dfb445ddbbf752b57adef3ed9b37d2c96b47e8d51f0b3db72dc620702eb7f6817262e389b6d7a3b495ab8655a0babd'
|
data/CHANGELOG.md
CHANGED
data/lib/active_support/cache.rb
CHANGED
@@ -286,7 +286,7 @@ module ActiveSupport
|
|
286
286
|
# <tt>coder: nil</tt> to avoid the overhead of safeguarding against
|
287
287
|
# mutation.
|
288
288
|
#
|
289
|
-
# The +:coder+ option is
|
289
|
+
# The +:coder+ option is mutually exclusive with the +:serializer+ and
|
290
290
|
# +:compressor+ options. Specifying them together will raise an
|
291
291
|
# +ArgumentError+.
|
292
292
|
#
|
@@ -419,7 +419,7 @@ module ActiveSupport
|
|
419
419
|
# t1.join
|
420
420
|
#
|
421
421
|
# p val_1 # => "new value 1"
|
422
|
-
# p val_2 # => "
|
422
|
+
# p val_2 # => "original value"
|
423
423
|
# p cache.fetch("foo") # => "new value 1"
|
424
424
|
#
|
425
425
|
# # The entry requires 3 seconds to expire (expires_in + race_condition_ttl)
|
@@ -26,7 +26,7 @@ module DateAndTime
|
|
26
26
|
# Only warn once, the first time the value is used (which should
|
27
27
|
# be the first time #to_time is called).
|
28
28
|
ActiveSupport.deprecator.warn(
|
29
|
-
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.
|
29
|
+
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1." \
|
30
30
|
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
|
31
31
|
)
|
32
32
|
|
@@ -15,10 +15,18 @@ class Time
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def preserve_timezone # :nodoc:
|
18
|
-
|
18
|
+
system_local_time? || super
|
19
19
|
end
|
20
20
|
|
21
21
|
private
|
22
|
+
def system_local_time?
|
23
|
+
if ::Time.equal?(self.class)
|
24
|
+
zone = self.zone
|
25
|
+
String === zone &&
|
26
|
+
(zone != "UTC" || active_support_local_zone == "UTC")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
22
30
|
@@active_support_local_tz = nil
|
23
31
|
|
24
32
|
def active_support_local_zone
|
@@ -324,7 +324,7 @@ module ActiveSupport
|
|
324
324
|
source.delete_prefix!("{")
|
325
325
|
source.strip!
|
326
326
|
# It won't read nice if the callable contains multiple
|
327
|
-
# lines, and it should be a rare
|
327
|
+
# lines, and it should be a rare occurrence anyway.
|
328
328
|
# Same if it takes arguments.
|
329
329
|
if !source.include?("\n") && !source.start_with?("|")
|
330
330
|
return source
|
data/lib/active_support.rb
CHANGED
@@ -118,12 +118,12 @@ module ActiveSupport
|
|
118
118
|
def self.to_time_preserves_timezone=(value)
|
119
119
|
if !value
|
120
120
|
ActiveSupport.deprecator.warn(
|
121
|
-
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.
|
121
|
+
"`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. " \
|
122
122
|
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
|
123
123
|
)
|
124
124
|
elsif value != :zone
|
125
125
|
ActiveSupport.deprecator.warn(
|
126
|
-
"`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.
|
126
|
+
"`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.1. " \
|
127
127
|
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
|
128
128
|
)
|
129
129
|
end
|
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: 8.0.0.
|
4
|
+
version: 8.0.0.1
|
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: 2024-10
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -495,10 +495,10 @@ licenses:
|
|
495
495
|
- MIT
|
496
496
|
metadata:
|
497
497
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
498
|
-
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.
|
499
|
-
documentation_uri: https://api.rubyonrails.org/v8.0.0.
|
498
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.1/activesupport/CHANGELOG.md
|
499
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.1/
|
500
500
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
501
|
-
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.
|
501
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.1/activesupport
|
502
502
|
rubygems_mfa_required: 'true'
|
503
503
|
post_install_message:
|
504
504
|
rdoc_options:
|
@@ -517,7 +517,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
517
517
|
- !ruby/object:Gem::Version
|
518
518
|
version: '0'
|
519
519
|
requirements: []
|
520
|
-
rubygems_version: 3.5.
|
520
|
+
rubygems_version: 3.5.22
|
521
521
|
signing_key:
|
522
522
|
specification_version: 4
|
523
523
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|