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 +4 -4
- data/README.md +1 -1
- data/lib/minitest_rollbar/reporters.rb +13 -5
- data/lib/minitest_rollbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f85c64bd781dc64fa18e568f441420d3a519affc
|
4
|
+
data.tar.gz: d468c26e153becb6a59d6fa0f5f027c3f22c5a66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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)
|
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.
|
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-
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|