activesupport 6.0.4.4 → 6.0.4.5
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 +5 -0
- data/lib/active_support/execution_wrapper.rb +16 -13
- data/lib/active_support/gem_version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9508faca3fe6c987d450b2c53f5f3d223b0d667991c19cf515109140b7066955
|
|
4
|
+
data.tar.gz: 435c505c549a6e3fa046f5b9833ff927ce0f57b46684828a98b7e157c069f573
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e2bd0fc43da4248714a20ef888479d3510dc6e007e0dc10db5bae8bcd9fa36c06548184366f4adc3ba5fdd290ef12654cd341e0fe6df372a0c047d5fc4caeea
|
|
7
|
+
data.tar.gz: eab82f642cb3d1786bcfb54b7e2af64dc003c3a0511f5bf851c6c82dde35a3fd7eedeb65f8fdc496b03ac645ef1e56f4f9405feb03b1cd9e483b49a18f5ca9eb
|
data/CHANGELOG.md
CHANGED
|
@@ -63,18 +63,21 @@ module ActiveSupport
|
|
|
63
63
|
# after the work has been performed.
|
|
64
64
|
#
|
|
65
65
|
# Where possible, prefer +wrap+.
|
|
66
|
-
def self.run!
|
|
67
|
-
if
|
|
68
|
-
|
|
66
|
+
def self.run!(reset: false)
|
|
67
|
+
if reset
|
|
68
|
+
lost_instance = active.delete(Thread.current)
|
|
69
|
+
lost_instance&.complete!
|
|
69
70
|
else
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
return Null if active?
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
new.tap do |instance|
|
|
75
|
+
success = nil
|
|
76
|
+
begin
|
|
77
|
+
instance.run!
|
|
78
|
+
success = true
|
|
79
|
+
ensure
|
|
80
|
+
instance.complete! unless success
|
|
78
81
|
end
|
|
79
82
|
end
|
|
80
83
|
end
|
|
@@ -103,11 +106,11 @@ module ActiveSupport
|
|
|
103
106
|
self.active = Concurrent::Hash.new
|
|
104
107
|
|
|
105
108
|
def self.active? # :nodoc:
|
|
106
|
-
@active
|
|
109
|
+
@active.key?(Thread.current)
|
|
107
110
|
end
|
|
108
111
|
|
|
109
112
|
def run! # :nodoc:
|
|
110
|
-
self.class.active[Thread.current] =
|
|
113
|
+
self.class.active[Thread.current] = self
|
|
111
114
|
run_callbacks(:run)
|
|
112
115
|
end
|
|
113
116
|
|
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: 6.0.4.
|
|
4
|
+
version: 6.0.4.5
|
|
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:
|
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|
|
@@ -359,11 +359,11 @@ licenses:
|
|
|
359
359
|
- MIT
|
|
360
360
|
metadata:
|
|
361
361
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
362
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.4.
|
|
363
|
-
documentation_uri: https://api.rubyonrails.org/v6.0.4.
|
|
362
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.4.5/activesupport/CHANGELOG.md
|
|
363
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.4.5/
|
|
364
364
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
365
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.4.
|
|
366
|
-
post_install_message:
|
|
365
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.4.5/activesupport
|
|
366
|
+
post_install_message:
|
|
367
367
|
rdoc_options:
|
|
368
368
|
- "--encoding"
|
|
369
369
|
- UTF-8
|
|
@@ -380,8 +380,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
380
380
|
- !ruby/object:Gem::Version
|
|
381
381
|
version: '0'
|
|
382
382
|
requirements: []
|
|
383
|
-
rubygems_version: 3.2.
|
|
384
|
-
signing_key:
|
|
383
|
+
rubygems_version: 3.2.22
|
|
384
|
+
signing_key:
|
|
385
385
|
specification_version: 4
|
|
386
386
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
|
387
387
|
Rails framework.
|