activesupport 5.2.3 → 5.2.4.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 +4 -4
- data/CHANGELOG.md +40 -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 +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63ec42059f6cf3bef91cddb9342a4c0aa51761a2553f932919e283a6a1e70a19
|
4
|
+
data.tar.gz: 34241f0f3751d1381cb22f792290528cc809530f3aade8937d0e6a60b14654f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8171b6755b13497efdb76430c925b66bdd16ea4440ac2a3625e03655aa63394aad91a4bddcfee030bfd6d2a130bfc31654b6c08fcf0ba4f8b541a29627a74c
|
7
|
+
data.tar.gz: c0021f8f84d535d8aad50c3561a959c3ba4485a4a6bcd0dfeeb92fb316369b6db49e10c8c7ef4f616efe75d17748194bd1ccb96e8870aefc2f4f167b82048110
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
## Rails 5.2.4.1 (December 18, 2019) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 5.2.4 (November 27, 2019) ##
|
7
|
+
|
8
|
+
* Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
|
9
|
+
|
10
|
+
Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order
|
11
|
+
to make log level local to Ruby Fibers in addition to Threads.
|
12
|
+
|
13
|
+
Example:
|
14
|
+
|
15
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
16
|
+
logger.level = 1
|
17
|
+
p "Main is debug? #{logger.debug?}"
|
18
|
+
|
19
|
+
Fiber.new {
|
20
|
+
logger.local_level = 0
|
21
|
+
p "Thread is debug? #{logger.debug?}"
|
22
|
+
}.resume
|
23
|
+
|
24
|
+
p "Main is debug? #{logger.debug?}"
|
25
|
+
|
26
|
+
Before:
|
27
|
+
|
28
|
+
Main is debug? false
|
29
|
+
Thread is debug? true
|
30
|
+
Main is debug? true
|
31
|
+
|
32
|
+
After:
|
33
|
+
|
34
|
+
Main is debug? false
|
35
|
+
Thread is debug? true
|
36
|
+
Main is debug? false
|
37
|
+
|
38
|
+
*Alexander Varnin*
|
39
|
+
|
40
|
+
|
1
41
|
## Rails 5.2.3 (March 27, 2019) ##
|
2
42
|
|
3
43
|
* 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.1
|
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-12-18 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.1/activesupport
|
337
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.4.1/activesupport/CHANGELOG.md
|
337
338
|
post_install_message:
|
338
339
|
rdoc_options:
|
339
340
|
- "--encoding"
|
@@ -351,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
352
|
- !ruby/object:Gem::Version
|
352
353
|
version: '0'
|
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
|