<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,19 +2,9 @@ module CouchRest
   class Server
     attr_accessor :uri, :uuid_batch_count, :available_databases
     def initialize(server = 'http://127.0.0.1:5984', uuid_batch_count = 1000)
-      case server
-      when %r{\A(http://[^/]+)/(.*)\z}
-        @uri, @prefix = $1, $2
-      else   
-        @uri, @prefix = server, &quot;&quot;
-      end
+      @uri = server
       @uuid_batch_count = uuid_batch_count
     end
-
-    # Add default prefix to database name
-    def expand(name)
-      @prefix + name
-    end
   
     # Lists all &quot;available&quot; databases.
     # An available database, is a database that was specified
@@ -42,7 +32,7 @@ module CouchRest
     # @couch.available_database?(:default)
     #
     def available_database?(ref_or_name)
-      ref_or_name.is_a?(Symbol) ? available_databases.keys.include?(ref_or_name) : available_databases.values.map{|db| db.name}.include?(expand(ref_or_name))
+      ref_or_name.is_a?(Symbol) ? available_databases.keys.include?(ref_or_name) : available_databases.values.map{|db| db.name}.include?(ref_or_name)
     end
   
     def default_database=(name, create_unless_exists = true)
@@ -55,17 +45,12 @@ module CouchRest
   
     # Lists all databases on the server
     def databases
-      dbs = CouchRest.get &quot;#{@uri}/_all_dbs&quot;
-      unless @prefix.empty?
-        pfx = @prefix.gsub('/','%2F')
-        dbs.reject! { |db| db.index(pfx) != 0 }
-      end
-      dbs
+      CouchRest.get &quot;#{@uri}/_all_dbs&quot;
     end
   
     # Returns a CouchRest::Database for the given name
     def database(name)
-      CouchRest::Database.new(self, expand(name))
+      CouchRest::Database.new(self, name)
     end
   
     # Creates the database if it doesn't exist
@@ -81,7 +66,7 @@ module CouchRest
 
     # Create a database
     def create_db(name)
-      CouchRest.put &quot;#{@uri}/#{expand(name).gsub('/','%2F')}&quot;
+      CouchRest.put &quot;#{@uri}/#{name}&quot;
       database(name)
     end
 </diff>
      <filename>lib/couchrest/core/server.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,36 +2,6 @@ require File.dirname(__FILE__) + '/../../spec_helper'
 
 describe CouchRest::Server do
   
-  describe &quot;named databases&quot; do
-    it &quot;should generate database without prefix&quot; do
-      couch = CouchRest::Server.new &quot;http://192.0.2.1:1234&quot;
-      db = couch.database(&quot;foo&quot;)
-      db.name.should == &quot;foo&quot;
-      db.uri.should == &quot;http://192.0.2.1:1234/foo&quot;
-    end
-
-    it &quot;should generate database with prefix&quot; do
-      couch = CouchRest::Server.new &quot;http://192.0.2.1:1234/dev&quot;
-      db = couch.database(&quot;foo&quot;)
-      db.name.should == &quot;devfoo&quot;
-      db.uri.should == &quot;http://192.0.2.1:1234/devfoo&quot;
-    end
-
-    it &quot;should generate database with prefix and slash&quot; do
-      couch = CouchRest::Server.new &quot;http://192.0.2.1:1234/dev/&quot;
-      db = couch.database(&quot;foo&quot;)
-      db.name.should == &quot;dev/foo&quot;
-      db.uri.should == &quot;http://192.0.2.1:1234/dev%2Ffoo&quot;
-    end
-
-    it &quot;should generate database with slashes&quot; do
-      couch = CouchRest::Server.new &quot;http://192.0.2.1:1234/dev/sample/&quot;
-      db = couch.database(&quot;foo/bar&quot;)
-      db.name.should == &quot;dev/sample/foo/bar&quot;
-      db.uri.should == &quot;http://192.0.2.1:1234/dev%2Fsample%2Ffoo%2Fbar&quot;
-    end
-  end
-
   describe &quot;available databases&quot; do
     before(:each) do
       @couch = CouchRest::Server.new</diff>
      <filename>spec/couchrest/core/server_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>55271490e8e2fe56573eb30a4738ba419dc7c414</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/couchrest/commit/09dcc9e5c2e8b0724f98c4241b0cad5fb5bc930a</url>
  <id>09dcc9e5c2e8b0724f98c4241b0cad5fb5bc930a</id>
  <committed-date>2009-03-31T12:24:04-07:00</committed-date>
  <authored-date>2009-03-31T12:24:04-07:00</authored-date>
  <message>Revert &quot;Server URI can now include a prefix to the database name&quot;

This reverts commit 14acd9544414d475374a9ae06ed71072681a7893.</message>
  <tree>34210316046aa6d095023502395bfc652091ef28</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
