activesupport 5.2.3 → 5.2.4.rc1
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 +35 -0
- data/lib/active_support/core_ext/digest.rb +3 -0
- data/lib/active_support/gem_version.rb +2 -2
- data/lib/active_support/logger_thread_safe_level.rb +2 -1
- data/lib/active_support/notifications/fanout.rb +2 -2
- data/lib/active_support/ordered_options.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d853ba27f61066e0915e21bb7598ddc70ab9a5b1443c1d233effe4cce1eb50a
|
4
|
+
data.tar.gz: 6da680370ec0f060f0c2beb7af1351ee35304266c825f81b019435bdb4d7334d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9133f25d78d0937a15c299b7fd483da55511a4c863166a4ba49bc0736cde194c71af904e1cc261b2545fa12e744f5850b7fe500ad0000aafc96b7d09968ac567
|
7
|
+
data.tar.gz: 518ffc1ec69585329261dbb2cea5261355093bc4dca079d361ebcf99fae4bb89eabfe9b78ed487acf9564876140c71ba943de526e4fccc35ee203d0a5ee85e85
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
## Rails 5.2.4.rc1 (November 22, 2019) ##
|
2
|
+
|
3
|
+
* Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
|
4
|
+
|
5
|
+
Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order
|
6
|
+
to make log level local to Ruby Fibers in addition to Threads.
|
7
|
+
|
8
|
+
Example:
|
9
|
+
|
10
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
11
|
+
logger.level = 1
|
12
|
+
p "Main is debug? #{logger.debug?}"
|
13
|
+
|
14
|
+
Fiber.new {
|
15
|
+
logger.local_level = 0
|
16
|
+
p "Thread is debug? #{logger.debug?}"
|
17
|
+
}.resume
|
18
|
+
|
19
|
+
p "Main is debug? #{logger.debug?}"
|
20
|
+
|
21
|
+
Before:
|
22
|
+
|
23
|
+
Main is debug? false
|
24
|
+
Thread is debug? true
|
25
|
+
Main is debug? true
|
26
|
+
|
27
|
+
After:
|
28
|
+
|
29
|
+
Main is debug? false
|
30
|
+
Thread is debug? true
|
31
|
+
Main is debug? false
|
32
|
+
|
33
|
+
*Alexander Varnin*
|
34
|
+
|
35
|
+
|
1
36
|
## Rails 5.2.3 (March 27, 2019) ##
|
2
37
|
|
3
38
|
* Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "active_support/concern"
|
4
|
+
require "fiber"
|
4
5
|
|
5
6
|
module ActiveSupport
|
6
7
|
module LoggerThreadSafeLevel # :nodoc:
|
@@ -11,7 +12,7 @@ module ActiveSupport
|
|
11
12
|
end
|
12
13
|
|
13
14
|
def local_log_id
|
14
|
-
|
15
|
+
Fiber.current.__id__
|
15
16
|
end
|
16
17
|
|
17
18
|
def local_level
|
@@ -18,8 +18,8 @@ module ActiveSupport
|
|
18
18
|
super
|
19
19
|
end
|
20
20
|
|
21
|
-
def subscribe(pattern = nil,
|
22
|
-
subscriber = Subscribers.new
|
21
|
+
def subscribe(pattern = nil, callable = nil, &block)
|
22
|
+
subscriber = Subscribers.new(pattern, callable || block)
|
23
23
|
synchronize do
|
24
24
|
@subscribers << subscriber
|
25
25
|
@listeners_for.clear
|
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.4.rc1
|
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: 2019-
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- lib/active_support/core_ext/date_time/calculations.rb
|
140
140
|
- lib/active_support/core_ext/date_time/compatibility.rb
|
141
141
|
- lib/active_support/core_ext/date_time/conversions.rb
|
142
|
+
- lib/active_support/core_ext/digest.rb
|
142
143
|
- lib/active_support/core_ext/digest/uuid.rb
|
143
144
|
- lib/active_support/core_ext/enumerable.rb
|
144
145
|
- lib/active_support/core_ext/file.rb
|
@@ -332,8 +333,8 @@ homepage: http://rubyonrails.org
|
|
332
333
|
licenses:
|
333
334
|
- MIT
|
334
335
|
metadata:
|
335
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.
|
336
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
336
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.4.rc1/activesupport
|
337
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.4.rc1/activesupport/CHANGELOG.md
|
337
338
|
post_install_message:
|
338
339
|
rdoc_options:
|
339
340
|
- "--encoding"
|
@@ -347,11 +348,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
347
348
|
version: 2.2.2
|
348
349
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
350
|
requirements:
|
350
|
-
- - "
|
351
|
+
- - ">"
|
351
352
|
- !ruby/object:Gem::Version
|
352
|
-
version:
|
353
|
+
version: 1.3.1
|
353
354
|
requirements: []
|
354
|
-
rubygems_version: 3.0.
|
355
|
+
rubygems_version: 3.0.3
|
355
356
|
signing_key:
|
356
357
|
specification_version: 4
|
357
358
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|