rails_semantic_logger 4.4.1 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a4446d1749a02b6f7d9993ebbc0f373c3fc30465d3f2d11e3c464a6c05d85a6
|
|
4
|
+
data.tar.gz: ac53f67a871e98966da541e25402c7a482c06bce99986a194b7387e581003c1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bebc589086757daa96f44d2e893559a74289a42c63bd41c9edee45f2dfd9dbb2e907815107d2dff71679a064d3c38810d48acc2c3bf1725db7c4cb5e5cea45b
|
|
7
|
+
data.tar.gz: 86005d165532656bae94e209cd8c67034440bd2a7d5a569030264d3fbb246b116dd45085edaeb8674a08732b9882752243084ccd54aa803d8e97211f89128417
|
|
@@ -165,13 +165,13 @@ module RailsSemanticLogger
|
|
|
165
165
|
if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR.zero? && Rails::VERSION::TINY <= 2 # 5.0.0 - 5.0.2
|
|
166
166
|
alias bind_values bind_values_v5_0_0
|
|
167
167
|
alias render_bind render_bind_v5_0_0
|
|
168
|
-
elsif Rails::VERSION::MAJOR
|
|
168
|
+
elsif Rails::VERSION::MAJOR == 5 &&
|
|
169
169
|
((Rails::VERSION::MINOR.zero? && Rails::VERSION::TINY <= 6) ||
|
|
170
170
|
(Rails::VERSION::MINOR == 1 && Rails::VERSION::TINY <= 4)) # 5.0.3 - 5.0.6 && 5.1.0 - 5.1.4
|
|
171
171
|
alias bind_values bind_values_v5_0_3
|
|
172
172
|
alias render_bind render_bind_v5_0_3
|
|
173
173
|
alias type_casted_binds type_casted_binds_v5_0_3
|
|
174
|
-
elsif Rails::VERSION::MAJOR >= 5 # ~> 5.1.5 && ~> 5.0.7
|
|
174
|
+
elsif Rails::VERSION::MAJOR >= 5 # ~> 5.1.5 && ~> 5.0.7 && 6.x.x
|
|
175
175
|
alias bind_values bind_values_v5_1_5
|
|
176
176
|
alias render_bind render_bind_v5_0_3
|
|
177
177
|
alias type_casted_binds type_casted_binds_v5_1_5
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'rails'
|
|
1
2
|
require 'action_controller/log_subscriber'
|
|
2
3
|
require 'rails_semantic_logger/options'
|
|
3
4
|
|
|
@@ -107,7 +108,7 @@ module RailsSemanticLogger
|
|
|
107
108
|
Resque.logger = SemanticLogger[Resque] if defined?(Resque) && Resque.respond_to?(:logger)
|
|
108
109
|
|
|
109
110
|
# Replace the Sidekiq logger
|
|
110
|
-
Sidekiq
|
|
111
|
+
Sidekiq.logger = SemanticLogger[Sidekiq] if defined?(Sidekiq)
|
|
111
112
|
|
|
112
113
|
# Replace the Sidetiq logger
|
|
113
114
|
Sidetiq.logger = SemanticLogger[Sidetiq] if defined?(Sidetiq)
|
|
@@ -188,7 +189,7 @@ module RailsSemanticLogger
|
|
|
188
189
|
Resque.after_fork { |_job| ::SemanticLogger.reopen } if defined?(Resque)
|
|
189
190
|
|
|
190
191
|
# Re-open appenders after Spring has forked a process
|
|
191
|
-
Spring.after_fork { |_job| ::SemanticLogger.reopen } if defined?(Spring)
|
|
192
|
+
Spring.after_fork { |_job| ::SemanticLogger.reopen } if defined?(Spring.after_fork)
|
|
192
193
|
end
|
|
193
194
|
end
|
|
194
195
|
end
|
|
@@ -30,8 +30,8 @@ module RailsSemanticLogger
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def self.unattach(subscriber)
|
|
33
|
-
subscriber.
|
|
34
|
-
ActiveSupport::Notifications.notifier.listeners_for(
|
|
33
|
+
subscriber_patterns(subscriber).each do |pattern|
|
|
34
|
+
ActiveSupport::Notifications.notifier.listeners_for(pattern).each do |sub|
|
|
35
35
|
next unless sub.instance_variable_get(:@delegate) == subscriber
|
|
36
36
|
ActiveSupport::Notifications.unsubscribe(sub)
|
|
37
37
|
end
|
|
@@ -39,5 +39,12 @@ module RailsSemanticLogger
|
|
|
39
39
|
|
|
40
40
|
ActiveSupport::LogSubscriber.subscribers.delete(subscriber)
|
|
41
41
|
end
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
def self.subscriber_patterns(subscriber)
|
|
44
|
+
subscriber.patterns.respond_to?(:keys) ?
|
|
45
|
+
subscriber.patterns.keys :
|
|
46
|
+
subscriber.patterns
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
private_class_method :subscriber_patterns, :unattach
|
|
43
50
|
end
|
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_semantic_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.4.
|
|
4
|
+
version: 4.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reid Morrison
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: railties
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3.2'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rack
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: semantic_logger
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -83,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
97
|
- !ruby/object:Gem::Version
|
|
84
98
|
version: '0'
|
|
85
99
|
requirements: []
|
|
86
|
-
rubygems_version: 3.0.
|
|
100
|
+
rubygems_version: 3.0.3
|
|
87
101
|
signing_key:
|
|
88
102
|
specification_version: 4
|
|
89
103
|
summary: Feature rich logging framework that replaces the Rails logger.
|