smoke_detector 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/smoke_detector/providers/rollbar.rb +1 -1
- data/lib/smoke_detector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a765c0fe3155b0109843e67907c96e781d218b3
|
4
|
+
data.tar.gz: c3d5e810f98d11a7948010c2f2bd50269d8543e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86cb6d2f6744170dd52ae30f4deba41184f7e458534b404a83957aeb5a3349ad8f2a62a2510f18da60f74898aed5292fea3a9ad5ef8c9a9f90fff26dee532432
|
7
|
+
data.tar.gz: 74b9a0efa37105f6b46e23f6574895abc2acdb033f7ddaf8ca9e212922c5a4ae346ef2c4f92728a60b6928592f8feb82e8010b0afc87b7aaa4f77f5d715beaf8
|
data/README.md
CHANGED
@@ -76,6 +76,7 @@ config.providers = [
|
|
76
76
|
{
|
77
77
|
provider: :rollbar,
|
78
78
|
api_key: ENV['ROLLBAR_KEY'],
|
79
|
+
enabled: ['production', 'staging'].include?(Rails.env)
|
79
80
|
client_settings: {
|
80
81
|
api_key: ENV['ROLLBAR_CLIENT_KEY'],
|
81
82
|
ignoredMessages: ["Error: Clippy.bmp not found. The end is nigh."],
|
@@ -8,7 +8,7 @@ module SmokeDetector::Providers
|
|
8
8
|
super
|
9
9
|
::Rollbar.configure do |c|
|
10
10
|
c.environment = ::Rails.env # Rollbar sets this to 'unspecified' by default
|
11
|
-
|
11
|
+
c.enabled = settings.fetch(:enabled, true)
|
12
12
|
c.access_token = api_key
|
13
13
|
apply_configuration_settings(c, settings)
|
14
14
|
|