danielsdeleo-moqueue 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/moqueue/mock_queue.rb +1 -1
- data/lib/moqueue/overloads.rb +7 -1
- data/moqueue.gemspec +2 -2
- data/spec/unit/mock_broker_spec.rb +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/moqueue/mock_queue.rb
CHANGED
data/lib/moqueue/overloads.rb
CHANGED
@@ -15,8 +15,12 @@ class MQ
|
|
15
15
|
|
16
16
|
def initialize(*args)
|
17
17
|
end
|
18
|
+
|
19
|
+
def fanout(name, opts = {})
|
20
|
+
Moqueue::MockExchange.new(opts.merge(:fanout => name))
|
21
|
+
end
|
18
22
|
|
19
|
-
def queue(name)
|
23
|
+
def queue(name, opts = {})
|
20
24
|
Moqueue::MockQueue.new(name)
|
21
25
|
end
|
22
26
|
|
@@ -43,4 +47,6 @@ module AMQP
|
|
43
47
|
@closing = false
|
44
48
|
end
|
45
49
|
|
50
|
+
def self.connect(*args)
|
51
|
+
end
|
46
52
|
end
|
data/moqueue.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{moqueue}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Daniel DeLeo"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-24}
|
10
10
|
s.description = %q{Mocktacular Companion to AMQP Library. Happy TATFTing!}
|
11
11
|
s.email = %q{dan@kallistec.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc"]
|
@@ -16,7 +16,7 @@ describe MockBroker do
|
|
16
16
|
it "should reset itself" do
|
17
17
|
@broker.register_queue(MockQueue.new("throwaway"))
|
18
18
|
@broker.reset!
|
19
|
-
@broker.registered_queues.
|
19
|
+
@broker.registered_queues.size.should == 0
|
20
20
|
end
|
21
21
|
|
22
22
|
it "should keep a list of topic exchanges" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danielsdeleo-moqueue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel DeLeo
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-24 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|