minitest_rollbar 0.3.0 → 0.3.1

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: 1296b363cca31bcff33287bb482f21ea91824032
4
- data.tar.gz: 6a95b051939d589f276691a77b954e2b1f17ac9d
3
+ metadata.gz: f85c64bd781dc64fa18e568f441420d3a519affc
4
+ data.tar.gz: d468c26e153becb6a59d6fa0f5f027c3f22c5a66
5
5
  SHA512:
6
- metadata.gz: a2b562071716bd38167b7d2c88179c39307fffdd2fefcdd9379c398a36f1dc6a0cfff1c0493b5c3bf5705fca19acf41909afdd1c4048bbe28b5f45ce9de23a99
7
- data.tar.gz: e61c735f88281c9ed78c5e846380b332f8d760eb7318c38b49cee1d0fe8d47ac86d9ef84e15dce31625f06f8baf7b11fdba9ec6ab556f65183c627f4fbf80976
6
+ metadata.gz: 6e90e7b0e11c0daa0126112805b62bc9158026d62ad5b62291429ef70a08713ebd480e76d32ae59917a2755a6240a26e7344e0d2c2ce1cf3ca5cc7ffea7366a8
7
+ data.tar.gz: 7d5d29fcf1728faef3a421e58cedeb002d3cfbae70d97cd58240accb1b80c437c6ab63d884dca54b525cf581000515194abb9ef99f5fb46255c0df15810e193f
data/README.md CHANGED
@@ -28,7 +28,7 @@ Require necessary files on test_helper:
28
28
 
29
29
  Get a reporter with access_token and ssl policy using:
30
30
 
31
- @reporter = MinitestRollbar::RollbarReporter.new(rollbar_config: {verify_ssl_peer: false, access_token: 'whatever'})
31
+ @reporter = MinitestRollbar::RollbarReporter.new(rollbar_config: {verify_ssl_peer: false, access_token: 'whatever'})
32
32
 
33
33
  By default we try to group occurrence by string returned by exception.inspect (Concatenate exception class name and message). We generate a fingerprint for that. To use rollbar's [default](https://rollbar.com/docs/grouping-algorithm/) default grouping algorithm, do
34
34
 
@@ -58,12 +58,20 @@ module MinitestRollbar
58
58
 
59
59
  private
60
60
 
61
+ def git_commit_hash
62
+ ENV['BUILD_VCS_NUMBER']
63
+ end
64
+
65
+ def build_config_name
66
+ ENV['TEAMCITY_BUILDCONF_NAME']
67
+ end
68
+
61
69
  def notifier
62
- if(MinitestRollbar.use_default_grouping.nil?)
63
- Rollbar.scope({count: @sequential_exception_count, fingerprint: @previous_exception_inspect_result})
64
- else
65
- Rollbar.scope({count: @sequential_exception_count})
66
- end
70
+ if MinitestRollbar.use_default_grouping.nil?
71
+ Rollbar.scope({count: @sequential_exception_count, commit_hash: git_commit_hash, build_config: build_config_name, fingerprint: @previous_exception_inspect_result})
72
+ else
73
+ Rollbar.scope({count: @sequential_exception_count, commit_hash: git_commit_hash, build_config: build_config_name})
74
+ end
67
75
  end
68
76
 
69
77
  def report_error_to_rollbar(notifier)
@@ -1,3 +1,3 @@
1
1
  module MinitestRollbar
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest_rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuesong Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler