activesupport 6.1.4.4 → 6.1.4.6

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: 1ec1e3cca9d61111ff604b7639f716d337c41fafa59d810e0e29af9274460bd4
4
- data.tar.gz: 509ae88f48b93a55ded50a1fe567ee6516e63596c895c3d19e50e3862e235b0a
3
+ metadata.gz: af4b908f92c68b0ee6b303428d2aa509e9bf031d9d2e8d0c75c4f0bdcc7fc366
4
+ data.tar.gz: 453cd96c0546d5384809db032dc49ccd3d917fc52653e8e190ee8ec44140e64d
5
5
  SHA512:
6
- metadata.gz: 262264f05e68b7d5d7faf62decb52a5aa7548e194ef490c245316bc4e911236d0bc50e46b66bda0a95c3e33a15976922f183dbb73630237a7d6f83bdcf07f0fe
7
- data.tar.gz: b6f62d421506b1d29bb79ecde59e5de474a034f73cfd256cce30290873633e2bed6cb8f4fa0a19fe24c471f78896f4a3afa62f277fa21f23ba684afc9d7b4139
6
+ metadata.gz: 87ec46f4b0c16e172ef410729c2dbd5cdd2c68b629d71895839eef933ba7aac619d4b908ebc38d333121493fa30bb0671b81c100aa8cf9fc69db800efeb463b0
7
+ data.tar.gz: 9c3a62e1ccbc24009ad3c863784b40ead6b2e433b340fe6231dbdea4ac94fb13674513f13345adfbfbb3fe0304599821f0cd632c7052b0b3779d95d5fff2f507
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Rails 6.1.4.6 (February 11, 2022) ##
2
+
3
+ * Fix Reloader method signature to work with the new Executor signature
4
+
5
+
6
+ ## Rails 6.1.4.5 (February 11, 2022) ##
7
+
8
+ * No changes.
9
+
10
+
1
11
  ## Rails 6.1.4.4 (December 15, 2021) ##
2
12
 
3
13
  * No changes.
@@ -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 active?
68
- Null
66
+ def self.run!(reset: false)
67
+ if reset
68
+ lost_instance = active.delete(Thread.current)
69
+ lost_instance&.complete!
69
70
  else
70
- new.tap do |instance|
71
- success = nil
72
- begin
73
- instance.run!
74
- success = true
75
- ensure
76
- instance.complete! unless success
77
- end
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[Thread.current]
109
+ @active.key?(Thread.current)
107
110
  end
108
111
 
109
112
  def run! # :nodoc:
110
- self.class.active[Thread.current] = true
113
+ self.class.active[Thread.current] = self
111
114
  run_callbacks(:run)
112
115
  end
113
116
 
@@ -10,7 +10,7 @@ module ActiveSupport
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
12
  TINY = 4
13
- PRE = "4"
13
+ PRE = "6"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -58,7 +58,7 @@ module ActiveSupport
58
58
  prepare!
59
59
  end
60
60
 
61
- def self.run! # :nodoc:
61
+ def self.run!(reset: false) # :nodoc:
62
62
  if check!
63
63
  super
64
64
  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: 6.1.4.4
4
+ version: 6.1.4.6
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-12-15 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
@@ -357,11 +357,11 @@ licenses:
357
357
  - MIT
358
358
  metadata:
359
359
  bug_tracker_uri: https://github.com/rails/rails/issues
360
- changelog_uri: https://github.com/rails/rails/blob/v6.1.4.4/activesupport/CHANGELOG.md
361
- documentation_uri: https://api.rubyonrails.org/v6.1.4.4/
360
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.4.6/activesupport/CHANGELOG.md
361
+ documentation_uri: https://api.rubyonrails.org/v6.1.4.6/
362
362
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
363
- source_code_uri: https://github.com/rails/rails/tree/v6.1.4.4/activesupport
364
- post_install_message:
363
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.4.6/activesupport
364
+ post_install_message:
365
365
  rdoc_options:
366
366
  - "--encoding"
367
367
  - UTF-8
@@ -378,8 +378,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
378
  - !ruby/object:Gem::Version
379
379
  version: '0'
380
380
  requirements: []
381
- rubygems_version: 3.2.32
382
- signing_key:
381
+ rubygems_version: 3.2.22
382
+ signing_key:
383
383
  specification_version: 4
384
384
  summary: A toolkit of support libraries and Ruby core extensions extracted from the
385
385
  Rails framework.