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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jemc/reporter.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83f28ed957008b9299ca5108236b54eedbdbcf07
4
- data.tar.gz: 25b3e401d3454274a08e1e976e9eb962699f8ad6
3
+ metadata.gz: 3dfc7ea489c154523afb121789cd8b82da8174b0
4
+ data.tar.gz: f280bed1217ca38d0bd99b5da843c5a4af7c3b95
5
5
  SHA512:
6
- metadata.gz: 2856577260ddd75ed6e681132957b44265ff20a5012bbfa734c8a9cf0344388bff13783be58586306aefce0ae4d194e5a60e82cfc9e1957d252c18f5669b291e
7
- data.tar.gz: d2fea9cf98734742a9cff0519fbdcec82c276a58b3f24913315b657a0ba7960269b7d66090d421e0fe80ea93876e2d8903777cfdb406ca93914675bfbda7f121
6
+ metadata.gz: 4de911a46f4c935b73c397a6822e64b8661171c9e1415ea869b3178fad0208e2a099c5131f37ba37825ca10c64210449a618d89d53a2abb76655d59b50ed3a1a
7
+ data.tar.gz: 0d8b1e0cb8dce87c2f82a38156db937e53cd20fad773959356db846e2fa9ad2ccb1baf683af7e5d0b24fa6b624cf670316b9cce5331c6d19e8e039e0270ce19b
@@ -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 ['`](.*)['`]/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jemc-reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain