scout_apm 0.9.1.2 → 0.9.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scout_apm/server_integrations/unicorn.rb +20 -4
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbea4acffc30ccb7fb554cd085463eeb3d141556
|
4
|
+
data.tar.gz: c5c409c96b5984fcf88d43e40ee8cb48648fe065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7402bd4950ba20e0b8bc7f0278fe9d5c138ff7a6f06ff28278bd7eb798ab3268f210acec7fd34d83ecb300e6787fa9f96c89eaaa2a775112299e1538646f0df9
|
7
|
+
data.tar.gz: af1dbddcbc2526b2cf8ee173db79142284bec69daeb56091805f91aab4222d01b5de4cfe017089c02188b6bf20b1a06b295d911c0f64b044c662069a8b1fd3d7
|
@@ -21,11 +21,27 @@ module ScoutApm
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def present?
|
24
|
-
if defined?(::Unicorn)
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
if defined?(::Unicorn)
|
25
|
+
logger.debug "[UNICORN] - ::Unicorn is defined"
|
26
|
+
else
|
27
|
+
logger.debug "[UNICORN] - ::Unicorn was not found"
|
28
|
+
return false
|
28
29
|
end
|
30
|
+
|
31
|
+
if defined?(::Unicorn::HttpServer)
|
32
|
+
logger.debug "[UNICORN] - ::Unicorn::HttpServer is defined"
|
33
|
+
else
|
34
|
+
logger.debug "[UNICORN] - ::Unicorn::HttpServer was not found"
|
35
|
+
end
|
36
|
+
|
37
|
+
# Ensure Unicorn is actually initialized. It could just be required and not running.
|
38
|
+
ObjectSpace.each_object(::Unicorn::HttpServer) do |x|
|
39
|
+
logger.debug "[UNICORN] - Running ::Unicorn::HttpServer found."
|
40
|
+
return true
|
41
|
+
end
|
42
|
+
|
43
|
+
logger.debug "[UNICORN] - Running ::Unicorn::HttpServer was not found."
|
44
|
+
false
|
29
45
|
end
|
30
46
|
|
31
47
|
def install
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.1.
|
4
|
+
version: 0.9.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|