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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2c9da07ab597af994e15c2c059080bf83a4e717
4
- data.tar.gz: 898df4a8b90a849e08cdb1a0a3d15fb0e592fca8
3
+ metadata.gz: 5bf900f63e66a10c574bc77e2bd4212f032ea7d0
4
+ data.tar.gz: 72b103054267b9fa983b431694fe26d562538b6b
5
5
  SHA512:
6
- metadata.gz: b967378d32976b65d992c7e8bc760f1050c36b73894aedb81603f0df0034a8ba237e7e524ec5a7bec5b6861d27eee2b556b64f46ff7ee05e199de75d188571af
7
- data.tar.gz: f9e430e9e7a935f5a6335a8f015cb2054701e2a9f0d30c6b4e2c6be32fd1a07e4be26e1c63c15c405045fe3c12e9482cbc772c6525bf61aa0c66558b42bb50da
6
+ metadata.gz: 9b3729ba91c631e48b3778e6b5083c6dc88769d018065cd01add4e39dfa6a218abe278f9032cb09436219bb97c3ff93985731f54e142565e62b9cb81727ae2a5
7
+ data.tar.gz: 6d54f34d380b98c0dcd6a677c88fccd4e68619b53c068f075cab6aeaf9912adabc73ea3698954d3cbe3a52188aa5f19b58d40f614738a006107f90a4cedf4d96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.4
4
+
5
+ Feature:
6
+
7
+ - Handling 202s without any content the same as a 204.
8
+
3
9
  ## 1.4.3
4
10
 
5
11
  Feature:
@@ -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 status == 204 && @response.body.blank?
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
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
@@ -604,7 +604,8 @@ describe Flexirest::Request do
604
604
  rescue Flexirest::HTTPClientException => e
605
605
  e
606
606
  end
607
- expect(e).to be_instance_of(Flexirest::HTTPClientException)
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.3
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-30 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler