sa-carrot 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sa-carrot.gemspec ADDED
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{sa-carrot}
8
+ s.version = "0.7.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Amos Elliston"]
12
+ s.date = %q{2009-11-23}
13
+ s.description = %q{A synchronous amqp client}
14
+ s.email = %q{amos@geni.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "carrot.gemspec",
26
+ "lib/amqp/buffer.rb",
27
+ "lib/amqp/exchange.rb",
28
+ "lib/amqp/frame.rb",
29
+ "lib/amqp/header.rb",
30
+ "lib/amqp/protocol.rb",
31
+ "lib/amqp/queue.rb",
32
+ "lib/amqp/server.rb",
33
+ "lib/amqp/spec.rb",
34
+ "lib/carrot.rb",
35
+ "lib/examples/simple_pop.rb",
36
+ "protocol/amqp-0.8.json",
37
+ "protocol/amqp-0.8.xml",
38
+ "protocol/codegen.rb",
39
+ "protocol/doc.txt",
40
+ "test/carrot_test.rb",
41
+ "test/test_helper.rb"
42
+ ]
43
+ s.homepage = %q{http://github.com/sonian/carrot}
44
+ s.rdoc_options = ["--charset=UTF-8"]
45
+ s.require_paths = ["lib"]
46
+ s.rubygems_version = %q{1.3.5}
47
+ s.summary = %q{A synchronous amqp client}
48
+ s.test_files = [
49
+ "test/test_helper.rb",
50
+ "test/carrot_test.rb"
51
+ ]
52
+
53
+ if s.respond_to? :specification_version then
54
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
55
+ s.specification_version = 3
56
+
57
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
58
+ else
59
+ end
60
+ else
61
+ end
62
+ end
63
+
@@ -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: sa-carrot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.1
5
+ platform: ruby
6
+ authors:
7
+ - Amos Elliston
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-23 00:00:00 -02:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A synchronous 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
+ - lib/amqp/buffer.rb
32
+ - lib/amqp/exchange.rb
33
+ - lib/amqp/frame.rb
34
+ - lib/amqp/header.rb
35
+ - lib/amqp/protocol.rb
36
+ - lib/amqp/queue.rb
37
+ - lib/amqp/server.rb
38
+ - lib/amqp/spec.rb
39
+ - lib/carrot.rb
40
+ - lib/examples/simple_pop.rb
41
+ - protocol/amqp-0.8.json
42
+ - protocol/amqp-0.8.xml
43
+ - protocol/codegen.rb
44
+ - protocol/doc.txt
45
+ - sa-carrot.gemspec
46
+ - test/carrot_test.rb
47
+ - test/test_helper.rb
48
+ has_rdoc: true
49
+ homepage: http://github.com/sonian/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 amqp client
76
+ test_files:
77
+ - test/test_helper.rb
78
+ - test/carrot_test.rb