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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88325472f4d132fe248d7254a342b230df879416
4
- data.tar.gz: 18c75d3a03c14bf7e9b9f6692737fe004b9ad04f
3
+ metadata.gz: e5021a4b7363610a4fa2e75f06fb604f8bbd6291
4
+ data.tar.gz: fdf81108e04bec3720d605ad0f01a5dd829596d7
5
5
  SHA512:
6
- metadata.gz: 8e59cb8d7bf357fae8ec9ceb88d1318455679abb2f6ef60f6a5d112b9dc159085fe52030069a2e5501f5145c74b2807a1b330a1df9facc412324eebdd4521353
7
- data.tar.gz: 3ef90cd66399bbeb7ec585c4d3315248020d1ab6b4350c0c50bf7ec0193f76910f1fd0a1e4fe3eb8f68157286d31d50a90c98b849d24b94a81b423c402ccc609
6
+ metadata.gz: 20c12468eb05d79d92d79000eb6135f1dd639ee959a5c136a0dfa90e46d856abab725e31a55c264b3bc9220a3fab794283e01cd137dc50a98c096f7bbe2ad317
7
+ data.tar.gz: 170ebfb0801b1a976562bc77facbf435b8a4d56f5a9dcae2fb3020cf26cdc222f08d16c8c7dedb8d8056ddbbb77b033c074e8104f97286923bb2e4744e55084c
@@ -1,3 +1,7 @@
1
+ ## 0.10.3 (February 2, 2016)
2
+
3
+ * [BUGFIX] Don't validate configuration on disabled environments.
4
+
1
5
  ## 0.10.2 (January 19, 2016)
2
6
 
3
7
  * [BUGFIX] Fix git repository warning on startup. [Issue #58](https://github.com/skylightio/skylight-ruby/issues/58)
@@ -25,11 +25,17 @@ module Skylight
25
25
 
26
26
  if activate?
27
27
  if config
28
- if Instrumenter.start!(config)
29
- app.middleware.insert 0, Middleware, config: config
30
- Rails.logger.info "[SKYLIGHT] [#{Skylight::VERSION}] Skylight agent enabled"
31
- else
32
- Rails.logger.info "[SKYLIGHT] [#{Skylight::VERSION}] Unable to start"
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)
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.10.2'
2
+ VERSION = '0.10.3'
3
3
  end
4
4
 
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.2
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-01-19 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport