rabbitmq_http_api_client 1.1.0 → 1.2.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
2
  SHA1:
3
- metadata.gz: 596f116b77ab889cb05cdd85783b4215d1d876db
4
- data.tar.gz: 3a480dc5177104fc06aacc23ac769ce6a5a414ee
3
+ metadata.gz: c4ffa47b3b488bc8e9556c93386b280afca53ffa
4
+ data.tar.gz: 5d0b60e903f0f000873870484b41a047c1c667d0
5
5
  SHA512:
6
- metadata.gz: 1599452a4274adc34b01b08a7f2d0fdfd714d71b61cc2cc876b56ad237ac15bdea3019e535783c488572938d920dfa2b42df55572ff9fbc678dec9c3dcef85df
7
- data.tar.gz: 1b1a9c774f0f3248818d802f6946370a45bba4edc4c99851db116a7bcb44106eff42431722e1c5f94077f7077b1bb564ce127e361a654014ebb3cc684f207ec2
6
+ metadata.gz: 4a70eea2c50ad7ab59c75a133f54d579645edf206a80c7a5f490761967b0170492fad4f773eed01a84eaefd21dee498bd9752e3f24b8b07ce6d49dd9c61e44ce
7
+ data.tar.gz: 1e4d3c5de842c56ae866354f9c1b43167e605722efb9298c6d1848fdb5e2a0354e0f531c7152df4638f132f9ce9cb98ad78af329f8d1c39fdfa4d3c7bc90ad2c
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  group :development, :test do
4
4
  gem "rspec"
5
5
  gem "json", :platform => :ruby_18
6
- gem "bunny", ">= 1.1.0"
6
+ gem "bunny", ">= 1.3.1"
7
7
 
8
8
  gem "rantly"
9
9
  end
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")
@@ -1,7 +1,7 @@
1
1
  module RabbitMQ
2
2
  module HTTP
3
3
  class Client
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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({ routing_key: routing_key, arguments: arguments })
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 policymaker management"
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.1.0
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-04-20 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie