<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>reliable-msg.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,11 @@
 Release 1.1.1 (Planned)
 
-* Changed: enqueue is actually dequeue, and queue is now enqueue.
-  Contributed by John-Mason Shackelford
+* Changed: enqueue is actually dequeue, and queue is now enqueue. Contributed
+by John-Mason Shackelford
 * Fixed: ACL uses localhost instead of 127.0.0.1 to work with OS/X IPv6
-  Contributed by Chuck Remes
-* Fixed: merge of DRB options
-  Contributed by Kevin Burge
+Contributed by Chuck Remes
+* Fixed: merge of DRB options Contributed by Kevin Burge
+* Fixed: made to work with UUID 2.0.
 
 
 Release 1.1.0 (Nov 26, 2005)</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,170 +1,69 @@
-# Adapted from the rake Rakefile.
-
-require &quot;rubygems&quot;
-Gem::manage_gems
-require &quot;rake/testtask&quot;
-require &quot;rake/rdoctask&quot;
-require &quot;rake/gempackagetask&quot;
-
-
+# Adapted from the rake Rakefile.
+
+require &quot;rake/testtask&quot;
+require &quot;rake/rdoctask&quot;
+require &quot;rake/gempackagetask&quot;
+
+
 desc &quot;Default Task&quot;
-task :default =&gt; [:tests, :rdoc]
-
-
-desc &quot;Run test case for Queue API&quot;
-Rake::TestTask.new :test_queue do |test|
-    test.verbose = true
-    test.test_files = [&quot;test/test-queue.rb&quot;]
-end
-desc &quot;Run test case for Topic API&quot;
-Rake::TestTask.new :test_topic do |test|
-    test.verbose = true
-    test.test_files = [&quot;test/test-topic.rb&quot;]
-end
-desc &quot;Run test case for Rails integration&quot;
-Rake::TestTask.new :test_rails do |test|
-    test.verbose = true
-    test.test_files = [&quot;test/test-rails.rb&quot;]
-end
-desc &quot;Run all test cases&quot;
-Rake::TestTask.new :tests do |test|
-    test.verbose = true
-    test.test_files = [&quot;test/*.rb&quot;]
-    #test.warning = true
-end
-
-
-# Create the documentation.
-Rake::RDocTask.new do |rdoc|
-    rdoc.main = &quot;README.rdoc&quot;
-    rdoc.rdoc_files.include(&quot;README.rdoc&quot;, &quot;lib/**/*.rb&quot;)
-    rdoc.title = &quot;Reliable Messaging&quot;
-end
-
-# Handle version number.
-class Version
-
-    PATTERN = /(\s*)VERSION.*(\d+\.\d+\.\d+)/
-
-    def initialize file, new_version
-        @file = file
-        @version = File.open @file, &quot;r&quot; do |file|
-            version = nil
-            file.each_line do |line|
-                match = line.match PATTERN
-                if match
-                    version = match[2]
-                    break
-                end
-            end
-            version
-        end
-        fail &quot;Can't determine version number&quot; unless @version
-        @new_version = new_version || @version
-    end
-
-    def changed?
-        @version != @new_version
-    end
-
-    def number
-        @version
-    end
-
-    def next
-        @new_version
-    end
-
-    def update
-        puts &quot;Updating to version #{@new_version}&quot;
-        copy = &quot;#{@file}.new&quot;
-        open @file, &quot;r&quot; do |input|
-            open copy, &quot;w&quot; do |output|
-                input.each_line do |line|
-                    match = line.match PATTERN
-                    if match
-                        output.puts &quot;#{match[1]}VERSION = \&quot;#{@new_version}\&quot;&quot;
-                    else
-                        output.puts line
-                    end
-                end
-            end
-        end
-        mv copy, @file
-        @version = @new_version
-    end
-
-end
-version = Version.new &quot;lib/reliable-msg.rb&quot;, ENV[&quot;version&quot;]
-
-
-# Create the GEM package.
-gem_spec = Gem::Specification.new do |spec|
-    spec.name = &quot;reliable-msg&quot;
-    spec.version = version.next
-    spec.summary = &quot;Reliable messaging and persistent queues for building asynchronous applications in Ruby&quot;
-    spec.description = &lt;&lt;-EOF
-        This package provides reliable messaging and persistent queues for
-        building asynchronous applications in Ruby.
-
-        It supports transaction processing, message selectors, priorities,
-        delivery semantics, remote queue managers, disk-based and MySQL message
-        stores and more.
-EOF
-    spec.author = &quot;Assaf Arkin&quot;
-    spec.email = &quot;assaf@labnotes.org&quot;
-    spec.homepage = &quot;http://github.com/assaf/reliable-msg&quot;
-
-    spec.files = FileList[&quot;{bin,test,lib,docs}/**/*&quot;, &quot;README.rdoc&quot;, &quot;MIT-LICENSE&quot;, &quot;Rakefile&quot;, &quot;changelog.txt&quot;].to_a
-    spec.require_path = &quot;lib&quot;
-    spec.autorequire = &quot;reliable-msg.rb&quot;
-    spec.bindir = &quot;bin&quot;
-    spec.executables = [&quot;queues&quot;]
-    spec.default_executable = &quot;queues&quot;
-    spec.requirements &lt;&lt; &quot;MySQL for database store, otherwise uses the file system&quot;
-    spec.has_rdoc = true
-    spec.rdoc_options &lt;&lt; &quot;--main&quot; &lt;&lt; &quot;README.rdoc&quot; &lt;&lt; &quot;--title&quot; &lt;&lt;  &quot;Reliable Messaging for Ruby&quot; &lt;&lt; &quot;--line-numbers&quot;
-    spec.extra_rdoc_files = [&quot;README.rdoc&quot;]
-    spec.rubyforge_project = &quot;reliable-msg&quot;
-    spec.add_dependency(%q&lt;uuid&gt;, [&quot;&gt;= 1.0.0&quot;])
-end
-
-gem = Rake::GemPackageTask.new(gem_spec) do |pkg|
-    pkg.need_tar = true
-    pkg.need_zip = true
-end
-
-
+task :default =&gt; [:tests, :rdoc]
+
+
+desc &quot;Run test case for Queue API&quot;
+Rake::TestTask.new :test_queue do |test|
+  test.verbose = true
+  test.test_files = [&quot;test/test-queue.rb&quot;]
+end
+desc &quot;Run test case for Topic API&quot;
+Rake::TestTask.new :test_topic do |test|
+  test.verbose = true
+  test.test_files = [&quot;test/test-topic.rb&quot;]
+end
+desc &quot;Run test case for Rails integration&quot;
+Rake::TestTask.new :test_rails do |test|
+  test.verbose = true
+  test.test_files = [&quot;test/test-rails.rb&quot;]
+end
+desc &quot;Run all test cases&quot;
+Rake::TestTask.new :tests do |test|
+  test.verbose = true
+  test.test_files = [&quot;test/*.rb&quot;]
+  #test.warning = true
+end
+
+
+# Create the documentation.
+Rake::RDocTask.new do |rdoc|
+  rdoc.main = &quot;README.rdoc&quot;
+  rdoc.rdoc_files.include(&quot;README.rdoc&quot;, &quot;lib/**/*.rb&quot;)
+  rdoc.title = &quot;Reliable Messaging&quot;
+end
+
+
+# Create the GEM package.
+gem_spec = Gem::Specification.load('reliable-msg.gemspec')
+
+gem = Rake::GemPackageTask.new(gem_spec) do |pkg|
+  pkg.need_tar = true
+  pkg.need_zip = true
+end
+
+
 desc &quot;Look for TODO and FIXME tags in the code&quot;
 task :todo do
   FileList[&quot;**/*.rb&quot;].egrep /#.*(FIXME|TODO|TBD)/
 end
-
-
+
+
 # --------------------------------------------------------------------
 # Creating a release
 
 desc &quot;Make a new release&quot;
-task :release =&gt; [:tests, :prerelease, :clobber, :update_version, :package] do
-    puts
-    puts &quot;**************************************************************&quot;
-    puts &quot;* Release #{version.number} Complete.&quot;
-    puts &quot;* Packages ready to upload.&quot;
-    puts &quot;**************************************************************&quot;
-    puts
-end
-
-task :prerelease do
-    if !version.changed? &amp;&amp; ENV[&quot;reuse&quot;] != version.number
-        fail &quot;Current version is #{version.number}, must specify reuse=ver to reuse existing version&quot;
-    end
-end
-
-task :update_version =&gt; [:prerelease] do
-    if !version.changed?
-        puts &quot;No version change ... skipping version update&quot;
-    else
-        version.update
-    end
+task :release =&gt; [:tests, :clobber, :package] do
+  puts
+  puts &quot;**************************************************************&quot;
+  puts &quot;* Release #{spec.version} Complete.&quot;
+  puts &quot;* Packages ready to upload.&quot;
+  puts &quot;**************************************************************&quot;
+  puts
 end
-</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ begin
   require 'reliable-msg'
 rescue LoadError
   require 'rubygems'
-  require_gem 'reliable-msg'
+  gem 'reliable-msg'
 end
 ReliableMsg::CLI.new.run
 </diff>
      <filename>bin/queues</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,8 @@ $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
 module ReliableMsg
-  PACKAGE = &quot;reliable-msg&quot;
-  VERSION = &quot;1.1.0&quot;
+  PACKAGE = 'reliable-msg'
+  VERSION = '1.1.1'
 end
 
 require &quot;reliable-msg/queue&quot;</diff>
      <filename>lib/reliable-msg.rb</filename>
    </modified>
    <modified>
      <diff>@@ -279,7 +279,7 @@ module ReliableMsg
           # any referenced message to store new messages. The File object exists
           # if the file was opened before, otherwise, we need to open it again.
           free = @mutex.synchronize { @file_free.shift }
-          name = free ? free[0] : &quot;#{@path}/#{UUID.new}.msg&quot;
+          name = free ? free[0] : &quot;#{@path}/#{UUID.generate}.msg&quot;
           file = if free &amp;&amp; free[1]
             free[1]
           else</diff>
      <filename>lib/reliable-msg/message-store.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,12 +13,7 @@ require &quot;drb&quot;
 require &quot;drb/acl&quot;
 require &quot;thread&quot;
 require &quot;yaml&quot;
-begin
-  require &quot;uuid&quot;
-rescue LoadError
-  require &quot;rubygems&quot;
-  require_gem &quot;uuid&quot;
-end
+require &quot;uuid&quot;
 require &quot;reliable-msg/client&quot;
 require &quot;reliable-msg/message-store&quot;
 
@@ -273,7 +268,7 @@ module ReliableMsg
       raise ArgumentError, ERROR_SEND_MISSING_QUEUE unless queue &amp;&amp; queue.instance_of?(String) &amp;&amp; !queue.empty?
       time = Time.new.to_i
       # TODO: change this to support the RM delivery protocol.
-      id = args[:id] || UUID.new
+      id = args[:id] || UUID.generate
       created = args[:created] || time
 
       # Validate and freeze the headers. The cloning ensures that the headers we hold in memory
@@ -439,7 +434,7 @@ module ReliableMsg
       message, headers, topic, tid = args[:message], args[:headers], args[:topic].downcase, args[:tid]
       raise ArgumentError, ERROR_PUBLISH_MISSING_TOPIC unless topic and topic.instance_of?(String) and !topic.empty?
       time = Time.new.to_i
-      id = args[:id] || UUID.new
+      id = args[:id] || UUID.generate
       created = args[:created] || time
 
       # Validate and freeze the headers. The cloning ensures that the headers we hold in memory
@@ -518,7 +513,7 @@ module ReliableMsg
 
     # Called by client to begin a transaction.
     def begin(timeout)
-      tid = UUID.new
+      tid = UUID.generate
       @transactions[tid] = {:inserts=&gt;[], :deletes=&gt;[], :timeout=&gt;Time.new.to_i + timeout}
       tid
     end</diff>
      <filename>lib/reliable-msg/queue-manager.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@
 #++
 
 require 'test/unit'
+require 'rubygems'
 require 'reliable-msg'
 
 class TestQueue &lt; Test::Unit::TestCase</diff>
      <filename>test/test-queue.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@
 #++
 
 require 'test/unit'
+require 'rubygems'
 require 'reliable-msg'
 
 class TestRails &lt; Test::Unit::TestCase</diff>
      <filename>test/test-rails.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@
 #++
 
 require 'test/unit'
+require 'rubygems'
 require 'reliable-msg'
 
 class TestTopic &lt; Test::Unit::TestCase
@@ -40,8 +41,8 @@ class TestTopic &lt; Test::Unit::TestCase
     def _test_single restart = nil
         # Put one message, check that we can retrieve it. Check that we
         # can only retrieve it once. Then put another message, repeat.
-        msg1 = UUID.new
-        msg2 = UUID.new
+        msg1 = UUID.generate
+        msg2 = UUID.generate
         @topic.put msg1
         restart.call if restart
         msg = @topic.get
@@ -66,7 +67,7 @@ class TestTopic &lt; Test::Unit::TestCase
     end
 
     def _test_selector restart = nil
-        msg1 = UUID.new
+        msg1 = UUID.generate
         @topic.put msg1, :name=&gt;&quot;foo&quot;
         restart.call if restart
         msg = @topic.get(ReliableMsg::Queue.selector { name == 'bar' })
@@ -85,8 +86,8 @@ class TestTopic &lt; Test::Unit::TestCase
     def _test_non_expires restart = nil
         # Test that we can receive message that has not yet expired (30 second delay),
         # but cannot receive message that has expires (1 second, we wait for 2).
-        msg1 = UUID.new
-        msg2 = UUID.new
+        msg1 = UUID.generate
+        msg2 = UUID.generate
         @topic.put msg1, :expires=&gt;30
         restart.call if restart
         msg = @topic.get</diff>
      <filename>test/test-topic.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9450b2d04ee71dac12542f217c678cfdd7d021c7</id>
    </parent>
  </parents>
  <author>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </author>
  <url>http://github.com/assaf/reliable-msg/commit/81e4b5eb4723d69814c9311d94afa4c53805968a</url>
  <id>81e4b5eb4723d69814c9311d94afa4c53805968a</id>
  <committed-date>2009-03-24T17:28:29-07:00</committed-date>
  <authored-date>2009-03-24T17:28:29-07:00</authored-date>
  <message>Made to work with UUID 2.0.</message>
  <tree>3ef3eda8c075279ba99da4a9678a77aaa01c5dfb</tree>
  <committer>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </committer>
</commit>
