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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c29e6722d918dd3af379c2920aa96c2d59256731940f7734ac70224ef161a394
4
- data.tar.gz: 145e993e192179c6bec64d22dd3eb05ce8005d5d242710c940b37ccdc60217e3
3
+ metadata.gz: 9ca8c97dbd9b8c0060fa8fdc9fe0a265e52dade43f834a64d81be63a58631d52
4
+ data.tar.gz: 718c11ac32f5ede2cf74701c236afae41cd9ad50d8eb3d138594c869cb543462
5
5
  SHA512:
6
- metadata.gz: 7cc598f7f4fb0b0d58c13cef0054f26161e0be5f263116b2eb1395698b71cc952e6f3a9ac1b436400ba1913f7d9112a280f4c19295eecdf94ac7059ad2d33428
7
- data.tar.gz: f34f36a49f8d3113d1d91361d48136e13baea4584de7e94577f50614fde65d998321b0146440427ef66e9878a1962239c93308c1d05f7960db5431b144f018e1
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 active?
67
- Null
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
- 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
 
@@ -9,7 +9,7 @@ module ActiveSupport
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 6
12
+ TINY = 7
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -59,7 +59,7 @@ module ActiveSupport
59
59
  prepare!
60
60
  end
61
61
 
62
- def self.run! # :nodoc:
62
+ def self.run!(reset: false) # :nodoc:
63
63
  if check!
64
64
  super
65
65
  else
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.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: 2021-05-05 00:00:00.000000000 Z
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.6/activesupport
337
- changelog_uri: https://github.com/rails/rails/blob/v5.2.6/activesupport/CHANGELOG.md
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"