summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2006-09-29 14:54:37 +0000
committerRafael H. Schloming <rhs@apache.org>2006-09-29 14:54:37 +0000
commitce57f0694a13529ab6feb8d10a7f4c8935368bb0 (patch)
tree87dcebe88c2bfc5902804bebc1405d019ffe29f9
parent3fedfb514c3d2ce6b9cb02a30465b6bfd3a37cf2 (diff)
downloadqpid-python-ce57f0694a13529ab6feb8d10a7f4c8935368bb0.tar.gz
moved ruby code into a qpid package
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@451317 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--ruby/diff.rb2
-rw-r--r--ruby/qpid/client.rb (renamed from ruby/client.rb)4
-rw-r--r--ruby/qpid/codec.rb (renamed from ruby/codec.rb)0
-rw-r--r--ruby/qpid/connection.rb (renamed from ruby/connection.rb)2
-rw-r--r--ruby/qpid/fields.rb (renamed from ruby/fields.rb)0
-rw-r--r--ruby/qpid/peer.rb (renamed from ruby/peer.rb)6
-rw-r--r--ruby/qpid/queue.rb (renamed from ruby/queue.rb)0
-rw-r--r--ruby/qpid/spec.rb (renamed from ruby/spec.rb)7
-rw-r--r--ruby/qpid/traverse.rb (renamed from ruby/traverse.rb)0
-rw-r--r--ruby/test.rb12
10 files changed, 20 insertions, 13 deletions
diff --git a/ruby/diff.rb b/ruby/diff.rb
index 38f96f827d..12a4baac36 100644
--- a/ruby/diff.rb
+++ b/ruby/diff.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require "spec"
+require "qpid/spec"
spec = Spec.load(File.new($*[0]))
diff --git a/ruby/client.rb b/ruby/qpid/client.rb
index f8535dca6f..6aa91855ce 100644
--- a/ruby/client.rb
+++ b/ruby/qpid/client.rb
@@ -14,9 +14,9 @@
# limitations under the License.
#
-require "peer"
require "thread"
-require "queue"
+require "qpid/peer"
+require "qpid/queue"
module Qpid
diff --git a/ruby/codec.rb b/ruby/qpid/codec.rb
index e5f3c846fc..e5f3c846fc 100644
--- a/ruby/codec.rb
+++ b/ruby/qpid/codec.rb
diff --git a/ruby/connection.rb b/ruby/qpid/connection.rb
index 4c5e54cb32..da2b0e1de7 100644
--- a/ruby/connection.rb
+++ b/ruby/qpid/connection.rb
@@ -15,7 +15,7 @@
#
require "socket"
-require "codec"
+require "qpid/codec"
include Codec
diff --git a/ruby/fields.rb b/ruby/qpid/fields.rb
index c46ba645ee..c46ba645ee 100644
--- a/ruby/fields.rb
+++ b/ruby/qpid/fields.rb
diff --git a/ruby/peer.rb b/ruby/qpid/peer.rb
index c1bd49f125..3dc19dd8f9 100644
--- a/ruby/peer.rb
+++ b/ruby/qpid/peer.rb
@@ -15,9 +15,9 @@
#
require "thread"
-require "queue"
-require "connection"
-require "fields"
+require "qpid/queue"
+require "qpid/connection"
+require "qpid/fields"
module Qpid
diff --git a/ruby/queue.rb b/ruby/qpid/queue.rb
index 037ecd25b7..037ecd25b7 100644
--- a/ruby/queue.rb
+++ b/ruby/qpid/queue.rb
diff --git a/ruby/spec.rb b/ruby/qpid/spec.rb
index ad04a4a91f..fda2fa6600 100644
--- a/ruby/spec.rb
+++ b/ruby/qpid/spec.rb
@@ -14,11 +14,10 @@
# limitations under the License.
#
-require "rexml/document"
require "set"
-require "fields"
-require "traverse"
-require "delegate"
+require "rexml/document"
+require "qpid/fields"
+require "qpid/traverse"
module Spec
diff --git a/ruby/traverse.rb b/ruby/qpid/traverse.rb
index 85551a55d5..85551a55d5 100644
--- a/ruby/traverse.rb
+++ b/ruby/qpid/traverse.rb
diff --git a/ruby/test.rb b/ruby/test.rb
index d247e333e6..21b56270eb 100644
--- a/ruby/test.rb
+++ b/ruby/test.rb
@@ -14,8 +14,16 @@
# limitations under the License.
#
-require "client"
-require "spec"
+require "qpid/client"
+require "qpid/spec"
+
+def die(msg)
+ puts msg
+ exit(1)
+end
+
+specfile = $*[0]
+die("usage: test.rb <spec file>") if specfile.nil?
c = Qpid::Client.new("0.0.0.0", 5672, Spec.load($*[0]))
c.start({"LOGIN" => "guest", "PASSWORD" => "guest"})