kubelink 0.1.0 → 0.1.1
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 +2 -2
- 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: b86cf4b14868912589f23b9ab93d1276a7ba9322c2d3599c7cf973c095cb49c0
|
4
|
+
data.tar.gz: 44e8505fcf14251e18c9849660bf987b73be2d38c16b8777627407bc649af53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512d0a9fb4e388538d84cb0ecf87dec564bbca471d5b4954b88b51c400698973ab6a59c2382c85b1362b49617c296acfdbe2783fe6785bcf418bab7a6d8072d5
|
7
|
+
data.tar.gz: f6ca9fc4afaa3dd7fe1d98d8884610b144b0bf6bb05f5723522c369bc620e5fc9b2a0ec5c694f73714701ce03277efe106f4a9e71bfeeb0ab3606bfb718ddef6
|
data/lib/kubelink/sentry.rb
CHANGED
@@ -14,7 +14,7 @@ module Kubelink
|
|
14
14
|
ActiveSupport.on_load :action_controller do
|
15
15
|
include Kubelink::Sentry::Controller
|
16
16
|
end
|
17
|
-
elsif Rails.env.production?
|
17
|
+
elsif Rails.env.production? && !Rake.application.top_level_tasks.include?('assets:precompile')
|
18
18
|
throw "This application cannot run in production without setting RAVEN_DSN"
|
19
19
|
end
|
20
20
|
end
|
@@ -36,7 +36,7 @@ module Kubelink
|
|
36
36
|
script = 'https://browser.sentry-cdn.com/4.2.0/bundle.min.js'
|
37
37
|
|
38
38
|
[ javascript_include_tag(script, crossorigin: :anonymous),
|
39
|
-
content_tag(:script, %Q{
|
39
|
+
content_tag(:script, %Q{Sentry.init({ dsn: "#{sentry_dsn}" });}.html_safe)
|
40
40
|
].join("\n").html_safe
|
41
41
|
end
|
42
42
|
end
|
data/lib/kubelink/version.rb
CHANGED