bugsnag-api 2.1.1 → 3.0.0

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: 617f27c61db7b75cecc854aeeca930e461ce849c48ce5f9fba4ee072639781c4
4
- data.tar.gz: 84358e937d507d8abc75aa9971f99e9bba6a350e8292b8a3bf21d8a03d58ad33
3
+ metadata.gz: cb92be973f329fc0b534281572a49ac0bfc82d4a5effd917d7b10f2eb9d9a19c
4
+ data.tar.gz: 6bfb6147eb71be5cb1673c8a550b28af198e63dbd024eb1c1e8da40ec46e14b2
5
5
  SHA512:
6
- metadata.gz: d0779c59b38cc5735a8074489df90f0ca74f34dea5a3e38e2f957ff4735aa396005e5f607c51905107d3f7f848f5226323b84e01a2e3b564ecd01df8b8151b65
7
- data.tar.gz: f1db01abc52ef8289b21de312634ecc516214bf0805f4be2063f87deb37ec3fdc70028e435ab93bc9d371e0b84beeff513f4843613c0dc3eb912fc4f9c3e3da6
6
+ metadata.gz: d021963f0b0b663ced606dd48b8beef0d1b92cac78452ef582bcc10c46e96f3cffbdbeed6bfad82699cac1c207d0b9b26d19f6ac71380dd938f9af8d4ca56bb0
7
+ data.tar.gz: c3e14c300c70fa0fd80f498819f9e1f9ae59ec31b6ba5a2344e85b8eda87b66b163e21ad0eacb36686d9452a26b9396a03957b925979d590054e37cebde5fe73
@@ -8,7 +8,7 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
11
+ ruby-version: ['2.6', '2.7', '3.0', '3.1']
12
12
 
13
13
  steps:
14
14
  - uses: actions/checkout@v2
@@ -34,20 +34,3 @@ jobs:
34
34
  bundler-cache: true
35
35
 
36
36
  - run: bundle exec rubocop lib/
37
-
38
- # Ruby 1.9 and 2.0 aren't supported by setup-ruby so we have to use Docker instead
39
- legacy:
40
- runs-on: ubuntu-latest
41
- strategy:
42
- fail-fast: false
43
- matrix:
44
- ruby-version: ['1.9', '2.0']
45
-
46
- container: ruby:${{ matrix.ruby-version }}
47
-
48
- steps:
49
- - uses: actions/checkout@v2
50
-
51
- - run: bundle install
52
-
53
- - run: bundle exec rake spec
data/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## 3.0.0 (3 November 2022)
5
+
6
+ ### Enhancements
7
+
8
+ * Update required Sawyer version to `~> 0.9.2`
9
+ | [ilvez](https://github.com/ilvez)
10
+ | [#43](https://github.com/bugsnag/bugsnag-api-ruby/pull/43)
11
+
12
+ * Require Ruby 2.6+
13
+ | [#44](https://github.com/bugsnag/bugsnag-api-ruby/pull/44)
14
+
4
15
  ## 2.1.1 (2 November 2021)
5
16
 
6
17
  ### Fixes
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  Bugsnag API Toolkit for Ruby
2
2
  ============================
3
- ![Build status](https://travis-ci.org/bugsnag/bugsnag-api-ruby.svg?branch=master)
4
3
 
5
4
  The library allows for quick read/write access to the [Bugsnag Data Access API](https://docs.bugsnag.com/api/data-access/) from your Ruby applications. You can use this library to build your own applications which leverage data found in your Bugsnag dashboard.
6
5
 
7
- Version 2.x (current) of this gem corresponds to v2 of the Data Access API, while [1.x](https://github.com/bugsnag/bugsnag-api-ruby/tree/v1.0.3) uses the (deprecated) v1 of the Data Access API.
6
+ Version 3.x (current) and 2.x of this gem corresponds to v2 of the Data Access API, while [1.x](https://github.com/bugsnag/bugsnag-api-ruby/tree/v1.0.3) uses the (deprecated) v1 of the Data Access API.
8
7
 
9
8
  If you are looking to automatically detect crashes in your Ruby apps, you should take a look at the [Bugsnag Ruby Detection Library](https://docs.bugsnag.com/platforms/ruby) instead.
10
9
 
data/bugsnag-api.gemspec CHANGED
@@ -18,55 +18,16 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- if RUBY_VERSION < "2.2.0"
22
- spec.add_dependency "sawyer", '0.8.1'
21
+ spec.required_ruby_version = ">= 2.6"
23
22
 
24
- spec.add_development_dependency "rake", "< 12.0.0"
25
- spec.add_development_dependency "rubocop", "0.41.2"
26
- spec.add_development_dependency "faker", "1.3.0"
27
-
28
- # i18n is used by faker
29
- spec.add_development_dependency "i18n", "< 1.0.0"
30
-
31
- # crack is used by webmock
32
- spec.add_development_dependency "crack", "< 0.4.5"
33
- else
34
- spec.add_dependency "sawyer", '~> 0.8.1'
35
-
36
- spec.add_development_dependency "rake"
37
- spec.add_development_dependency "rubocop", "~> 0.52.1"
38
- spec.add_development_dependency "faker", "> 1.7.3"
39
- end
40
-
41
- if RUBY_VERSION < "2.0.0"
42
- spec.add_development_dependency "webmock", "2.3.2"
43
- spec.add_development_dependency "addressable", "2.3.6"
44
-
45
- # hashdiff is used by webmock
46
- spec.add_development_dependency "hashdiff", "< 0.3.8"
47
-
48
- # parser is used by rubocop
49
- spec.add_development_dependency "parser", "< 2.5.0"
50
- else
51
- spec.add_development_dependency "webmock", "> 2.3.2"
52
- spec.add_development_dependency "addressable", "> 2.3.6"
53
- end
54
-
55
- if RUBY_VERSION < "2.0.0"
56
- spec.add_development_dependency "json", "< 2.0.0"
57
- elsif RUBY_VERSION < "2.3.0"
58
- spec.add_development_dependency "json", "< 2.6.0"
59
- else
60
- spec.add_development_dependency "json"
61
- end
62
-
63
- # public_suffix is used by addressable & sawyer
64
- if RUBY_VERSION < "2.0.0"
65
- spec.add_development_dependency "public_suffix", "< 1.5.0"
66
- elsif RUBY_VERSION < "2.1.0"
67
- spec.add_development_dependency "public_suffix", "< 3.0.0"
68
- end
23
+ spec.add_dependency "sawyer", '~> 0.9.2'
69
24
 
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rubocop", "~> 0.52.1"
27
+ spec.add_development_dependency "faker", "> 1.7.3"
28
+ spec.add_development_dependency "webmock", "> 2.3.2"
29
+ spec.add_development_dependency "addressable", "> 2.3.6"
30
+ spec.add_development_dependency "json"
70
31
  spec.add_development_dependency "rspec", "~> 3.0"
71
32
  spec.add_development_dependency "vcr", "~> 2.9"
72
33
  end
@@ -8,7 +8,7 @@ module Bugsnag
8
8
 
9
9
  # This class raises an Bugsnag-flavored exception based
10
10
  # HTTP status codes returned by the API
11
- class RaiseError < Faraday::Response::Middleware
11
+ class RaiseError < Faraday::Response::RaiseError
12
12
  def on_complete(response)
13
13
  if error = Bugsnag::Api::Error.from_response(response)
14
14
  raise error
@@ -1,5 +1,5 @@
1
1
  module Bugsnag
2
2
  module Api
3
- VERSION = "2.1.1"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
data/lib/bugsnag/api.rb CHANGED
@@ -20,7 +20,10 @@ module Bugsnag
20
20
  client.configuration
21
21
  end
22
22
 
23
- # Get the static API client
23
+ # Get the static API client. Note that using the static API
24
+ # client may not work as expected in a multithreaded environment
25
+ # (e.g. when using the {#paginate} or {#last_response} instance
26
+ # methods)
24
27
  #
25
28
  # @return [Bugsnag::Api::Client] API client
26
29
  def client
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-02 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sawyer
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.1
19
+ version: 0.9.2
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: 0.8.1
26
+ version: 0.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -249,7 +249,7 @@ homepage: https://github.com/bugsnag/bugsnag-api-ruby
249
249
  licenses:
250
250
  - MIT
251
251
  metadata: {}
252
- post_install_message:
252
+ post_install_message:
253
253
  rdoc_options: []
254
254
  require_paths:
255
255
  - lib
@@ -257,15 +257,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
257
  requirements:
258
258
  - - ">="
259
259
  - !ruby/object:Gem::Version
260
- version: '0'
260
+ version: '2.6'
261
261
  required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  requirements:
263
263
  - - ">="
264
264
  - !ruby/object:Gem::Version
265
265
  version: '0'
266
266
  requirements: []
267
- rubygems_version: 3.2.22
268
- signing_key:
267
+ rubygems_version: 3.0.3.1
268
+ signing_key:
269
269
  specification_version: 4
270
270
  summary: Bugsnag API toolkit for ruby
271
271
  test_files: