jackrabbit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -1
- data/jackrabbit.gemspec +1 -1
- data/lib/jackrabbit/client.rb +5 -1
- data/lib/jackrabbit/version.rb +1 -1
- data/spec/lib/jackrabbit/client_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af16467e4e0beac8a445c4590f42cdde22811229
|
4
|
+
data.tar.gz: b00274674333c679f7a4c1c7d724bef00a4ba2fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e01b840bc8484d35e284a3290fccbb3cc73b2d12df6f381130400ca98ffb57d60a6e277be61956a21b321fac8da0e6afcd3552666e10485388784d6f0e84f6db
|
7
|
+
data.tar.gz: e982cb7885356927816f8fd18bf0c1391dbd0e463d1097f3a3880daa9b1ffa3044b158c4782cc283d67c96252dd1f15e5063913251e7b7d60b4a412078e72f6f
|
data/.rspec
CHANGED
data/jackrabbit.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["robert@creativequeries.com"]
|
11
11
|
spec.summary = %q{Work with RabbitMQ in a more sane way}
|
12
12
|
spec.description = %q{Jackrabbit simplifies doing very common tasks with RabbitMQ}
|
13
|
-
spec.homepage = "http://github.com/bobbytables/jackrabbit
|
13
|
+
spec.homepage = "http://github.com/bobbytables/jackrabbit"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/jackrabbit/client.rb
CHANGED
@@ -28,7 +28,7 @@ module Jackrabbit
|
|
28
28
|
def bonded_queue(name, options = {}, &block)
|
29
29
|
queue_opts, binding_opts, sub_options = split_options(options)
|
30
30
|
|
31
|
-
queue =
|
31
|
+
queue = self.queue(name, queue_opts)
|
32
32
|
receiver = MessageReceiver.new(channel, &block)
|
33
33
|
|
34
34
|
queue.bind(exchange, binding_opts)
|
@@ -38,6 +38,10 @@ module Jackrabbit
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
def queue(name, options)
|
42
|
+
channel.queue(name, options)
|
43
|
+
end
|
44
|
+
|
41
45
|
private
|
42
46
|
|
43
47
|
def split_options(options)
|
data/lib/jackrabbit/version.rb
CHANGED
@@ -61,6 +61,14 @@ describe Jackrabbit::Client do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe '#queue' do
|
65
|
+
it 'returns a queue from the channel with the options passed' do
|
66
|
+
queue = client.queue('name', { hello: 'world' })
|
67
|
+
expect(queue.name).to eq('name')
|
68
|
+
expect(queue.options).to eq(hello: 'world')
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
64
72
|
describe '#bonded_queue' do
|
65
73
|
def test_queues
|
66
74
|
client.channel.test_queues
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackrabbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Ross
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- spec/lib/jackrabbit/message_spec.rb
|
96
96
|
- spec/lib/jackrabbit_spec.rb
|
97
97
|
- spec/spec_helper.rb
|
98
|
-
homepage: http://github.com/bobbytables/jackrabbit
|
98
|
+
homepage: http://github.com/bobbytables/jackrabbit
|
99
99
|
licenses:
|
100
100
|
- MIT
|
101
101
|
metadata: {}
|