rabbitmq_http_api_client 1.1.0 → 1.2.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 +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/rabbitmq/http/client/version.rb +1 -1
- data/lib/rabbitmq/http/client.rb +1 -1
- data/spec/integration/client_spec.rb +2 -2
- 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: c4ffa47b3b488bc8e9556c93386b280afca53ffa
|
4
|
+
data.tar.gz: 5d0b60e903f0f000873870484b41a047c1c667d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a70eea2c50ad7ab59c75a133f54d579645edf206a80c7a5f490761967b0170492fad4f773eed01a84eaefd21dee498bd9752e3f24b8b07ce6d49dd9c61e44ce
|
7
|
+
data.tar.gz: 1e4d3c5de842c56ae866354f9c1b43167e605722efb9298c6d1848fdb5e2a0354e0f531c7152df4638f132f9ce9cb98ad78af329f8d1c39fdfa4d3c7bc90ad2c
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -37,7 +37,7 @@ All versions require [RabbitMQ Management UI plugin](http://www.rabbitmq.com/man
|
|
37
37
|
|
38
38
|
Add this line to your application's Gemfile:
|
39
39
|
|
40
|
-
gem 'rabbitmq_http_api_client'
|
40
|
+
gem 'rabbitmq_http_api_client', '>= 1.1.0'
|
41
41
|
|
42
42
|
And then execute:
|
43
43
|
|
@@ -306,7 +306,7 @@ puts u.password_hash
|
|
306
306
|
puts u.tags
|
307
307
|
|
308
308
|
# Update information about a user
|
309
|
-
client.update_user("myapp", :tags => "services", :password => "t0ps3krEt")
|
309
|
+
client.update_user("myapp", :tags => "services,policymaker,management", :password => "t0ps3krEt")
|
310
310
|
|
311
311
|
# Delete a user
|
312
312
|
client.delete_user("myapp")
|
data/lib/rabbitmq/http/client.rb
CHANGED
@@ -200,7 +200,7 @@ module RabbitMQ
|
|
200
200
|
def bind_queue(vhost, queue, exchange, routing_key, arguments = [])
|
201
201
|
resp = @connection.post("/api/bindings/#{uri_encode(vhost)}/e/#{uri_encode(exchange)}/q/#{uri_encode(queue)}") do |req|
|
202
202
|
req.headers['Content-Type'] = 'application/json'
|
203
|
-
req.body = MultiJson.dump({
|
203
|
+
req.body = MultiJson.dump({:routing_key => routing_key, :arguments => arguments})
|
204
204
|
end
|
205
205
|
resp.headers['location']
|
206
206
|
end
|
@@ -729,10 +729,10 @@ describe RabbitMQ::HTTP::Client do
|
|
729
729
|
|
730
730
|
describe "PUT /api/users/:name" do
|
731
731
|
it "updates information about a user" do
|
732
|
-
subject.update_user("alt", :tags => "http policymaker management", :password => "alt")
|
732
|
+
subject.update_user("alt", :tags => "http, policymaker, management", :password => "alt")
|
733
733
|
|
734
734
|
u = subject.user_info("alt")
|
735
|
-
u.tags.should == "http
|
735
|
+
u.tags.should == "http,policymaker,management"
|
736
736
|
end
|
737
737
|
end
|
738
738
|
|
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.2.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: 2014-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|