ext/qparser.rb in bunny-0.7.1 vs ext/qparser.rb in bunny-0.7.2

- old
+ new

@@ -215,10 +215,13 @@ # Generate spec.rb spec_rb = File.open(CONFIG[:spec_out], 'w') spec_rb.puts( ERB.new(%q[ + # encoding: utf-8 + + #:stopdoc: # this file was autogenerated on <%= Time.now.to_s %> # using <%= specfile.ljust(16) %> (mtime: <%= File.mtime(specpath) %>) # # DO NOT EDIT! (edit ext/qparser.rb and config.yml instead, and run 'ruby qparser.rb') @@ -255,11 +258,11 @@ end def properties() @properties ||= [] end def id() self::ID end - def name() self::NAME end + def name() self::NAME.to_s end end class Method class << self FIELDS.each do |f| @@ -273,11 +276,11 @@ 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 name() self::NAME.to_s end end def == b self.class.arguments.inject(true) do |eql, (type, name)| eql and __send__("#{name}") == b.__send__("#{name}") @@ -362,9 +365,12 @@ # Generate frame.rb file frame_rb = File.open(CONFIG[:frame_out], 'w') frame_rb.puts( ERB.new(%q[ + # encoding: utf-8 + + #:stopdoc: # this file was autogenerated on <%= Time.now.to_s %> # # DO NOT EDIT! (edit ext/qparser.rb and config.yml instead, and run 'ruby qparser.rb')