carrot 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ require File.dirname(__FILE__) + '/test_helper'
2
+
3
+ class CarrotTest < Test::Unit::TestCase
4
+
5
+ test "simple server connection" do
6
+ c = Carrot.new
7
+ end
8
+
9
+ test "large messages" do
10
+ msg = 'a' * 1024 * 1024
11
+ q = Carrot.queue('_carrot_test')
12
+ q.publish(msg)
13
+ assert_equal msg, q.pop
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ #require 'shoulda'
4
+ require 'mocha'
5
+ require File.dirname(__FILE__) + '/../lib/carrot'
6
+
7
+ class << Test::Unit::TestCase
8
+ def test(name, &block)
9
+ test_name = "test_#{name.gsub(/[\s\W]/,'_')}"
10
+ raise ArgumentError, "#{test_name} is already defined" if self.instance_methods.include? test_name
11
+ define_method test_name, &block
12
+ end
13
+
14
+ def xtest(name, &block)
15
+ # no-op, an empty test method is defined to prevent "no tests in testcase" errors when all tests are disabled
16
+ define_method(:test_disabled) { assert true }
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: carrot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ platform: ruby
6
+ authors:
7
+ - Amos Elliston
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-19 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A synchronous version of the ruby amqp client
17
+ email: amos@geni.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.markdown
25
+ files:
26
+ - .gitignore
27
+ - LICENSE
28
+ - README.markdown
29
+ - Rakefile
30
+ - VERSION.yml
31
+ - carrot.gemspec
32
+ - lib/amqp/buffer.rb
33
+ - lib/amqp/exchange.rb
34
+ - lib/amqp/frame.rb
35
+ - lib/amqp/header.rb
36
+ - lib/amqp/protocol.rb
37
+ - lib/amqp/queue.rb
38
+ - lib/amqp/server.rb
39
+ - lib/amqp/spec.rb
40
+ - lib/carrot.rb
41
+ - lib/examples/simple_pop.rb
42
+ - protocol/amqp-0.8.json
43
+ - protocol/amqp-0.8.xml
44
+ - protocol/codegen.rb
45
+ - protocol/doc.txt
46
+ - test/carrot_test.rb
47
+ - test/test_helper.rb
48
+ has_rdoc: true
49
+ homepage: http://github.com/famoseagle/carrot
50
+ licenses: []
51
+
52
+ post_install_message:
53
+ rdoc_options:
54
+ - --charset=UTF-8
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ version:
69
+ requirements: []
70
+
71
+ rubyforge_project:
72
+ rubygems_version: 1.3.5
73
+ signing_key:
74
+ specification_version: 3
75
+ summary: A synchronous version of the ruby amqp client
76
+ test_files:
77
+ - test/carrot_test.rb
78
+ - test/test_helper.rb