restful_resource_bugsnag 0.1.0 → 0.1.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: 0a3f02c2fb9e7d290413e319170ea775b90d91b9
4
- data.tar.gz: b212a8cc3a77df620ef4ce8bbd8a8782766565a9
3
+ metadata.gz: 6a6734c5b382c9191a0df74be73585f83e593095
4
+ data.tar.gz: 6d68828bba6124fe73bd5485c42324e4b1d0853a
5
5
  SHA512:
6
- metadata.gz: eed60f953ba99815a19adbc4838147c6cab0689518bc002ee44567bbb5e8591bcaae99e0dafd15c76f99a5bb50bc370376c318c3598e1a418bb1161c5359d2c4
7
- data.tar.gz: 27c13f900b3eb1734a12d1ae649206dbb18aedb63d81dbe285bcc029c845dbe1a63d86d5816b7fbed3c049c4476c968d991dccb05c8bf3c835e7a8397ad7d08e
6
+ metadata.gz: 9ed5a407e98da1086758bec3236b5711aa469a8d5b1c5ded4d3c8aab7efcbedae392171cecdf6ff0d17d636ada6e13658a8834863f0dcbf3dcdc9b242dbcafcf
7
+ data.tar.gz: 2fe939a32454b129593ca02d23e29f4da3f76e181727155cc9dea48ce1df597e3e268b54ff7ad75dcd1248f4c085bc4faaa5e0664c43b91445e90eeef67b8c87
@@ -7,13 +7,18 @@ module RestfulResourceBugsnag
7
7
  def call(notification)
8
8
  exception = notification.exceptions.first
9
9
 
10
- if exception.is_a?(RestfulResource::HttpClient::UnprocessableEntity) ||
11
- exception.is_a?(RestfulResource::HttpClient::OtherHttpError)
10
+ if exception.is_a?(RestfulResource::HttpClient::HttpError)
12
11
  notification.add_tab(:response, {
13
12
  status: exception.response.status,
14
13
  body: exception.response.body,
15
14
  headers: exception.response.headers
16
15
  })
16
+ notification.add_tab(:request, {
17
+ method: exception.request.method,
18
+ url: exception.request.url,
19
+ accept: exception.request.accept,
20
+ body: exception.request.body
21
+ })
17
22
  end
18
23
  @bugsnag.call(notification)
19
24
  end
@@ -1,3 +1,3 @@
1
1
  module RestfulResourceBugsnag
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -20,11 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "bugsnag", "~> 4.0", ">= 4.0.2"
23
- spec.add_dependency "restful_resource", "~> 0.10.0"
23
+ spec.add_dependency "restful_resource", "~> 1.0.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
  spec.add_development_dependency "webmock", "~> 2.0", ">= 2.0.3"
29
- spec.add_development_dependency "pry", '~> 0.10.3'
30
29
  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.1.0
4
+ version: 0.1.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-06-06 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bugsnag
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.10.0
39
+ version: 1.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.10.0
46
+ version: 1.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -106,20 +106,6 @@ dependencies:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: 2.0.3
109
- - !ruby/object:Gem::Dependency
110
- name: pry
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: 0.10.3
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: 0.10.3
123
109
  description: A Bugsnag middleware which adds extra details to notifications for RestfulResource
124
110
  errors.
125
111
  email: