rabbitmq_http_api_client 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/ChangeLog.md +14 -2
- data/README.md +1 -1
- data/lib/rabbitmq/http/client.rb +11 -1
- data/lib/rabbitmq/http/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bcb0d38735668c5d24d9453c2ccacb36a1489b67c37496f8e51edd482cd80c35
|
4
|
+
data.tar.gz: fa2c2e65299bfc15c18ca63e3e1967e3d15482f46c772c518d35d84d8e688b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad71e4808cc10fc7425774085c2fc145976a312bedc3fe1ffb0a7eef9bfc154b669db2b709c7ac043895c6bb32557502c556fd862427c82ef3e43a31422ccd9
|
7
|
+
data.tar.gz: b04199becc89fbdf33623103394999a2724610a9d2808569453fdab4e206fbd4b24b9716b6884aa1de3b18a01516865014e1e823902f8fe3fd98b3cec46b2057
|
data/ChangeLog.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
## Changes Between 1.9.0 and 1.10.0 (
|
1
|
+
## Changes Between 1.9.0 and 1.10.0 (Nov 27th, 2018)
|
2
2
|
|
3
|
-
|
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.
|
35
|
+
gem 'rabbitmq_http_api_client', '>= 1.9.1'
|
36
36
|
```
|
37
37
|
|
38
38
|
And then execute:
|
data/lib/rabbitmq/http/client.rb
CHANGED
@@ -422,7 +422,17 @@ module RabbitMQ
|
|
422
422
|
end
|
423
423
|
|
424
424
|
def decode_resource(response)
|
425
|
-
|
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)
|
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.
|
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:
|
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.
|
116
|
+
rubygems_version: 2.7.7
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: RabbitMQ HTTP API client for Ruby
|