restful_resource_bugsnag 0.3.0 → 0.3.1

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: c1ace8709b36b10f668ed7118bfdbc4906eeb6b6
4
- data.tar.gz: 36aa965e63fb959dae4d55e483ca819b89bd822a
3
+ metadata.gz: 5364387d5bed8d3251bb4ef6d3b3a46b3db5cf6c
4
+ data.tar.gz: 7a37346c075d9a9b3a87f2ba722dbdf7891ff875
5
5
  SHA512:
6
- metadata.gz: 12657d31b4c26d47eec440146ee88c644079539e48e1fd1eb51bee766c5281a1fcb3f9a0c10b34057fde9b6e238bd87b714700654b5425d05b5160e21d88b9a6
7
- data.tar.gz: 96ed4624efa690faa6950b2c0a547a8fe943c5ccbfb4ec88f90974a5ef35ea288f0a1fd1047ccc69513bf44ac5553e3b2083610328f53234e07e8a12f96ede97
6
+ metadata.gz: 91747d01b252ebab8c3184e8e6a9bc289c0ebe3cea89ed1eb32edeccd391ea2747bb4d3a73e2a4b1bce1c143b1ca96656c0ff6ece3e73a3aa8ef1badce25f672
7
+ data.tar.gz: 38963a9d1dfc52e97be0833c924d615bbf83bb68cce3fff04302a25d6209a7ac060e9b84198a60032a977f9290a1f995a55e8b27b1b58d7ab450ae07ea449690
@@ -34,6 +34,11 @@ module RestfulResourceBugsnag
34
34
  notification.context = "Client error: Service unavailable #{request_host_from_exception exception}"
35
35
  notification.grouping_hash = notification.context
36
36
  end
37
+
38
+ if exception.is_a?(RestfulResource::HttpClient::Timeout)
39
+ notification.context = "Client error: Timeout #{request_host_from_exception exception}"
40
+ notification.grouping_hash = notification.context
41
+ end
37
42
 
38
43
  @bugsnag.call(notification)
39
44
  end
@@ -1,3 +1,3 @@
1
1
  module RestfulResourceBugsnag
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_resource_bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mwagg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bugsnag
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.5.1
145
+ rubygems_version: 2.5.2
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: A Bugsnag middleware which adds extra details to notifications for RestfulResource