amq-protocol 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.gitmodules +3 -0
- data/.rspec +3 -0
- data/CHANGELOG +3 -0
- data/LICENSE +20 -0
- data/README.textile +32 -0
- data/TODO.todo +3 -0
- data/amq-protocol.gemspec +34 -0
- data/amq-protocol.pre.gemspec +6 -0
- data/amqp_0.9.1_changes.json +1 -0
- data/benchmark.rb +24 -0
- data/codegen.py +121 -0
- data/codegen_helpers.py +113 -0
- data/examples/00_manual_test.rb +60 -0
- data/examples/01_basics.rb +14 -0
- data/examples/02_eventmachine.rb +4 -0
- data/irb.rb +9 -0
- data/lib/amq/protocol.rb +1473 -0
- data/lib/amq/protocol/frame.rb +97 -0
- data/lib/amq/protocol/table.rb +94 -0
- data/post-processing.rb +24 -0
- data/protocol.rb.pytemplate +253 -0
- data/spec/amq/protocol/frame_spec.rb +82 -0
- data/spec/amq/protocol/table_spec.rb +46 -0
- data/spec/amq/protocol_spec.rb +888 -0
- data/spec/spec_helper.rb +8 -0
- data/tasks.rb +23 -0
- metadata +94 -0
data/spec/spec_helper.rb
ADDED
data/tasks.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env nake
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
Task.new(:generate) do |task|
|
5
|
+
task.description = "Generate lib/amq/protocol.rb"
|
6
|
+
task.define do |opts, spec = nil|
|
7
|
+
if spec.nil?
|
8
|
+
spec = "vendor/rabbitmq-codegen/amqp-rabbitmq-0.9.1.json"
|
9
|
+
unless File.exist?(spec)
|
10
|
+
sh "git submodule init"
|
11
|
+
sh "git submodule update"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
output = "lib/amq/protocol.rb"
|
15
|
+
sh "./codegen.py spec #{spec} #{output}"
|
16
|
+
if File.file?(output)
|
17
|
+
sh "./post-processing.rb #{output}"
|
18
|
+
sh "ruby -c #{output}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
Task.tasks.default = Task[:generate] # FIXME: it doesn't work now
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: amq-protocol
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- pre
|
10
|
+
version: 0.0.1.pre
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Jakub Stastny
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain:
|
17
|
+
date: 2010-12-15 00:00:00 +00:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: This is an AMQP encoder & decoder for AMQP 0.9.1. It isn't an AMQP client, just the parser, so if you want to write your own AMQP client without digging into the protocol, this gem can help you with that.
|
22
|
+
email: stastny@101ideas.cz
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files: []
|
28
|
+
|
29
|
+
files:
|
30
|
+
- .gitignore
|
31
|
+
- .gitmodules
|
32
|
+
- .rspec
|
33
|
+
- CHANGELOG
|
34
|
+
- LICENSE
|
35
|
+
- README.textile
|
36
|
+
- TODO.todo
|
37
|
+
- amq-protocol.gemspec
|
38
|
+
- amq-protocol.pre.gemspec
|
39
|
+
- amqp_0.9.1_changes.json
|
40
|
+
- benchmark.rb
|
41
|
+
- codegen.py
|
42
|
+
- codegen_helpers.py
|
43
|
+
- examples/00_manual_test.rb
|
44
|
+
- examples/01_basics.rb
|
45
|
+
- examples/02_eventmachine.rb
|
46
|
+
- irb.rb
|
47
|
+
- lib/amq/protocol.rb
|
48
|
+
- lib/amq/protocol/frame.rb
|
49
|
+
- lib/amq/protocol/table.rb
|
50
|
+
- post-processing.rb
|
51
|
+
- protocol.rb.pytemplate
|
52
|
+
- spec/amq/protocol/frame_spec.rb
|
53
|
+
- spec/amq/protocol/table_spec.rb
|
54
|
+
- spec/amq/protocol_spec.rb
|
55
|
+
- spec/spec_helper.rb
|
56
|
+
- tasks.rb
|
57
|
+
has_rdoc: true
|
58
|
+
homepage: http://github.com/botanicus/amq-protocol
|
59
|
+
licenses: []
|
60
|
+
|
61
|
+
post_install_message: "[\e[32mVersion 0.0.1\e[0m] [FEATURE] Basic code generation.\n\
|
62
|
+
[\e[32mVersion 0.0.1\e[0m] [FEATURE] Generate only methods which are actually required by the client.\n"
|
63
|
+
rdoc_options: []
|
64
|
+
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ~>
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 1
|
74
|
+
- 9
|
75
|
+
version: "1.9"
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 1
|
83
|
+
- 3
|
84
|
+
- 1
|
85
|
+
version: 1.3.1
|
86
|
+
requirements: []
|
87
|
+
|
88
|
+
rubyforge_project: amq-protocol
|
89
|
+
rubygems_version: 1.3.7
|
90
|
+
signing_key:
|
91
|
+
specification_version: 3
|
92
|
+
summary: AMQP 0.9.1 encoder & decoder.
|
93
|
+
test_files: []
|
94
|
+
|