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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b027d04ad1d756f60061ffe2d93dda83de0370bfa6c8684109ef7c607b68c4c5
4
- data.tar.gz: b10628f0e548597af8d4f21d14f554788d5de0f8207b7f36ef7ed5a142ce8379
2
+ SHA1:
3
+ metadata.gz: 7e8250b9250d7f32580e3b7c549dec8bedfcec8e
4
+ data.tar.gz: 45416b01b60fcb066687950c73e29632e4c4456c
5
5
  SHA512:
6
- metadata.gz: f8903402529bef1220c0587998f1db59b1c1af560f940d218e8b6ed5c8b3659d328223ff98b7878f3da2b0750669ea82e7e51ecdab918c1346aaffd4b5f5c45c
7
- data.tar.gz: 8cf82de400d78326024728700904dd40bc2e0052641248e96a910aa2e0ac81169b487d764941a573fe6ccc8adcc582a9a3cab94dbca0f484aabeb2d75f04e0cc
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
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
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.exceptions.first
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
@@ -1,3 +1,3 @@
1
1
  module RestfulResourceBugsnag
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -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", "~> 5"
22
+ spec.add_dependency "bugsnag", "~> 6"
23
23
  spec.add_dependency "restful_resource", "~> 2"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.12"
26
- spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
28
- spec.add_development_dependency "webmock", "~> 2.0", ">= 2.0.3"
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.1
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: 2018-04-20 00:00:00.000000000 Z
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: '5'
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: '5'
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: '1.12'
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: '1.12'
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: '10.0'
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: '10.0'
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: '3.0'
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: '3.0'
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: 2.0.3
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: 2.0.3
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.7.6
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
@@ -1,3 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.1