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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b2051548b4953111f13e58d930a87dfdf8eea18
4
- data.tar.gz: d08d68ff4a90fc65d991789af15ad63a6e07a5f0
3
+ metadata.gz: 44abac817f580ca69d886636937674193b0a51c8
4
+ data.tar.gz: 40971faf5bf6901bda02f13fd2fffabed03135ac
5
5
  SHA512:
6
- metadata.gz: db12c5079c8250081b4f968bf900196535653ec9598dfc6ec90db0d502d784221940ad80ebe3d8e3440a8355ee413098aea9eb9a97707bea2b860f232baa6d5a
7
- data.tar.gz: 16cceac41e0442b16a840a7588ce97f798efaea8dcf16b55fc1daf0a9ae1d521c64542d7b1cd255fb3352d428dc81c47b6dd147868c0197fe351b806a1f6386b
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
- MinitestRollbar.use_default_grouping.nil? ?
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)
@@ -1,3 +1,3 @@
1
1
  module MinitestRollbar
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest_rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuesong Wang