failbot 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/failbot.rb +4 -1
- data/lib/failbot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bf1cd8e88ccca089754a6f50a95eee082d6c539
|
4
|
+
data.tar.gz: 1effc1524d589bf0ec7fef6c889d25e6370d3bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d57f92ffc7d22d628585737b7237e9e205ac00227ab933c16a0e285079e57de3dfbd2a23423b10bfb37fbaa5531b113b598c270296d572f0e8afdffe429b58
|
7
|
+
data.tar.gz: 5c462f2056572ce7a66cd220179f220f86a0794ae1d0e9f800108f52898262da0919aa175e14935a527a2b5137be5067beb2ac74a3f5dde55770925522fb35a9
|
data/lib/failbot.rb
CHANGED
@@ -434,7 +434,10 @@ module Failbot
|
|
434
434
|
backtrace = Array(e.backtrace)
|
435
435
|
cause_backtrace = Array(cause.backtrace)
|
436
436
|
index = -1
|
437
|
-
|
437
|
+
min_index = [backtrace.size, cause_backtrace.size].min * -1
|
438
|
+
just_in_case = -5000
|
439
|
+
|
440
|
+
while index > min_index && backtrace[index] == cause_backtrace[index] && index >= just_in_case
|
438
441
|
index -= 1
|
439
442
|
end
|
440
443
|
|
data/lib/failbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: failbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@rtomayko"
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: yajl-ruby
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: 1.3.6
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.4.5.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Deliver exceptions to Haystack
|