rabbitmq_http_api_client 1.9.1 → 1.10.0

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
- SHA1:
3
- metadata.gz: 3a4aaf38eb884212e4479dacfac1a76c51c572ef
4
- data.tar.gz: 494214b32974d9daacb4428b0a0392a9b3dad3be
2
+ SHA256:
3
+ metadata.gz: bcb0d38735668c5d24d9453c2ccacb36a1489b67c37496f8e51edd482cd80c35
4
+ data.tar.gz: fa2c2e65299bfc15c18ca63e3e1967e3d15482f46c772c518d35d84d8e688b53
5
5
  SHA512:
6
- metadata.gz: 8b5f54d4e59747460bacef94d8b9aee186a52265a183b3977f10df7f1d900119ba3ad1530db7d0309db1b92fc8d7623bdd327a8914272ec582fd3115a9a3ac4e
7
- data.tar.gz: a7db77b3296d3ac2490baa512669874eb968829477f5c0f14e170fe4b1633c045c1960dc0a7a559893494b9212532df4a3360a2ab677ea09e1864631ab22a1fe
6
+ metadata.gz: 6ad71e4808cc10fc7425774085c2fc145976a312bedc3fe1ffb0a7eef9bfc154b669db2b709c7ac043895c6bb32557502c556fd862427c82ef3e43a31422ccd9
7
+ data.tar.gz: b04199becc89fbdf33623103394999a2724610a9d2808569453fdab4e206fbd4b24b9716b6884aa1de3b18a01516865014e1e823902f8fe3fd98b3cec46b2057
@@ -1,6 +1,18 @@
1
- ## Changes Between 1.9.0 and 1.10.0 (unreleased)
1
+ ## Changes Between 1.9.0 and 1.10.0 (Nov 27th, 2018)
2
2
 
3
- No changes yet.
3
+ ### Improved Resource Deserialisation
4
+
5
+ Bodies of responses with content length of 0 will no longer
6
+ be deserialised.
7
+
8
+ This improves compatibility with future versions of RabbitMQ
9
+ that will use Cowboy 2.7.0 or later, which doesn't include
10
+ the content-type header for blank responses (e.g. PUTs).
11
+
12
+
13
+ ## Changes Between 1.9.0 and 1.9.1 (Oct 19th, 2017)
14
+
15
+ Spec files and development/CI scripts are no longer included into the gem.
4
16
 
5
17
 
6
18
  ## Changes Between 1.8.0 and 1.9.0 (July 30th, 2017)
data/README.md CHANGED
@@ -32,7 +32,7 @@ All versions require [RabbitMQ Management UI plugin](http://www.rabbitmq.com/man
32
32
  Add this line to your application's Gemfile:
33
33
 
34
34
  ``` ruby
35
- gem 'rabbitmq_http_api_client', '>= 1.9.0'
35
+ gem 'rabbitmq_http_api_client', '>= 1.9.1'
36
36
  ```
37
37
 
38
38
  And then execute:
@@ -422,7 +422,17 @@ module RabbitMQ
422
422
  end
423
423
 
424
424
  def decode_resource(response)
425
- Hashie::Mash.new(response.body)
425
+ case response.headers["content-length"]
426
+ when nil then Hashie::Mash.new
427
+ when 0 then Hashie::Mash.new
428
+ when "0" then Hashie::Mash.new
429
+ else
430
+ if response.body.empty?
431
+ Hashie::Mash.new
432
+ else
433
+ Hashie::Mash.new(response.body)
434
+ end
435
+ end
426
436
  end
427
437
 
428
438
  def decode_resource_collection(response)
@@ -1,7 +1,7 @@
1
1
  module RabbitMQ
2
2
  module HTTP
3
3
  class Client
4
- VERSION = "1.9.1"
4
+ VERSION = "1.10.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq_http_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klishin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.6.11
116
+ rubygems_version: 2.7.7
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: RabbitMQ HTTP API client for Ruby