activesupport 5.2.6 → 5.2.6.1
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 +5 -0
- data/lib/active_support/execution_wrapper.rb +16 -13
- data/lib/active_support/gem_version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f43ba05632ef54d40862f4b515f56b8a4a9678de920e16c2995ca4b0ee6a9512
|
4
|
+
data.tar.gz: 4fd19dd49a6d2359dfe0660e3812cf2776cc0f8cbcb81640dd2eb3bf7b4957a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5724b2a27f2c8e096728738f64b283395130f8627ef0b5685e2a8d25dec5e0d4f0c9d45788478174dd6adf5f0f2e456d5bfd86bb18c5dd9f6bf8e15e70514625
|
7
|
+
data.tar.gz: 775589e17e8a7ab5dcf9510f6d25d8bf02ebe0e4501cb39ee16990bbc2228f21c5fae5d363ac9b37143f9e9838d94f42dc8afd67ee0b1bfed288b9280d45b1b7
|
data/CHANGELOG.md
CHANGED
@@ -62,18 +62,21 @@ module ActiveSupport
|
|
62
62
|
# after the work has been performed.
|
63
63
|
#
|
64
64
|
# Where possible, prefer +wrap+.
|
65
|
-
def self.run!
|
66
|
-
if
|
67
|
-
|
65
|
+
def self.run!(reset: false)
|
66
|
+
if reset
|
67
|
+
lost_instance = active.delete(Thread.current)
|
68
|
+
lost_instance&.complete!
|
68
69
|
else
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
70
|
+
return Null if active?
|
71
|
+
end
|
72
|
+
|
73
|
+
new.tap do |instance|
|
74
|
+
success = nil
|
75
|
+
begin
|
76
|
+
instance.run!
|
77
|
+
success = true
|
78
|
+
ensure
|
79
|
+
instance.complete! unless success
|
77
80
|
end
|
78
81
|
end
|
79
82
|
end
|
@@ -102,11 +105,11 @@ module ActiveSupport
|
|
102
105
|
self.active = Concurrent::Hash.new
|
103
106
|
|
104
107
|
def self.active? # :nodoc:
|
105
|
-
@active
|
108
|
+
@active.key?(Thread.current)
|
106
109
|
end
|
107
110
|
|
108
111
|
def run! # :nodoc:
|
109
|
-
self.class.active[Thread.current] =
|
112
|
+
self.class.active[Thread.current] = self
|
110
113
|
run_callbacks(:run)
|
111
114
|
end
|
112
115
|
|
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: 5.2.6
|
4
|
+
version: 5.2.6.1
|
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
|
@@ -333,9 +333,9 @@ homepage: http://rubyonrails.org
|
|
333
333
|
licenses:
|
334
334
|
- MIT
|
335
335
|
metadata:
|
336
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.6/activesupport
|
337
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.6/activesupport/CHANGELOG.md
|
338
|
-
post_install_message:
|
336
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.6.1/activesupport
|
337
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.6.1/activesupport/CHANGELOG.md
|
338
|
+
post_install_message:
|
339
339
|
rdoc_options:
|
340
340
|
- "--encoding"
|
341
341
|
- UTF-8
|
@@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
353
353
|
version: '0'
|
354
354
|
requirements: []
|
355
355
|
rubygems_version: 3.1.6
|
356
|
-
signing_key:
|
356
|
+
signing_key:
|
357
357
|
specification_version: 4
|
358
358
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
359
359
|
Rails framework.
|