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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb590a46a8d61eff7c99222aa45c28a8de948b4b
4
- data.tar.gz: 931c3bfb9cd1226d9e1238a1726c61f542f3acca
3
+ metadata.gz: af16467e4e0beac8a445c4590f42cdde22811229
4
+ data.tar.gz: b00274674333c679f7a4c1c7d724bef00a4ba2fb
5
5
  SHA512:
6
- metadata.gz: 544a4435206ab23db02b379eb9147fe5bae330c07cd5d06887ae35a1ea6d42fc601258c2f3404ae10c215646adfe294280da558d12260b1fb74cef31d97f776b
7
- data.tar.gz: 735ddd4f5271293742248425cf5aab872e864f2289fe73556e4c578dde07278ea216d602d8622a2dd55839c01056905c3d3a1e2fbad32a8a8a06680186843865
6
+ metadata.gz: e01b840bc8484d35e284a3290fccbb3cc73b2d12df6f381130400ca98ffb57d60a6e277be61956a21b321fac8da0e6afcd3552666e10485388784d6f0e84f6db
7
+ data.tar.gz: e982cb7885356927816f8fd18bf0c1391dbd0e463d1097f3a3880daa9b1ffa3044b158c4782cc283d67c96252dd1f15e5063913251e7b7d60b4a412078e72f6f
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --color
2
- --warnings
3
2
  --require spec_helper
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")
@@ -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 = channel.queue(name, queue_opts)
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)
@@ -1,3 +1,3 @@
1
1
  module Jackrabbit
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.2
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-05-26 00:00:00.000000000 Z
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: {}