flexirest 1.7.1 → 1.7.2

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: 4cdc8ff86f82324c82e70c1fb8029e66a935e1ef
4
- data.tar.gz: 893d3c0cb2198adbaeb81c77d7d0bd4d2549bf90
3
+ metadata.gz: ddeed579fa942a385f6b7abb6c67ce95cbec9663
4
+ data.tar.gz: f95768e9b39ffe1df399d531e12fd3f76a40424f
5
5
  SHA512:
6
- metadata.gz: a76ac56123023ec67d94139ec6b39a1fa9b874a412556838d1ac226377f4e65fe9e7c613010bef8f16f38cc5b9cd8c14a101f863633a825476f081b7779398ad
7
- data.tar.gz: 7f9adf54d566bd067cd72e7c6ad9792eb676b026dab6483944c48bd114bc3c90a41f3ca3306ba014413f6c124b6035fd1c1de2abf0da60e81fe61437dea051cc
6
+ metadata.gz: 8f3eecbc6d5a7b3075b616c30eb2bb1f0d8ead60605b719cd2f3289e7ecc59e2c3333ec6b9171d2a15869a44521fa3060a3d2b3c12d0f109e0685d9fbc073b5f
7
+ data.tar.gz: d382545e8d5e382affc6780a5d4478acb9fc17181e8637e0ce665f64ac07bdfff220e99a6e0b3a80692a5b35ff19fbf5f45f220648c2817a61a732e645e7ac0d
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.2
4
+
5
+ Bugfix:
6
+
7
+ - JSON responses containing `null` crashed Flexirest, now they return a valid but empty object (thanks to Thomas Steinhausen for the PR)
8
+
3
9
  ## 1.7.1
4
10
 
5
11
  Bugfix:
@@ -721,6 +721,7 @@ module Flexirest
721
721
  elsif is_json_response?
722
722
  begin
723
723
  body = @response.body.blank? ? {} : MultiJson.load(@response.body)
724
+ body = {} if body.nil?
724
725
  rescue MultiJson::ParseError
725
726
  raise ResponseParseException.new(status:@response.status, body:@response.body, headers:@response.headers)
726
727
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  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.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler