Author: rhs
Date: Tue Dec  9 13:44:26 2008
New Revision: 724905

URL: http://svn.apache.org/viewvc?rev=724905&view=rev
Log:
updated release notes, added a readme, and tweaked examples

Added:
    incubator/qpid/trunk/qpid/ruby/README.txt   (with props)
Modified:
    incubator/qpid/trunk/qpid/ruby/RELEASE_NOTES
    incubator/qpid/trunk/qpid/ruby/examples/hello-world.rb
    incubator/qpid/trunk/qpid/ruby/examples/qmf-libvirt.rb

Added: incubator/qpid/trunk/qpid/ruby/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/ruby/README.txt?rev=724905&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/ruby/README.txt (added)
+++ incubator/qpid/trunk/qpid/ruby/README.txt Tue Dec  9 13:44:26 2008
@@ -0,0 +1,22 @@
+= INSTALLATION =
+
+Extract the release archive into a directory of your choice and set
+your RUBYLIB environment variable accordingly:
+
+  tar -xzf qpid-ruby-<version>.tar.gz -C <install-prefix>
+  export RUBYLIB=<install-prefix>/qpid-<version>/ruby/lib
+
+= GETTING STARTED =
+
+The ruby client includes a simple hello-world example that publishes
+and consumes a message:
+
+  cp <install-prefix>/qpid-<version>/ruby/examples/hello-world.rb .
+  ./hello-world.rb
+
+= RUNNING THE TESTS =
+
+The "tests" directory contains a collection of unit tests for the ruby
+client. These can be run with the Rakefile provided:
+
+  ./rake test

Propchange: incubator/qpid/trunk/qpid/ruby/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/qpid/trunk/qpid/ruby/RELEASE_NOTES
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/ruby/RELEASE_NOTES?rev=724905&r1=724904&r2=724905&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/ruby/RELEASE_NOTES (original)
+++ incubator/qpid/trunk/qpid/ruby/RELEASE_NOTES Tue Dec  9 13:44:26 2008
@@ -2,8 +2,7 @@
 ---------------------------------
 
 The Qpid M4 release of the ruby client contains support the for AMQP
-0-10 & 0-8 specifications (as well as support for the non-WIP portion
-of the 0-9 specification). See:
+0-10 & 0-8 specifications. See:
 
 http://jira.amqp.org/confluence/display/AMQP/Download
 
@@ -12,3 +11,5 @@
 
 http://cwiki.apache.org/confluence/display/qpid/Index
 
+The README file provided contains some details on installing and using
+the ruby client that is included with this distribution.

Modified: incubator/qpid/trunk/qpid/ruby/examples/hello-world.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/ruby/examples/hello-world.rb?rev=724905&r1=724904&r2=724905&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/ruby/examples/hello-world.rb (original)
+++ incubator/qpid/trunk/qpid/ruby/examples/hello-world.rb Tue Dec  9 13:44:26 
2008
@@ -18,11 +18,17 @@
 # under the License.
 #
 
-require "rubygems"
 require "qpid"
 require "socket"
 
-conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
+broker = if ARGV.length > 0 then ARGV[0] else "localhost" end
+port = if ARGV.length > 1 then ARGV[1].to_i else 5672 end
+if ARGV.length > 2 then
+  puts "usage: hello-world.rb [ <broker> [ <port> ] ]"
+  exit 1
+end
+
+conn = Qpid::Connection.new(TCPSocket.new(broker, port))
 conn.start(10)
 
 ssn = conn.session("test")

Modified: incubator/qpid/trunk/qpid/ruby/examples/qmf-libvirt.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/ruby/examples/qmf-libvirt.rb?rev=724905&r1=724904&r2=724905&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/ruby/examples/qmf-libvirt.rb (original)
+++ incubator/qpid/trunk/qpid/ruby/examples/qmf-libvirt.rb Tue Dec  9 13:44:26 
2008
@@ -18,7 +18,6 @@
 # under the License.
 #
 
-require "rubygems"
 require "qpid"
 
 s = Qpid::Qmf::Session.new()


Reply via email to