activesupport 5.2.6 → 5.2.7
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 +22 -0
- data/lib/active_support/execution_wrapper.rb +16 -13
- data/lib/active_support/gem_version.rb +1 -1
- data/lib/active_support/reloader.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ca8c97dbd9b8c0060fa8fdc9fe0a265e52dade43f834a64d81be63a58631d52
|
4
|
+
data.tar.gz: 718c11ac32f5ede2cf74701c236afae41cd9ad50d8eb3d138594c869cb543462
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9390ba51ca2fec524ab28bf67f75ec75ef44c6599311c16c09b14a9a29cfe4d71732bd0a5fd31bea4b8d6e5bc5bfd5c12c06101aee7cc4f7cae3d203de9bb7a7
|
7
|
+
data.tar.gz: 39569f88617d0c8bcae4f85b461ce38f355533d1eb9484848a3c38ceb553e365adf8b2a34788d4705b6ae7fd75ee315262b3f889dae919a9bbd28238f56732aa
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## Rails 5.2.7 (March 10, 2022) ##
|
2
|
+
|
3
|
+
* Restore support to Ruby 2.2.
|
4
|
+
|
5
|
+
*ojab*
|
6
|
+
|
7
|
+
|
8
|
+
## Rails 5.2.6.3 (March 08, 2022) ##
|
9
|
+
|
10
|
+
* No changes.
|
11
|
+
|
12
|
+
|
13
|
+
## Rails 5.2.6.2 (February 11, 2022) ##
|
14
|
+
|
15
|
+
* Fix Reloader method signature to work with the new Executor signature
|
16
|
+
|
17
|
+
|
18
|
+
## Rails 5.2.6.1 (February 11, 2022) ##
|
19
|
+
|
20
|
+
* No changes.
|
21
|
+
|
22
|
+
|
1
23
|
## Rails 5.2.6 (May 05, 2021) ##
|
2
24
|
|
3
25
|
* No changes.
|
@@ -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! unless lost_instance.nil?
|
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.
|
4
|
+
version: 5.2.7
|
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:
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -333,8 +333,8 @@ 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.
|
337
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
336
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.7/activesupport
|
337
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.7/activesupport/CHANGELOG.md
|
338
338
|
post_install_message:
|
339
339
|
rdoc_options:
|
340
340
|
- "--encoding"
|