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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c29e6722d918dd3af379c2920aa96c2d59256731940f7734ac70224ef161a394
4
- data.tar.gz: 145e993e192179c6bec64d22dd3eb05ce8005d5d242710c940b37ccdc60217e3
3
+ metadata.gz: f43ba05632ef54d40862f4b515f56b8a4a9678de920e16c2995ca4b0ee6a9512
4
+ data.tar.gz: 4fd19dd49a6d2359dfe0660e3812cf2776cc0f8cbcb81640dd2eb3bf7b4957a7
5
5
  SHA512:
6
- metadata.gz: 7cc598f7f4fb0b0d58c13cef0054f26161e0be5f263116b2eb1395698b71cc952e6f3a9ac1b436400ba1913f7d9112a280f4c19295eecdf94ac7059ad2d33428
7
- data.tar.gz: f34f36a49f8d3113d1d91361d48136e13baea4584de7e94577f50614fde65d998321b0146440427ef66e9878a1962239c93308c1d05f7960db5431b144f018e1
6
+ metadata.gz: 5724b2a27f2c8e096728738f64b283395130f8627ef0b5685e2a8d25dec5e0d4f0c9d45788478174dd6adf5f0f2e456d5bfd86bb18c5dd9f6bf8e15e70514625
7
+ data.tar.gz: 775589e17e8a7ab5dcf9510f6d25d8bf02ebe0e4501cb39ee16990bbc2228f21c5fae5d363ac9b37143f9e9838d94f42dc8afd67ee0b1bfed288b9280d45b1b7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 5.2.6.1 (February 11, 2022) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.2.6 (May 05, 2021) ##
2
7
 
3
8
  * 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 active?
67
- Null
65
+ def self.run!(reset: false)
66
+ if reset
67
+ lost_instance = active.delete(Thread.current)
68
+ lost_instance&.complete!
68
69
  else
69
- new.tap do |instance|
70
- success = nil
71
- begin
72
- instance.run!
73
- success = true
74
- ensure
75
- instance.complete! unless success
76
- end
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[Thread.current]
108
+ @active.key?(Thread.current)
106
109
  end
107
110
 
108
111
  def run! # :nodoc:
109
- self.class.active[Thread.current] = true
112
+ self.class.active[Thread.current] = self
110
113
  run_callbacks(:run)
111
114
  end
112
115
 
@@ -10,7 +10,7 @@ module ActiveSupport
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
12
  TINY = 6
13
- PRE = nil
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  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: 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: 2021-05-05 00:00:00.000000000 Z
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.