restful_resource_bugsnag 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +42 -0
- data/.gitignore +0 -1
- data/Gemfile.lock +91 -0
- data/lib/restful_resource_bugsnag/middleware.rb +2 -2
- data/lib/restful_resource_bugsnag/version.rb +1 -1
- data/restful_resource_bugsnag.gemspec +5 -5
- metadata +21 -26
- data/circle.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7e8250b9250d7f32580e3b7c549dec8bedfcec8e
|
4
|
+
data.tar.gz: 45416b01b60fcb066687950c73e29632e4c4456c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91852f1dbbebc5f50f0af19978e6b715f8a745a0ce474a7867ce4e6072b318f60c00d28209844c984882d27ba02ce1a074a510cb3b8d8f6f11001ac8420c04a
|
7
|
+
data.tar.gz: 4119f232fbb3d283083bb3f240cd99946c3ec92b765c3293177702267fd2d83db240ee0dec7a14e27aeff670bdcfc6b1c8924fe882bd41d7f98bd6014b9776a9
|
@@ -0,0 +1,42 @@
|
|
1
|
+
references:
|
2
|
+
ruby: &ruby
|
3
|
+
image: carwow/ruby-ci:2.6
|
4
|
+
|
5
|
+
defaults: &defaults
|
6
|
+
working_directory: ~/restful_resource_bugsnag
|
7
|
+
docker:
|
8
|
+
- *ruby
|
9
|
+
|
10
|
+
version: 2
|
11
|
+
jobs:
|
12
|
+
bundle:
|
13
|
+
<<: *defaults
|
14
|
+
steps:
|
15
|
+
- checkout
|
16
|
+
- restore_cache:
|
17
|
+
keys:
|
18
|
+
- bundle-v2-{{ checksum "Gemfile.lock" }}
|
19
|
+
- bundle-v2-
|
20
|
+
- run: |
|
21
|
+
bundle config --local path vendor/bundle &&
|
22
|
+
bundle check || bundle install --jobs=4 --retry=3
|
23
|
+
bundle clean --force
|
24
|
+
- save_cache:
|
25
|
+
key: bundle-v2-{{ checksum "Gemfile.lock" }}
|
26
|
+
paths: [vendor/bundle]
|
27
|
+
|
28
|
+
tests:
|
29
|
+
<<: *defaults
|
30
|
+
steps:
|
31
|
+
- checkout
|
32
|
+
- restore_cache: { keys: ['bundle-v2-{{ checksum "Gemfile.lock" }}'] }
|
33
|
+
- run: |
|
34
|
+
bundle exec rspec --pattern "**/*_spec.rb" --format "progress"
|
35
|
+
|
36
|
+
workflows:
|
37
|
+
version: 2
|
38
|
+
build:
|
39
|
+
jobs:
|
40
|
+
- bundle
|
41
|
+
- tests:
|
42
|
+
requires: [bundle]
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
restful_resource_bugsnag (0.4.2)
|
5
|
+
bugsnag (~> 6)
|
6
|
+
restful_resource (~> 2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (5.2.3)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
addressable (2.6.0)
|
17
|
+
public_suffix (>= 2.0.2, < 4.0)
|
18
|
+
bugsnag (6.11.1)
|
19
|
+
concurrent-ruby (~> 1.0)
|
20
|
+
concurrent-ruby (1.1.5)
|
21
|
+
crack (0.4.3)
|
22
|
+
safe_yaml (~> 1.0.0)
|
23
|
+
diff-lcs (1.3)
|
24
|
+
ethon (0.12.0)
|
25
|
+
ffi (>= 1.3.0)
|
26
|
+
faraday (0.15.4)
|
27
|
+
multipart-post (>= 1.2, < 3)
|
28
|
+
faraday-cdn-metrics (0.1.0)
|
29
|
+
faraday (~> 0.11)
|
30
|
+
faraday-encoding (0.0.5)
|
31
|
+
faraday
|
32
|
+
faraday-http-cache (2.0.0)
|
33
|
+
faraday (~> 0.8)
|
34
|
+
faraday_middleware (0.13.1)
|
35
|
+
faraday (>= 0.7.4, < 1.0)
|
36
|
+
ffi (1.11.1)
|
37
|
+
hashdiff (0.3.9)
|
38
|
+
i18n (1.6.0)
|
39
|
+
concurrent-ruby (~> 1.0)
|
40
|
+
link_header (0.0.8)
|
41
|
+
minitest (5.11.3)
|
42
|
+
multipart-post (2.1.1)
|
43
|
+
public_suffix (3.0.3)
|
44
|
+
rack (2.0.7)
|
45
|
+
rake (12.3.2)
|
46
|
+
restful_resource (2.5.1)
|
47
|
+
activesupport
|
48
|
+
faraday
|
49
|
+
faraday-cdn-metrics
|
50
|
+
faraday-encoding
|
51
|
+
faraday-http-cache
|
52
|
+
faraday_middleware
|
53
|
+
link_header
|
54
|
+
rack
|
55
|
+
typhoeus
|
56
|
+
rspec (3.8.0)
|
57
|
+
rspec-core (~> 3.8.0)
|
58
|
+
rspec-expectations (~> 3.8.0)
|
59
|
+
rspec-mocks (~> 3.8.0)
|
60
|
+
rspec-core (3.8.0)
|
61
|
+
rspec-support (~> 3.8.0)
|
62
|
+
rspec-expectations (3.8.3)
|
63
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
+
rspec-support (~> 3.8.0)
|
65
|
+
rspec-mocks (3.8.0)
|
66
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
+
rspec-support (~> 3.8.0)
|
68
|
+
rspec-support (3.8.0)
|
69
|
+
safe_yaml (1.0.5)
|
70
|
+
thread_safe (0.3.6)
|
71
|
+
typhoeus (1.3.1)
|
72
|
+
ethon (>= 0.9.0)
|
73
|
+
tzinfo (1.2.5)
|
74
|
+
thread_safe (~> 0.1)
|
75
|
+
webmock (3.5.1)
|
76
|
+
addressable (>= 2.3.6)
|
77
|
+
crack (>= 0.3.2)
|
78
|
+
hashdiff
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
ruby
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
bundler
|
85
|
+
rake
|
86
|
+
restful_resource_bugsnag!
|
87
|
+
rspec
|
88
|
+
webmock
|
89
|
+
|
90
|
+
BUNDLED WITH
|
91
|
+
2.0.1
|
@@ -7,7 +7,7 @@ module RestfulResourceBugsnag
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(notification)
|
10
|
-
exception = notification.
|
10
|
+
exception = notification.raw_exceptions.first
|
11
11
|
|
12
12
|
if exception.is_a?(RestfulResource::HttpClient::HttpError)
|
13
13
|
notification.add_tab(:restful_resource_response, {
|
@@ -33,7 +33,7 @@ module RestfulResourceBugsnag
|
|
33
33
|
notification.context = "Client error: Service unavailable #{request_host_from_exception exception}"
|
34
34
|
notification.grouping_hash = notification.context
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
if exception.is_a?(RestfulResource::HttpClient::Timeout)
|
38
38
|
notification.context = "Client error: Timeout #{request_host_from_exception exception}"
|
39
39
|
notification.grouping_hash = notification.context
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "bugsnag", "~>
|
22
|
+
spec.add_dependency "bugsnag", "~> 6"
|
23
23
|
spec.add_dependency "restful_resource", "~> 2"
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rake"
|
27
|
-
spec.add_development_dependency "rspec"
|
28
|
-
spec.add_development_dependency "webmock"
|
25
|
+
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "rake"
|
27
|
+
spec.add_development_dependency "rspec"
|
28
|
+
spec.add_development_dependency "webmock"
|
29
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.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mwagg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bugsnag
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: restful_resource
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,64 +42,58 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.0'
|
90
87
|
- - ">="
|
91
88
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
89
|
+
version: '0'
|
93
90
|
type: :development
|
94
91
|
prerelease: false
|
95
92
|
version_requirements: !ruby/object:Gem::Requirement
|
96
93
|
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '2.0'
|
100
94
|
- - ">="
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
96
|
+
version: '0'
|
103
97
|
description: A Bugsnag middleware which adds extra details to notifications for RestfulResource
|
104
98
|
errors.
|
105
99
|
email:
|
@@ -108,16 +102,17 @@ executables: []
|
|
108
102
|
extensions: []
|
109
103
|
extra_rdoc_files: []
|
110
104
|
files:
|
105
|
+
- ".circleci/config.yml"
|
111
106
|
- ".gitignore"
|
112
107
|
- ".rspec"
|
113
108
|
- CODE_OF_CONDUCT.md
|
114
109
|
- Gemfile
|
110
|
+
- Gemfile.lock
|
115
111
|
- LICENSE.txt
|
116
112
|
- README.md
|
117
113
|
- Rakefile
|
118
114
|
- bin/console
|
119
115
|
- bin/setup
|
120
|
-
- circle.yml
|
121
116
|
- lib/restful_resource_bugsnag.rb
|
122
117
|
- lib/restful_resource_bugsnag/middleware.rb
|
123
118
|
- lib/restful_resource_bugsnag/version.rb
|
@@ -142,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
137
|
version: '0'
|
143
138
|
requirements: []
|
144
139
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.6.14.1
|
146
141
|
signing_key:
|
147
142
|
specification_version: 4
|
148
143
|
summary: A Bugsnag middleware which adds extra details to notifications for RestfulResource
|
data/circle.yml
DELETED