amq-protocol 0.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ # encoding: binary
2
+
3
+ require "rspec"
4
+ require_relative "../lib/amq/protocol.rb"
5
+
6
+ RSpec.configure do |config|
7
+ config.include AMQ::Protocol
8
+ end
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
+