minitest_rollbar 0.2.4 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest_rollbar/reporters.rb +10 -3
- data/lib/minitest_rollbar/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: 44abac817f580ca69d886636937674193b0a51c8
|
4
|
+
data.tar.gz: 40971faf5bf6901bda02f13fd2fffabed03135ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a0b0fad0d6f4e15025513e0ca4303e5f81792a1dc6f94b87d3c63ed1fc89141ec13386c2f44307631bd91b46a52e2eda3d89e7732cb28eae0f9b47ef60c0b4
|
7
|
+
data.tar.gz: 577011db42fb2c35142d08d9ccc45cb6b2bcea0ac8436caa444dfb39be1dfdc73bcdad1abc8e85d66c98c6efdb406f8d2c4eeeaf3656a615d7c13bdc8757dc6b
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'rollbar'
|
2
2
|
require 'minitest/reporters'
|
3
|
-
|
4
3
|
module MinitestRollbar
|
5
4
|
class << self
|
6
5
|
attr_accessor :access_token
|
7
6
|
attr_accessor :use_default_grouping
|
7
|
+
attr_accessor :enable_verify_ssl_peer
|
8
8
|
end
|
9
9
|
|
10
10
|
class RollbarReporter < Minitest::Reporters::BaseReporter
|
@@ -21,6 +21,11 @@ module MinitestRollbar
|
|
21
21
|
Rollbar.configure do |config|
|
22
22
|
config.access_token = MinitestRollbar.access_token
|
23
23
|
config.verify_ssl_peer = false
|
24
|
+
|
25
|
+
unless MinitestRollbar.enable_verify_ssl_peer.nil?
|
26
|
+
config.verify_ssl_peer = MinitestRollbar.enable_verify_ssl_peer
|
27
|
+
end
|
28
|
+
|
24
29
|
end
|
25
30
|
end
|
26
31
|
|
@@ -57,9 +62,11 @@ module MinitestRollbar
|
|
57
62
|
private
|
58
63
|
|
59
64
|
def notifier
|
60
|
-
|
61
|
-
Rollbar.scope({count: @sequential_exception_count, fingerprint: @previous_exception_inspect_result})
|
65
|
+
if(MinitestRollbar.use_default_grouping.nil?)
|
66
|
+
Rollbar.scope({count: @sequential_exception_count, fingerprint: @previous_exception_inspect_result})
|
67
|
+
else
|
62
68
|
Rollbar.scope({count: @sequential_exception_count})
|
69
|
+
end
|
63
70
|
end
|
64
71
|
|
65
72
|
def report_error_to_rollbar(notifier)
|