queueing_rabbit 0.6.1 → 0.6.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fb20700f6c70a19b6a41999cdd06577adc40c23
|
4
|
+
data.tar.gz: 58d3c62391c6eb351d54d1c19fcc92154d357779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a19924daa08acd34a367f594ec439b5117306c21f167aa023248ea8c00f00bc8f85bc12d5f4c1cc05ec85689f40a5c2da76818812a164b213469816671cea0d
|
7
|
+
data.tar.gz: abea06f4c63a0013a7576b0b0b5cafe758956302c2dd2bbb3fbb938162f443d61e8dca4240e3595b2f811b7d655ecd5d3c926f8aa4ec510d7c3896c022bac2ea
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
QueueingRabbit provides a Ruby DSL to interact with RabbitMQ. It is fairly flexible and allows you to integrate with existing infrastructure and naming conventions. It currently offers gems [bunny](https://github.com/ruby-amqp/bunny) and [amqp](https://github.com/ruby-amqp/amqp) as supported back-ends.
|
4
4
|
|
5
|
+
## Disclaimer
|
6
|
+
|
7
|
+
I built this gem at [Wildbit](http://wildbit.com) in 2012. Back then there weren’t any solid generic queueing systems targeting RabbitMQ for Ruby. The gem was open-sourced in early 2013, but I never put any effort into selling it to the community. Even though the gem is working, maintained, and is still used by Wildbit in production, in the long run you should be better with now-existing mainstream alternatives like [hutch](https://github.com/gocardless/hutch) and [sneakers](https://github.com/jondot/sneakers).
|
8
|
+
|
5
9
|
## Example
|
6
10
|
|
7
11
|
The following Ruby program publishes an excerpt of Joseph Brodsky’s poem line by line to a RabbitMQ exchange and prints received messages on the screen.
|
@@ -16,7 +16,7 @@ module QueueingRabbit
|
|
16
16
|
|
17
17
|
def binding_declarations
|
18
18
|
@binding_declarations ||= []
|
19
|
-
@binding_declarations
|
19
|
+
@binding_declarations + [:routing_key => queue_name.to_s]
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -24,4 +24,4 @@ module QueueingRabbit
|
|
24
24
|
|
25
25
|
end
|
26
26
|
|
27
|
-
end
|
27
|
+
end
|
data/queueing_rabbit.gemspec
CHANGED
@@ -18,10 +18,11 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
|
19
19
|
gem.rdoc_options = ["--charset=UTF-8"]
|
20
20
|
|
21
|
-
gem.add_dependency "amqp",
|
21
|
+
gem.add_dependency "amqp", "~> 1.3.0"
|
22
|
+
gem.add_dependency "amq-protocol", "~> 1.9.0"
|
22
23
|
gem.add_dependency "bunny", "~> 1.6.3"
|
23
|
-
gem.add_dependency "rake",
|
24
|
-
gem.add_dependency "json",
|
24
|
+
gem.add_dependency "rake", ">= 0"
|
25
|
+
gem.add_dependency "json", ">= 0"
|
25
26
|
|
26
27
|
gem.description = <<description
|
27
28
|
QueueingRabbit is a Ruby library providing a flexible DSL to interact with a
|
@@ -17,4 +17,10 @@ describe QueueingRabbit::JobExtensions::DirectExchange do
|
|
17
17
|
its(:exchange_options) { should include(:type => :direct) }
|
18
18
|
its(:binding_declarations) { should include(:routing_key => 'test_queue') }
|
19
19
|
|
20
|
-
|
20
|
+
describe '#binding_declarations' do
|
21
|
+
it 'is idempotent' do
|
22
|
+
subject.binding_declarations.length.should eq(1)
|
23
|
+
subject.binding_declarations.length.should eq(1)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queueing_rabbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Chistyakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amqp
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: amq-protocol
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.9.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.9.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bunny
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
188
|
version: '0'
|
175
189
|
requirements: []
|
176
190
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.2.
|
191
|
+
rubygems_version: 2.2.2
|
178
192
|
signing_key:
|
179
193
|
specification_version: 4
|
180
194
|
summary: QueueingRabbit provides a flexible DSL to interact with RabbitMQ
|