flexirest 1.8.0 → 1.8.1

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: 0646b0d77ed69a83a024542226cd74833092523296edd7c6b48e6524a376c67c
4
- data.tar.gz: d645d44a87ff5fabf8a7b9d6306f48bd6b899a7f6c966ded3d37a7456e091edd
3
+ metadata.gz: c49db36f1d2d0003480f590b89099c921838b25acdca881383654ca88e1fe961
4
+ data.tar.gz: 05ddbaf9a0ad3819f876585dfec4eeab53e7d746b9ac55ea7b8810a7fea5c3b9
5
5
  SHA512:
6
- metadata.gz: 96a26d232291398f3bc7b13927ecd80175cdf3eea0293fd3d52c317ab55257e8269362ab4b5db0ac87d0f63621777518b6ad3758385bdda84a1782546e892dc3
7
- data.tar.gz: c3ee959ee87e8f325d8ff16f1e1a4e2d2746dc6765e159193194fd85aa414ac3c8b5b8491a32d261bca0c982d9feb6c2caafcfa0398b591b9eae5cb2e68c2ef8
6
+ metadata.gz: 7c51ca15f2502dfe13a5035fb6ab1566fde2b1bb32fdc5b946e7cae60fcbd778da085dbdc404e73a245312c4ad54e7f5f48161f625ffd130981f4a55a232f219
7
+ data.tar.gz: b4216957e4ceea4255ca35375986c9fe98c8e865b79a2426b81d7268d1150a67c704615270dc429ffa07e60d6b114d9d5d93a33b75e9c45f9c4e8d9686a28d9d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.1
4
+
5
+ Features:
6
+
7
+ - Added a specific `Flexirest::HTTPTooManyRequestsClientException` for 429 errors, to enable easier trapping
8
+
3
9
  ## 1.8.0
4
10
 
5
11
  Features:
data/flexirest.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.3"
26
+ spec.add_development_dependency "bundler"
27
27
  spec.add_development_dependency "rake"
28
28
  spec.add_development_dependency "rspec", "~> 3"
29
29
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
@@ -584,6 +584,8 @@ module Flexirest
584
584
  raise HTTPTimeoutClientException.new(status:status, result:error_response, raw_response: @response.body, url:@url, method: http_method)
585
585
  elsif status == 409
586
586
  raise HTTPConflictClientException.new(status:status, result:error_response, raw_response: @response.body, url:@url, method: http_method)
587
+ elsif status == 409
588
+ raise HTTPTooManyRequestsClientException.new(status:status, result:error_response, raw_response: @response.body, url:@url, method: http_method)
587
589
  elsif (400..499).include? status
588
590
  raise HTTPClientException.new(status:status, result:error_response, raw_response: @response.body, url:@url, method: http_method)
589
591
  elsif (500..599).include? status
@@ -841,6 +843,7 @@ module Flexirest
841
843
  class HTTPTimeoutClientException < HTTPClientException ; end
842
844
  class HTTPConflictClientException < HTTPClientException ; end
843
845
  class HTTPNotFoundClientException < HTTPClientException ; end
846
+ class HTTPTooManyRequestsClientException < HTTPClientException ; end
844
847
  class HTTPServerException < HTTPException ; end
845
848
 
846
849
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
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: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -348,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
348
  - !ruby/object:Gem::Version
349
349
  version: '0'
350
350
  requirements: []
351
- rubygems_version: 3.0.1
351
+ rubygems_version: 3.0.6
352
352
  signing_key:
353
353
  specification_version: 4
354
354
  summary: This gem is for accessing REST services in a flexible way. ActiveResource