larrytheliquid-moqueue 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -4
- data/VERSION.yml +1 -1
- data/lib/moqueue/mock_queue.rb +4 -0
- data/moqueue.gemspec +2 -2
- data/spec/unit/mock_queue_spec.rb +5 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -44,10 +44,8 @@ What's not working:
|
|
44
44
|
|
45
45
|
There are some things that Moqueue may never be able to do. As one prominent example, for queues that are configured to expect acknowledgements (the <tt>:ack=>true</tt> option), the behavior on shutdown is not emulated correctly.
|
46
46
|
|
47
|
-
==
|
48
|
-
|
49
|
-
* Support for RPC exchanges
|
50
|
-
* Make it pretty on the inside.
|
47
|
+
== Hacking
|
48
|
+
Moqueue is at a stage where it "works for me." That said, there may be methods or method signatures that aren't correct/ aren't supported. If this happens to you, fork me and send a pull request when you're done. Patches and feedback welcome.
|
51
49
|
|
52
50
|
== Moar
|
53
51
|
I wrote an introductory post on my blog, it's probably the best source of high-level discussion right now. Visit: http://kallistec.com/2009/06/21/introducing-moqueue/
|
data/VERSION.yml
CHANGED
data/lib/moqueue/mock_queue.rb
CHANGED
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.3"
|
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-29}
|
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"]
|
@@ -87,6 +87,10 @@ describe MockQueue do
|
|
87
87
|
pending ("should really remove the association with exchange")
|
88
88
|
@queue.should respond_to(:unsubscribe)
|
89
89
|
end
|
90
|
+
|
91
|
+
it "should ignore #prefetch but at least raise an error" do
|
92
|
+
lambda { @queue.prefetch(1337) }.should_not raise_error
|
93
|
+
end
|
90
94
|
|
91
95
|
it "should raise an error on double subscribe" do
|
92
96
|
@queue.subscribe { |msg| "once" }
|
@@ -138,4 +142,4 @@ describe MockQueue do
|
|
138
142
|
queue.received_message?("I'm feelin this").should be_true
|
139
143
|
end
|
140
144
|
|
141
|
-
end
|
145
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: larrytheliquid-moqueue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
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-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|