skylight 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/skylight/railtie.rb +11 -10
- data/lib/skylight/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: e5021a4b7363610a4fa2e75f06fb604f8bbd6291
|
4
|
+
data.tar.gz: fdf81108e04bec3720d605ad0f01a5dd829596d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c12468eb05d79d92d79000eb6135f1dd639ee959a5c136a0dfa90e46d856abab725e31a55c264b3bc9220a3fab794283e01cd137dc50a98c096f7bbe2ad317
|
7
|
+
data.tar.gz: 170ebfb0801b1a976562bc77facbf435b8a4d56f5a9dcae2fb3020cf26cdc222f08d16c8c7dedb8d8056ddbbb77b033c074e8104f97286923bb2e4744e55084c
|
data/CHANGELOG.md
CHANGED
data/lib/skylight/railtie.rb
CHANGED
@@ -25,11 +25,17 @@ module Skylight
|
|
25
25
|
|
26
26
|
if activate?
|
27
27
|
if config
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
begin
|
29
|
+
config.validate!
|
30
|
+
|
31
|
+
if Instrumenter.start!(config)
|
32
|
+
app.middleware.insert 0, Middleware, config: config
|
33
|
+
Rails.logger.info "[SKYLIGHT] [#{Skylight::VERSION}] Skylight agent enabled"
|
34
|
+
else
|
35
|
+
Rails.logger.info "[SKYLIGHT] [#{Skylight::VERSION}] Unable to start"
|
36
|
+
end
|
37
|
+
rescue ConfigError => e
|
38
|
+
Rails.logger.error "[SKYLIGHT] [#{Skylight::VERSION}] #{e.message}; disabling Skylight agent"
|
33
39
|
end
|
34
40
|
end
|
35
41
|
elsif Rails.env.development?
|
@@ -72,12 +78,7 @@ module Skylight
|
|
72
78
|
|
73
79
|
config[:'daemon.sockdir_path'] ||= tmp
|
74
80
|
config[:'normalizers.render.view_paths'] = existent_paths(app.config.paths["app/views"]) + [Rails.root.to_s]
|
75
|
-
config.validate!
|
76
81
|
config
|
77
|
-
|
78
|
-
rescue ConfigError => e
|
79
|
-
Rails.logger.error "[SKYLIGHT] [#{Skylight::VERSION}] #{e.message}; disabling Skylight agent"
|
80
|
-
nil
|
81
82
|
end
|
82
83
|
|
83
84
|
def configure_logging(config, app)
|
data/lib/skylight/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|