<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/couch_foo/database_version.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 require 'couchrest'
+require 'couch_foo/database_version.rb'
 
 # This class wrappers CouchRest but may ultimately replace it as only parts of the library are used
 module CouchFoo 
@@ -12,7 +13,7 @@ module CouchFoo
       
       # Check database ok
       begin
-        self.database_version = (JSON.parse(RestClient.get(options[:host]))[&quot;version&quot;]).gsub(/-.+/,&quot;&quot;).to_f
+        self.database_version = DatabaseVersion.new((JSON.parse(RestClient.get(options[:host]))[&quot;version&quot;]).gsub(/-.+/,&quot;&quot;))
       rescue Exception =&gt; e
         if e.is_a?(Errno::ECONNREFUSED)
           raise CouchFooError, &quot;CouchDB not started&quot;</diff>
      <filename>lib/couch_foo/database.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>13a37f5c452f8ebacb4a9caf0e225911cface3a6</id>
    </parent>
  </parents>
  <author>
    <name>Tom Hanley</name>
    <email>tjhanley.com@gmail.com</email>
  </author>
  <url>http://github.com/georgepalmer/couch_foo/commit/623a190345e5301cfe54d525d7ec24909d943f53</url>
  <id>623a190345e5301cfe54d525d7ec24909d943f53</id>
  <committed-date>2009-10-23T21:19:43-07:00</committed-date>
  <authored-date>2009-10-23T21:19:43-07:00</authored-date>
  <message>Added the database version class suggested by zedalaye: http://github.com/zedalaye</message>
  <tree>e5abed4133323e07828bde96c56abb5510d06903</tree>
  <committer>
    <name>Tom Hanley</name>
    <email>tjhanley.com@gmail.com</email>
  </committer>
</commit>
