restful_resource_bugsnag 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: 8aca2c4f060de91456555ba272cf82b9dfb3561686a5db1271458dcbcc2cc9b8
4
- data.tar.gz: 2d061e4ef4c73a8f6974a99da117b6b9c1bbd5873b85a80885e303ed01f9486e
3
+ metadata.gz: af470ec26686a0387dffd52b8928dc3aa430443c98a6088072edc2d2f4d7face
4
+ data.tar.gz: 8a9f88906f89c9d10c394817119b547f51f4c4c43c4ee00ca0a83d9f433adc7d
5
5
  SHA512:
6
- metadata.gz: '091765fce9f89eda509a533a85ca55d6ac687664b7d446f198463c567fe982fe1f97077b61c231b6151a8d47c96034f05af06f41bcdee9bacf399c3a86fede38'
7
- data.tar.gz: 391717c5b6ccc1f8bcabc498598641694fd45d6b63fd7d8970c335b12a9666e76d9a695db919610de837904ab271c37acfda243f2734738f4544e5464168a7e8
6
+ metadata.gz: 203e15c9b11ba7147e2dea483df9f2213a33ddc75845decc5207616fa95dbb2be0030fe8f4606f6a4e77bb8e89b7d48f84dd2940cc346ecc5956f093146cf8f8
7
+ data.tar.gz: b77b3ef436f30e61911a5859891868e1028ba41ebb442da6fa0da1f16f308bad90613c12d66a50bb6a977682362d7fea41dbfe3b20df77c2122b2dc377d5816b
data/.circleci/config.yml CHANGED
@@ -1,6 +1,8 @@
1
1
  references:
2
2
  ruby: &ruby
3
- image: carwow/ruby-ci:2.6
3
+ image: carwow/ruby-ci:3.1
4
+ environment:
5
+ RUBYOPT: -w # Enable warnings, to expose deprecations
4
6
 
5
7
  defaults: &defaults
6
8
  working_directory: ~/restful_resource_bugsnag
data/Gemfile.lock CHANGED
@@ -1,52 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- restful_resource_bugsnag (0.5.2)
4
+ restful_resource_bugsnag (0.5.3)
5
5
  bugsnag (~> 6)
6
6
  restful_resource (~> 2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.3.4)
11
+ activesupport (7.0.7.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
17
- addressable (2.6.0)
18
- public_suffix (>= 2.0.2, < 4.0)
19
- bugsnag (6.18.0)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ addressable (2.8.0)
17
+ public_suffix (>= 2.0.2, < 5.0)
18
+ bugsnag (6.26.0)
20
19
  concurrent-ruby (~> 1.0)
21
- concurrent-ruby (1.1.7)
20
+ concurrent-ruby (1.2.2)
22
21
  crack (0.4.3)
23
22
  safe_yaml (~> 1.0.0)
24
23
  diff-lcs (1.3)
25
- ethon (0.12.0)
26
- ffi (>= 1.3.0)
27
- faraday (1.1.0)
28
- multipart-post (>= 1.2, < 3)
29
- ruby2_keywords
24
+ ethon (0.16.0)
25
+ ffi (>= 1.15.0)
26
+ faraday (1.10.3)
27
+ faraday-em_http (~> 1.0)
28
+ faraday-em_synchrony (~> 1.0)
29
+ faraday-excon (~> 1.1)
30
+ faraday-httpclient (~> 1.0)
31
+ faraday-multipart (~> 1.0)
32
+ faraday-net_http (~> 1.0)
33
+ faraday-net_http_persistent (~> 1.0)
34
+ faraday-patron (~> 1.0)
35
+ faraday-rack (~> 1.0)
36
+ faraday-retry (~> 1.0)
37
+ ruby2_keywords (>= 0.0.4)
30
38
  faraday-cdn-metrics (0.2.0)
31
39
  faraday (~> 1)
40
+ faraday-em_http (1.0.0)
41
+ faraday-em_synchrony (1.0.0)
32
42
  faraday-encoding (0.0.5)
33
43
  faraday
34
- faraday-http-cache (2.2.0)
44
+ faraday-excon (1.1.0)
45
+ faraday-http-cache (2.5.0)
35
46
  faraday (>= 0.8)
36
- faraday_middleware (1.0.0)
47
+ faraday-httpclient (1.0.1)
48
+ faraday-multipart (1.0.4)
49
+ multipart-post (~> 2)
50
+ faraday-net_http (1.0.1)
51
+ faraday-net_http_persistent (1.2.0)
52
+ faraday-patron (1.0.0)
53
+ faraday-rack (1.0.0)
54
+ faraday-retry (1.0.3)
55
+ faraday_middleware (1.2.0)
37
56
  faraday (~> 1.0)
38
- ffi (1.13.1)
57
+ ffi (1.15.5)
39
58
  hashdiff (0.3.9)
40
- i18n (1.8.5)
59
+ i18n (1.14.1)
41
60
  concurrent-ruby (~> 1.0)
42
61
  link_header (0.0.8)
43
- minitest (5.14.2)
44
- multipart-post (2.1.1)
45
- public_suffix (3.0.3)
46
- rack (2.2.3)
62
+ minitest (5.19.0)
63
+ multipart-post (2.3.0)
64
+ public_suffix (4.0.6)
65
+ rack (2.2.8)
47
66
  rake (13.0.1)
48
- restful_resource (2.10.3)
49
- activesupport (~> 6.0)
67
+ restful_resource (2.13.4)
68
+ activesupport (>= 6, < 8)
50
69
  faraday (~> 1.0)
51
70
  faraday-cdn-metrics (~> 0.2)
52
71
  faraday-encoding
@@ -55,6 +74,7 @@ GEM
55
74
  link_header
56
75
  rack (~> 2.2)
57
76
  typhoeus (~> 1.4)
77
+ rexml (3.2.6)
58
78
  rspec (3.8.0)
59
79
  rspec-core (~> 3.8.0)
60
80
  rspec-expectations (~> 3.8.0)
@@ -68,18 +88,16 @@ GEM
68
88
  diff-lcs (>= 1.2.0, < 2.0)
69
89
  rspec-support (~> 3.8.0)
70
90
  rspec-support (3.8.0)
71
- ruby2_keywords (0.0.2)
91
+ ruby2_keywords (0.0.5)
72
92
  safe_yaml (1.0.5)
73
- thread_safe (0.3.6)
74
93
  typhoeus (1.4.0)
75
94
  ethon (>= 0.9.0)
76
- tzinfo (1.2.8)
77
- thread_safe (~> 0.1)
95
+ tzinfo (2.0.6)
96
+ concurrent-ruby (~> 1.0)
78
97
  webmock (3.5.1)
79
98
  addressable (>= 2.3.6)
80
99
  crack (>= 0.3.2)
81
100
  hashdiff
82
- zeitwerk (2.4.1)
83
101
 
84
102
  PLATFORMS
85
103
  ruby
@@ -88,6 +106,7 @@ DEPENDENCIES
88
106
  bundler
89
107
  rake
90
108
  restful_resource_bugsnag!
109
+ rexml
91
110
  rspec
92
111
  webmock
93
112
 
@@ -10,16 +10,22 @@ module RestfulResourceBugsnag
10
10
  exception = notification.raw_exceptions.first
11
11
 
12
12
  if exception.is_a?(RestfulResource::HttpClient::HttpError)
13
- notification.add_tab(:restful_resource_response, {
14
- status: exception.response.status,
15
- body: attempt_json_parse(exception.response.body),
16
- headers: exception.response.headers
17
- })
18
- notification.add_tab(:restful_resource_request, {
19
- method: exception.request.method,
20
- url: exception.request.url,
21
- body: attempt_json_parse(exception.request.body)
22
- })
13
+ notification.add_metadata(
14
+ :restful_resource_response,
15
+ {
16
+ status: exception.response.status,
17
+ body: attempt_json_parse(exception.response.body),
18
+ headers: exception.response.headers
19
+ }
20
+ )
21
+ notification.add_metadata(
22
+ :restful_resource_request,
23
+ {
24
+ method: exception.request.method,
25
+ url: exception.request.url,
26
+ body: attempt_json_parse(exception.request.body)
27
+ }
28
+ )
23
29
  end
24
30
 
25
31
  # Display the request host in the context so its easy to see in Bugsnag which service was unresponsive
@@ -1,3 +1,3 @@
1
1
  module RestfulResourceBugsnag
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rake"
27
27
  spec.add_development_dependency "rspec"
28
28
  spec.add_development_dependency "webmock"
29
+ spec.add_development_dependency "rexml"
29
30
  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.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mwagg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2023-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bugsnag
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rexml
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: A Bugsnag middleware which adds extra details to notifications for RestfulResource
98
112
  errors.
99
113
  email:
@@ -121,7 +135,7 @@ homepage: https://github.com/carwow/restful_resource_bugsnag
121
135
  licenses:
122
136
  - MIT
123
137
  metadata: {}
124
- post_install_message:
138
+ post_install_message:
125
139
  rdoc_options: []
126
140
  require_paths:
127
141
  - lib
@@ -136,8 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
150
  - !ruby/object:Gem::Version
137
151
  version: '0'
138
152
  requirements: []
139
- rubygems_version: 3.1.2
140
- signing_key:
153
+ rubygems_version: 3.1.6
154
+ signing_key:
141
155
  specification_version: 4
142
156
  summary: A Bugsnag middleware which adds extra details to notifications for RestfulResource
143
157
  errors.