flexirest 1.4.3 → 1.4.4
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/lib/flexirest/request.rb +1 -1
- data/lib/flexirest/version.rb +1 -1
- data/spec/lib/request_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf900f63e66a10c574bc77e2bd4212f032ea7d0
|
4
|
+
data.tar.gz: 72b103054267b9fa983b431694fe26d562538b6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b3729ba91c631e48b3778e6b5083c6dc88769d018065cd01add4e39dfa6a218abe278f9032cb09436219bb97c3ff93985731f54e142565e62b9cb81727ae2a5
|
7
|
+
data.tar.gz: 6d54f34d380b98c0dcd6a677c88fccd4e68619b53c068f075cab6aeaf9912adabc73ea3698954d3cbe3a52188aa5f19b58d40f614738a006107f90a4cedf4d96
|
data/CHANGELOG.md
CHANGED
data/lib/flexirest/request.rb
CHANGED
@@ -461,7 +461,7 @@ module Flexirest
|
|
461
461
|
if (200..399).include?(status)
|
462
462
|
if @method[:options][:plain]
|
463
463
|
return @response = Flexirest::PlainResponse.from_response(response)
|
464
|
-
elsif
|
464
|
+
elsif [202, 204].include?(status) && @response.body.blank?
|
465
465
|
return true
|
466
466
|
elsif is_json_response? || is_xml_response?
|
467
467
|
if @response.respond_to?(:proxied) && @response.proxied
|
data/lib/flexirest/version.rb
CHANGED
data/spec/lib/request_spec.rb
CHANGED
@@ -604,7 +604,8 @@ describe Flexirest::Request do
|
|
604
604
|
rescue Flexirest::HTTPClientException => e
|
605
605
|
e
|
606
606
|
end
|
607
|
-
expect(e).to
|
607
|
+
expect(e).to be_a(Flexirest::HTTPClientException)
|
608
|
+
expect(e).to be_instance_of(Flexirest::HTTPConflictClientException)
|
608
609
|
expect(e.status).to eq(409)
|
609
610
|
expect(e.result.first_name).to eq("John")
|
610
611
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexirest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|