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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21abde04746c2bdf8ce7046f4e206eb54e25a280
4
- data.tar.gz: 1eeac4eaeee58c6750e0cca2e55a6383170b8c14
3
+ metadata.gz: 7a765c0fe3155b0109843e67907c96e781d218b3
4
+ data.tar.gz: c3d5e810f98d11a7948010c2f2bd50269d8543e7
5
5
  SHA512:
6
- metadata.gz: 74862e89177def0de457c641890cd88d4a34a39ca7ff8d8cded1c68004aee79a4af15a3afd62485d6905a2bbf1430b9526d074ceddf62035556f51423065a45b
7
- data.tar.gz: 31c854be8ffea08b6915053c0b1cc64dd1bcd451ff75cc21fef000a4fd318b4539343f1d3b14b7491d26f6060006cbbcc40652b7cacf16e2c7386c702c81e9ee
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
 
@@ -1,3 +1,3 @@
1
1
  module SmokeDetector
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smoke_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Friedrich