skylight 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,15 +14,17 @@ module Skylight
14
14
  attr_accessor :instrumenter
15
15
 
16
16
  initializer "skylight.configure" do |app|
17
- config = load_config(app)
17
+ if environments.include?(Rails.env.to_s)
18
+ config = load_config(app)
18
19
 
19
- if good_to_go?(app, config)
20
- @instrumenter = Instrumenter.new(config)
20
+ if good_to_go?(app, config)
21
+ @instrumenter = Instrumenter.new(config)
21
22
 
22
- Rails.logger.debug "[SKYLIGHT] Installing middleware"
23
- app.middleware.insert 0, Middleware, @instrumenter
24
- else
25
- puts "[SKYLIGHT] Skipping Skylight boot"
23
+ Rails.logger.debug "[SKYLIGHT] Installing middleware"
24
+ app.middleware.insert 0, Middleware, @instrumenter
25
+ else
26
+ puts "[SKYLIGHT] Skipping Skylight boot"
27
+ end
26
28
  end
27
29
  end
28
30
 
@@ -1,3 +1,3 @@
1
1
  module Skylight
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: