tmm1-amqp 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/amqp.gemspec +1 -1
- data/lib/amqp/protocol.rb +1 -1
- data/lib/amqp/spec.rb +6 -6
- data/protocol/codegen.rb +5 -5
- metadata +1 -1
data/amqp.gemspec
CHANGED
data/lib/amqp/protocol.rb
CHANGED
data/lib/amqp/spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#:stopdoc:
|
3
|
-
# this file was autogenerated on
|
3
|
+
# this file was autogenerated on Thu Jul 09 15:17:33 -0700 2009
|
4
4
|
# using amqp-0.8.json (mtime: Sat Jan 03 08:58:13 -0600 2009)
|
5
5
|
#
|
6
6
|
# DO NOT EDIT! (edit protocol/codegen.rb instead, and run `rake codegen`)
|
@@ -96,9 +96,9 @@ module AMQP
|
|
96
96
|
|
97
97
|
def arguments() @arguments ||= [] end
|
98
98
|
|
99
|
-
def
|
100
|
-
def id()
|
101
|
-
def name()
|
99
|
+
def section() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
|
100
|
+
def id() self::ID end
|
101
|
+
def name() self::NAME end
|
102
102
|
end
|
103
103
|
|
104
104
|
def == b
|
@@ -117,8 +117,8 @@ module AMQP
|
|
117
117
|
def self.inherited klass
|
118
118
|
klass.const_set(:ID, #{id})
|
119
119
|
klass.const_set(:NAME, :#{name.to_s})
|
120
|
-
klass.
|
121
|
-
klass.
|
120
|
+
klass.section.methods[#{id}] = klass
|
121
|
+
klass.section.methods[klass::NAME] = klass
|
122
122
|
end
|
123
123
|
]
|
124
124
|
end
|
data/protocol/codegen.rb
CHANGED
@@ -90,9 +90,9 @@ puts ERB.new(%q[
|
|
90
90
|
|
91
91
|
def arguments() @arguments ||= [] end
|
92
92
|
|
93
|
-
def
|
94
|
-
def id()
|
95
|
-
def name()
|
93
|
+
def section() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
|
94
|
+
def id() self::ID end
|
95
|
+
def name() self::NAME end
|
96
96
|
end
|
97
97
|
|
98
98
|
def == b
|
@@ -111,8 +111,8 @@ puts ERB.new(%q[
|
|
111
111
|
def self.inherited klass
|
112
112
|
klass.const_set(:ID, #{id})
|
113
113
|
klass.const_set(:NAME, :#{name.to_s})
|
114
|
-
klass.
|
115
|
-
klass.
|
114
|
+
klass.section.methods[#{id}] = klass
|
115
|
+
klass.section.methods[klass::NAME] = klass
|
116
116
|
end
|
117
117
|
]
|
118
118
|
end
|