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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
@@ -54,7 +54,7 @@ module Moqueue
54
54
  acked_messages.include?(message_content)
55
55
  end
56
56
 
57
- def publish(message)
57
+ def publish(message, opts = {})
58
58
  if message_handler_callback
59
59
  real_publish(message)
60
60
  else
@@ -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.0"
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-09}
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.count.should == 0
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.0
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-09 00:00:00 -07:00
12
+ date: 2009-07-24 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15