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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f70ba74e6b17e79e6472ab5e10da0f83a7035f03d4824ff55d904674292af71
4
- data.tar.gz: afa4a11bb0198ec6d4676d5124873aabce2eafd1b087ab4919131e722c48408e
3
+ metadata.gz: 9cc7889020648d45b7f2070339c76dc0b3f2303ba3050f85b7013aebfa2c80e5
4
+ data.tar.gz: f48b041d98d26b08da6b616de45229ea0c15521cc0882f17908667d8331c936d
5
5
  SHA512:
6
- metadata.gz: 87cf218bfd94683d8b73a31afb4bf105793ae460f0480a8289136ed4ec3541a3ce8260826c7b0dd8004b5120f0ace280ed4fd3d94ce1e5419eda5b87cdc756da
7
- data.tar.gz: 78bfa0da9712a04a7062b578075a3678471fb84d4ddbef524702f870f7957f881bb914ec9f7894705e263118a366a7f43ead2b53b681bd953b882c158c8e4410
6
+ metadata.gz: e7a704af93faa0aff57d28f6ae61b598ead49056769d449652e98032f32111eae43186124b147add5cc93aeffc8572d4a723933493a324efd4f7c867d7769686
7
+ data.tar.gz: b854e44298871bdad374f45cb125c2d182ed4df1aa0eeea16bf184379ec1080f71d6b820a578f245c8400c40f8f8cd8c4c098608b61e672bd10238afdde6c809
@@ -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 Kubelink::Sentry::Helpers
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 Kubelink::Sentry::Controller
17
+ include Controller
16
18
  end
17
- elsif Rails.env.production? && !Rake.application.top_level_tasks.include?('assets:precompile')
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
@@ -1,3 +1,3 @@
1
1
  module Kubelink
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubelink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martino di Filippo