smith-squash 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smith/squash/squashable_agent.rb +12 -1
- data/lib/smith/squash/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: 7d98fd0a33a935665e7aafc9c18235eb701aaf20
|
4
|
+
data.tar.gz: 779881b50132989f35f5ef0ab72fe7c5daaac21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c5c3c2006905b14765ada877a4e80e8548d63a0ea3062337ee48fe12384dc5677f8a4827e7f8db8f0d3db2fdb5bff6af19f2cb80cb50fae7812685820c09b3
|
7
|
+
data.tar.gz: 069e4feb53550d07b878bc892b70cf4f9368a54e5898576b3c55a34b66706ec59b493e7f28b158c397f7a49cc629c78a7771b2cf26a725f546283fb84fffb4ab
|
@@ -21,8 +21,19 @@ module Smith
|
|
21
21
|
# @param error [Exception] the exception to notify squash about
|
22
22
|
# @param additional_data [Hash] some additional meta data to send with the
|
23
23
|
# exception
|
24
|
-
def squash_notify(
|
24
|
+
def squash_notify(exception, additional_data = {})
|
25
25
|
if use_squash?
|
26
|
+
|
27
|
+
# Little hack since squash doesn't allow the sending of exceptions
|
28
|
+
# without a backtrace.
|
29
|
+
unless exception.backtrace
|
30
|
+
begin
|
31
|
+
raise exception
|
32
|
+
rescue ::Exception => ex
|
33
|
+
exception = ex
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
26
37
|
::Squash::Ruby.notify(exception, additional_data.merge(:class => self.class))
|
27
38
|
end
|
28
39
|
end
|
data/lib/smith/squash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smith-squash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Griffith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: squash_ruby
|