Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename AMQP::Protocol::Class#parent to #section for better rails compat.

  • Loading branch information...
commit 4d215f40747bb884e67aada45a33363ae1e62ec1 1 parent e4e6598
@tmm1 authored
View
2  amqp.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'amqp'
- s.version = '0.6.3'
+ s.version = '0.6.4'
s.date = '2009-01-09'
s.summary = 'AMQP client implementation in Ruby/EventMachine'
s.email = "amqp@tmm1.net"
View
2  lib/amqp/protocol.rb
@@ -32,7 +32,7 @@ def arguments
def to_binary
buf = Buffer.new
- buf.write :short, self.class.parent.id
+ buf.write :short, self.class.section.id
buf.write :short, self.class.id
bits = []
View
12 lib/amqp/spec.rb
@@ -1,6 +1,6 @@
#:stopdoc:
-# this file was autogenerated on Sat Jan 03 14:05:57 -0600 2009
+# this file was autogenerated on Thu Jul 09 15:17:33 -0700 2009
# using amqp-0.8.json (mtime: Sat Jan 03 08:58:13 -0600 2009)
#
# DO NOT EDIT! (edit protocol/codegen.rb instead, and run `rake codegen`)
@@ -96,9 +96,9 @@ def #{f} name
def arguments() @arguments ||= [] end
- def parent() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
- def id() self::ID end
- def name() self::NAME end
+ def section() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
+ def id() self::ID end
+ def name() self::NAME end
end
def == b
@@ -117,8 +117,8 @@ def self.Method(id, name)
def self.inherited klass
klass.const_set(:ID, #{id})
klass.const_set(:NAME, :#{name.to_s})
- klass.parent.methods[#{id}] = klass
- klass.parent.methods[klass::NAME] = klass
+ klass.section.methods[#{id}] = klass
+ klass.section.methods[klass::NAME] = klass
end
]
end
View
10 protocol/codegen.rb
@@ -90,9 +90,9 @@ def #{f} name
def arguments() @arguments ||= [] end
- def parent() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
- def id() self::ID end
- def name() self::NAME end
+ def section() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
+ def id() self::ID end
+ def name() self::NAME end
end
def == b
@@ -111,8 +111,8 @@ def self.Method(id, name)
def self.inherited klass
klass.const_set(:ID, #{id})
klass.const_set(:NAME, :#{name.to_s})
- klass.parent.methods[#{id}] = klass
- klass.parent.methods[klass::NAME] = klass
+ klass.section.methods[#{id}] = klass
+ klass.section.methods[klass::NAME] = klass
end
]
end
Please sign in to comment.
Something went wrong with that request. Please try again.