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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1342868eab74bc67b9aaae9f137a9fb342e9335c
4
- data.tar.gz: dbf5ee015c64f8c2f5c997e880389fe835e0cde7
3
+ metadata.gz: 7d98fd0a33a935665e7aafc9c18235eb701aaf20
4
+ data.tar.gz: 779881b50132989f35f5ef0ab72fe7c5daaac21b
5
5
  SHA512:
6
- metadata.gz: 077ab9783d6a932c0246a50a05be44d1314be0e201cee2af87d251ece8eca9365961c17fd0fd196d99965fa0d61163e12c1632feec4f3d7960d8cb4b20914569
7
- data.tar.gz: 9ff7f2c05240f76e6703d92c64f0861e311325e62a8fe400bf9caacbe13bcd16c75ed0132a8f4a51515cef45423f5df979c5070d5f6f47c9bb1d3eaff072d270
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(error, additional_data = {})
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
@@ -1,5 +1,5 @@
1
1
  module Smith
2
2
  module Squash
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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-01-31 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: squash_ruby