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 +4 -4
- data/.circleci/config.yml +3 -1
- data/Gemfile.lock +49 -30
- data/lib/restful_resource_bugsnag/middleware.rb +16 -10
- data/lib/restful_resource_bugsnag/version.rb +1 -1
- data/restful_resource_bugsnag.gemspec +1 -0
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af470ec26686a0387dffd52b8928dc3aa430443c98a6088072edc2d2f4d7face
|
4
|
+
data.tar.gz: 8a9f88906f89c9d10c394817119b547f51f4c4c43c4ee00ca0a83d9f433adc7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203e15c9b11ba7147e2dea483df9f2213a33ddc75845decc5207616fa95dbb2be0030fe8f4606f6a4e77bb8e89b7d48f84dd2940cc346ecc5956f093146cf8f8
|
7
|
+
data.tar.gz: b77b3ef436f30e61911a5859891868e1028ba41ebb442da6fa0da1f16f308bad90613c12d66a50bb6a977682362d7fea41dbfe3b20df77c2122b2dc377d5816b
|
data/.circleci/config.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,52 +1,71 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
restful_resource_bugsnag (0.5.
|
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 (
|
11
|
+
activesupport (7.0.7.2)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
-
i18n (>=
|
14
|
-
minitest (
|
15
|
-
tzinfo (~>
|
16
|
-
|
17
|
-
|
18
|
-
|
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.
|
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.
|
26
|
-
ffi (>= 1.
|
27
|
-
faraday (1.
|
28
|
-
|
29
|
-
|
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-
|
44
|
+
faraday-excon (1.1.0)
|
45
|
+
faraday-http-cache (2.5.0)
|
35
46
|
faraday (>= 0.8)
|
36
|
-
|
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.
|
57
|
+
ffi (1.15.5)
|
39
58
|
hashdiff (0.3.9)
|
40
|
-
i18n (1.
|
59
|
+
i18n (1.14.1)
|
41
60
|
concurrent-ruby (~> 1.0)
|
42
61
|
link_header (0.0.8)
|
43
|
-
minitest (5.
|
44
|
-
multipart-post (2.
|
45
|
-
public_suffix (
|
46
|
-
rack (2.2.
|
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.
|
49
|
-
activesupport (
|
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.
|
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 (
|
77
|
-
|
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.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
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.
|
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:
|
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.
|
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.
|