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 +4 -4
- data/lib/lantern/rails/railtie.rb +1 -8
- data/lib/lantern/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a5fdbde387cd09fe7c9e6f17e138cca601992cd3fd77050374092c4dff9763b
|
|
4
|
+
data.tar.gz: f791841bba4a6769aea4a52c83ac82f36b98953d199b27c4fba433c6cc8088f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
|