lantern-rails 0.2.0 → 0.2.1

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: 93b5aad3eb2484e765586589b5cb3e7cbd931d25fb20d1e249e21b521b336d91
4
- data.tar.gz: f8739f45b42a61c0ece6db30ae517dba6c30fe9ed4382ef315342a00c4cecfcb
3
+ metadata.gz: 7a5fdbde387cd09fe7c9e6f17e138cca601992cd3fd77050374092c4dff9763b
4
+ data.tar.gz: f791841bba4a6769aea4a52c83ac82f36b98953d199b27c4fba433c6cc8088f4
5
5
  SHA512:
6
- metadata.gz: 89caa7f682946b0143c7bc2f2917c4070549bb0d178ea87c3574a0a6324d3289aa8feb100dcadf42ee300443876cec5d8c2101ab0ec291383f461d56b7a6579f
7
- data.tar.gz: 2e1536b62d7292e113279e807bc61d59a166052a37cb9b8b8d834c6a733f0a24f0f3393db28e21598766e60ab4b2fbebfe2fb578c77fc91185114d31761595a2
6
+ metadata.gz: 3b7d257ee5709b5787d984c7f066b87b7a0c925ac215dc672ab5952b41e9b1eb438855c4d1b97cef405f70926d3b36d8461758f09c97eaf40aa4e364f8db38b4
7
+ data.tar.gz: 40fd4b31b93888afbfa79efe01e0fcc7e7f382bc04d477ca3625730e21f408486dd0cdeab63852efaa9cbd87676498ae72e34cb63df8f5766cfe2432ae770186
@@ -1,20 +1,13 @@
1
1
  module Lantern
2
2
  module Rails
3
3
  class Railtie < ::Rails::Railtie
4
- initializer "lantern.request_tracker" do |app|
4
+ config.after_initialize do |app|
5
5
  config = Lantern::Rails.configuration
6
6
  next unless config.valid?
7
7
  next unless config.enabled
8
8
  next unless config.collect_in_environments.include?(::Rails.env.to_s)
9
9
 
10
10
  app.middleware.use Lantern::Rails::RequestTracker, Lantern::Rails.query_aggregator
11
- end
12
-
13
- config.after_initialize do
14
- config = Lantern::Rails.configuration
15
- next unless config.valid?
16
- next unless config.enabled
17
- next unless config.collect_in_environments.include?(::Rails.env.to_s)
18
11
 
19
12
  runner = Lantern::Rails::Runner.new(config)
20
13
 
@@ -1,5 +1,5 @@
1
1
  module Lantern
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lantern-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Mumbower