kubelink 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubelink/sentry.rb +5 -3
- data/lib/kubelink/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: 9cc7889020648d45b7f2070339c76dc0b3f2303ba3050f85b7013aebfa2c80e5
|
4
|
+
data.tar.gz: f48b041d98d26b08da6b616de45229ea0c15521cc0882f17908667d8331c936d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a704af93faa0aff57d28f6ae61b598ead49056769d449652e98032f32111eae43186124b147add5cc93aeffc8572d4a723933493a324efd4f7c867d7769686
|
7
|
+
data.tar.gz: b854e44298871bdad374f45cb125c2d182ed4df1aa0eeea16bf184379ec1080f71d6b820a578f245c8400c40f8f8cd8c4c098608b61e672bd10238afdde6c809
|
data/lib/kubelink/sentry.rb
CHANGED
@@ -2,19 +2,21 @@ module Kubelink
|
|
2
2
|
class Sentry < Rails::Railtie
|
3
3
|
initializer "kubelink.sentry_integration" do
|
4
4
|
ActiveSupport.on_load :action_view do
|
5
|
-
include
|
5
|
+
include Helpers
|
6
6
|
end
|
7
7
|
|
8
8
|
if ENV.key?('SENTRY_DSN')
|
9
|
+
require 'raven'
|
10
|
+
|
9
11
|
Raven.configure do |config|
|
10
12
|
config.dsn = ENV['SENTRY_DSN']
|
11
13
|
config.release = ENV['RAILS_COMMIT']
|
12
14
|
end
|
13
15
|
|
14
16
|
ActiveSupport.on_load :action_controller do
|
15
|
-
include
|
17
|
+
include Controller
|
16
18
|
end
|
17
|
-
elsif Rails.env.production? && !
|
19
|
+
elsif Rails.env.production? && !defined?(Rake)
|
18
20
|
throw "This application cannot run in production without setting SENTRY_DSN"
|
19
21
|
end
|
20
22
|
end
|
data/lib/kubelink/version.rb
CHANGED