jemc-reporter 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jemc/reporter.rb +2 -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: 3dfc7ea489c154523afb121789cd8b82da8174b0
|
4
|
+
data.tar.gz: f280bed1217ca38d0bd99b5da843c5a4af7c3b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4de911a46f4c935b73c397a6822e64b8661171c9e1415ea869b3178fad0208e2a099c5131f37ba37825ca10c64210449a618d89d53a2abb76655d59b50ed3a1a
|
7
|
+
data.tar.gz: 0d8b1e0cb8dce87c2f82a38156db937e53cd20fad773959356db846e2fa9ad2ccb1baf683af7e5d0b24fa6b624cf670316b9cce5331c6d19e8e039e0270ce19b
|
data/lib/jemc/reporter.rb
CHANGED
@@ -143,7 +143,8 @@ module JEMC; class Reporter
|
|
143
143
|
def backtrace(exception)
|
144
144
|
index = exception.backtrace \
|
145
145
|
.find_index{|x| x=~/\/minitest\/(?=[^\/]*$).*['`]run['`]$/}
|
146
|
-
|
146
|
+
index ||= -1
|
147
|
+
|
147
148
|
exception.backtrace.map do |line|
|
148
149
|
m = line.match /(.*)(?<=\/)([^\:\/]*):(\d+)(?=:in):in ['`](.*)['`]/
|
149
150
|
m ||= line.match /()([^\:\/]*):(\d+)(?=:in):in ['`](.*)['`]/
|