diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2007-07-26 19:33:10 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2007-07-26 19:33:10 +0000 |
| commit | 80113df9a5ca52cb5f3f94764766c37eadc6a9e7 (patch) | |
| tree | d0b2952739daf4f76ca5e91b4b8025b145087162 /qpid/ruby | |
| parent | a63b4b46f0244055e6031d33cc4003a369cf0010 (diff) | |
| download | qpid-python-80113df9a5ca52cb5f3f94764766c37eadc6a9e7.tar.gz | |
added missing message ack and removed old script
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@559949 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/ruby')
| -rw-r--r-- | qpid/ruby/diff.rb | 60 | ||||
| -rw-r--r-- | qpid/ruby/tests/basic.rb | 1 |
2 files changed, 1 insertions, 60 deletions
diff --git a/qpid/ruby/diff.rb b/qpid/ruby/diff.rb deleted file mode 100644 index 86d2593048..0000000000 --- a/qpid/ruby/diff.rb +++ /dev/null @@ -1,60 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -require "qpid/spec" - -spec = Spec.load(File.new($*[0])) - -class Symbol - def <=>(sym) - to_s <=> sym.to_s - end -end - -def diff(classes) - sets = classes.map {|c| yield(c).to_set} - common = sets[0] - sets[1..-1].each {|s| - common = common & s - } - - sep = "\n " - - puts "Common:\n #{common.to_a.sort.join(sep)}" - classes.zip(sets).each {|c, s| - specific = (s - common).to_a.sort - puts "\n#{c.name}:\n #{specific.join(sep)}" - } -end - -classes = $*[1..-1].map {|c| - spec.classes[c] -} - -diff(classes) {|c| - result = [] - c.methods.each {|m| m.fields.each {|f| result << :"#{m.name}.#{f.name}"}} - result -} - -puts - -diff(classes) {|c| - c.fields.map {|f| f.name} -} diff --git a/qpid/ruby/tests/basic.rb b/qpid/ruby/tests/basic.rb index e9bbcedddb..0018050fe2 100644 --- a/qpid/ruby/tests/basic.rb +++ b/qpid/ruby/tests/basic.rb @@ -49,6 +49,7 @@ class Basic < Test::Unit::TestCase assert content.headers == msg.content.headers assert content.body == msg.content.body assert content.children == msg.content.children + ch.basic_ack(msg.delivery_tag) msg = ch.channel_close() assert msg.method.qname == :channel_close_ok end |
