summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-07-26 19:33:10 +0000
committerRafael H. Schloming <rhs@apache.org>2007-07-26 19:33:10 +0000
commit75131bc2cc6147efb7cc804d5009f38630ba76a1 (patch)
tree7277abdf096e35b3c76f6611fee08ac943922b25 /ruby
parent07052302fc032cafb0df3365f98fb97723a3f8b0 (diff)
downloadqpid-python-75131bc2cc6147efb7cc804d5009f38630ba76a1.tar.gz
added missing message ack and removed old script
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@559949 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby')
-rw-r--r--ruby/diff.rb60
-rw-r--r--ruby/tests/basic.rb1
2 files changed, 1 insertions, 60 deletions
diff --git a/ruby/diff.rb b/ruby/diff.rb
deleted file mode 100644
index 86d2593048..0000000000
--- a/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/ruby/tests/basic.rb b/ruby/tests/basic.rb
index e9bbcedddb..0018050fe2 100644
--- a/ruby/tests/basic.rb
+++ b/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