Author: tross
Date: Fri Jul 15 16:54:16 2011
New Revision: 1147234
URL: http://svn.apache.org/viewvc?rev=1147234&view=rev
Log:
QPID-3306 - Provides a more Ruby-like set of APIs on top of the bindings
created by swig.
Applied patch from Darryl Pierce
Created the Qpid Ruby libraries.
The libraries provide a more Ruby-esque way of using the Qpid libraries
that are generated via SWIG.
Added:
qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/
qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/
qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid.rb
qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/errors.rb
qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/version.rb
qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/
qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/ts_bindings.rb
Added: qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid.rb?rev=1147234&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid.rb (added)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid.rb Fri Jul 15 16:54:16 2011
@@ -0,0 +1,21 @@
+#
+# 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/errors'
+
Added: qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/errors.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/errors.rb?rev=1147234&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/errors.rb (added)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/errors.rb Fri Jul 15
16:54:16 2011
@@ -0,0 +1,30 @@
+#
+# 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.
+#
+
+module Qpid
+
+ module Messaging
+
+ class KeyError < RuntimeError
+ end
+
+ end
+
+end
+
Added: qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/version.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/version.rb?rev=1147234&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/version.rb (added)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/lib/qpid/version.rb Fri Jul 15
16:54:16 2011
@@ -0,0 +1,31 @@
+#
+# 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.
+#
+
+module Qpid
+
+ module Version
+
+ NUMBERS = [MAJOR = 0,
+ MINOR = 10,
+ BUILD = 0]
+ end
+
+ VERSION = Version::NUMBERS.join('.')
+
+end
Added: qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/ts_bindings.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/ts_bindings.rb?rev=1147234&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/ts_bindings.rb (added)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/test/ts_bindings.rb Fri Jul 15
16:54:16 2011
@@ -0,0 +1,23 @@
+#
+# 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.
+#
+
+$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
+
+require 'test/unit'
+
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]