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 +4 -4
- data/CHANGELOG.md +6 -0
- data/flexirest.gemspec +1 -1
- data/lib/flexirest/request.rb +3 -0
- data/lib/flexirest/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c49db36f1d2d0003480f590b89099c921838b25acdca881383654ca88e1fe961
|
4
|
+
data.tar.gz: 05ddbaf9a0ad3819f876585dfec4eeab53e7d746b9ac55ea7b8810a7fea5c3b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c51ca15f2502dfe13a5035fb6ab1566fde2b1bb32fdc5b946e7cae60fcbd778da085dbdc404e73a245312c4ad54e7f5f48161f625ffd130981f4a55a232f219
|
7
|
+
data.tar.gz: b4216957e4ceea4255ca35375986c9fe98c8e865b79a2426b81d7268d1150a67c704615270dc429ffa07e60d6b114d9d5d93a33b75e9c45f9c4e8d9686a28d9d
|
data/CHANGELOG.md
CHANGED
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"
|
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')
|
data/lib/flexirest/request.rb
CHANGED
@@ -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
|
data/lib/flexirest/version.rb
CHANGED
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.
|
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-
|
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: '
|
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: '
|
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.
|
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
|