<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,7 +31,7 @@ CouchRest install, from the project root directory run `rake`, or `autotest`
 Quick Start:
 
     # with !, it creates the database if it doesn't already exist
-    @db = CouchRest.database!(&quot;http://localhost:5984/couchrest-test&quot;)
+    @db = CouchRest.database!(&quot;http://127.0.0.1:5984/couchrest-test&quot;)
     response = @db.save({:key =&gt; 'value', 'another key' =&gt; 'another value'})
     doc = @db.get(response['id'])
     puts doc.inspect</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 require File.expand_path(File.dirname(__FILE__)) + '/../../couchrest'
 
-cr = CouchRest.new(&quot;http://localhost:5984&quot;)
+cr = CouchRest.new(&quot;http://127.0.0.1:5984&quot;)
 @db = cr.database('word-count-example')
 @word_memoizer = {}
 </diff>
      <filename>examples/word_count/markov</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../couchrest'
 
-couch = CouchRest.new(&quot;http://localhost:5984&quot;)
+couch = CouchRest.new(&quot;http://127.0.0.1:5984&quot;)
 db = couch.database('word-count-example')
 db.delete! rescue nil
 db = couch.create_db('word-count-example')
@@ -62,6 +62,6 @@ end
 #   }
 # })
 
-# puts &quot;The books have been stored in your CouchDB. To initiate the MapReduce process, visit http://localhost:5984/_utils/ in your browser and click 'word-count-example', then select view 'words' or 'count'. The process could take about 15 minutes on an average MacBook.&quot;
+# puts &quot;The books have been stored in your CouchDB. To initiate the MapReduce process, visit http://127.0.0.1:5984/_utils/ in your browser and click 'word-count-example', then select view 'words' or 'count'. The process could take about 15 minutes on an average MacBook.&quot;
 # 
 </diff>
      <filename>examples/word_count/word_count.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../couchrest'
 
-couch = CouchRest.new(&quot;http://localhost:5984&quot;)
+couch = CouchRest.new(&quot;http://127.0.0.1:5984&quot;)
 db = couch.database('word-count-example')
 
 puts &quot;Now that we've parsed all those books into CouchDB, the queries we can run are incredibly flexible.&quot;
@@ -35,5 +35,5 @@ puts &quot;\nHere are the params for 'flight' in the da-vinci book:&quot;
 puts params.inspect
 puts
 puts 'The url looks like this:'
-puts 'http://localhost:5984/word-count-example/_view/word_count/count?key=[&quot;flight&quot;,&quot;da-vinci&quot;]'
+puts 'http://127.0.0.1:5984/word-count-example/_view/word_count/count?key=[&quot;flight&quot;,&quot;da-vinci&quot;]'
 puts &quot;\nTry dropping that in your browser...&quot;
\ No newline at end of file</diff>
      <filename>examples/word_count/word_count_query.rb</filename>
    </modified>
    <modified>
      <diff>@@ -72,7 +72,7 @@ module CouchRest
       db = nil if db &amp;&amp; db.empty?
 
       {
-        :host =&gt; host || &quot;localhost:5984&quot;,
+        :host =&gt; host || &quot;127.0.0.1:5984&quot;,
         :database =&gt; db,
         :doc =&gt; docid
       }</diff>
      <filename>lib/couchrest.rb</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@ module CouchRest
         foo-project/bar-views/my-design/viewname-reduce.js
         foo-project/bar-views/my-design/noreduce-map.js
 
-        Pushed to =&gt; http://localhost:5984/baz-database/_design/my-design
+        Pushed to =&gt; http://127.0.0.1:5984/baz-database/_design/my-design
 
         And the design document:
         {</diff>
      <filename>lib/couchrest/commands/push.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ module CouchRest
   # than this example.
   #    
   #   class Article &lt; CouchRest::Model
-  #     use_database CouchRest.database!('http://localhost:5984/couchrest-model-test')
+  #     use_database CouchRest.database!('http://127.0.0.1:5984/couchrest-model-test')
   #     unique_id :slug
   #
   #     view_by :date, :descending =&gt; true</diff>
      <filename>lib/couchrest/core/model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module CouchRest
   class Server
     attr_accessor :uri, :uuid_batch_count
-    def initialize server = 'http://localhost:5984', uuid_batch_count = 1000
+    def initialize server = 'http://127.0.0.1:5984', uuid_batch_count = 1000
       @uri = server
       @uuid_batch_count = uuid_batch_count
     end</diff>
      <filename>lib/couchrest/core/server.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module CouchRest
       &quot;css&quot;   =&gt; &quot;text/css&quot;,
       &quot;js&quot;    =&gt; &quot;test/javascript&quot;
     }    
-    def initialize(dbname, host=&quot;http://localhost:5984&quot;)
+    def initialize(dbname, host=&quot;http://127.0.0.1:5984&quot;)
       @db = CouchRest.new(host).database(dbname)
     end
     </diff>
      <filename>lib/couchrest/helper/file_manager.rb</filename>
    </modified>
    <modified>
      <diff>@@ -46,48 +46,48 @@ describe CouchRest do
     it &quot;should parse just a dbname&quot; do
       db = CouchRest.parse &quot;my-db&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost:5984&quot;
+      db[:host].should == &quot;127.0.0.1:5984&quot;
     end
     it &quot;should parse a host and db&quot; do
-      db = CouchRest.parse &quot;localhost/my-db&quot;
+      db = CouchRest.parse &quot;127.0.0.1/my-db&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost&quot;
+      db[:host].should == &quot;127.0.0.1&quot;
     end
     it &quot;should parse a host and db with http&quot; do
-      db = CouchRest.parse &quot;http://localhost/my-db&quot;
+      db = CouchRest.parse &quot;http://127.0.0.1/my-db&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost&quot;
+      db[:host].should == &quot;127.0.0.1&quot;
     end
     it &quot;should parse a host with a port and db&quot; do
-      db = CouchRest.parse &quot;localhost:5555/my-db&quot;
+      db = CouchRest.parse &quot;127.0.0.1:5555/my-db&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
     end
     it &quot;should parse a host with a port and db with http&quot; do
-      db = CouchRest.parse &quot;http://localhost:5555/my-db&quot;
+      db = CouchRest.parse &quot;http://127.0.0.1:5555/my-db&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
     end
     it &quot;should parse just a host&quot; do
-      db = CouchRest.parse &quot;http://localhost:5555/&quot;
+      db = CouchRest.parse &quot;http://127.0.0.1:5555/&quot;
       db[:database].should be_nil
-      db[:host].should == &quot;localhost:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
     end
     it &quot;should parse just a host no slash&quot; do
-      db = CouchRest.parse &quot;http://localhost:5555&quot;
-      db[:host].should == &quot;localhost:5555&quot;
+      db = CouchRest.parse &quot;http://127.0.0.1:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
       db[:database].should be_nil
     end
     it &quot;should get docid&quot; do
-      db = CouchRest.parse &quot;localhost:5555/my-db/my-doc&quot;
+      db = CouchRest.parse &quot;127.0.0.1:5555/my-db/my-doc&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
       db[:doc].should == &quot;my-doc&quot;
     end
     it &quot;should get docid with http&quot; do
-      db = CouchRest.parse &quot;http://localhost:5555/my-db/my-doc&quot;
+      db = CouchRest.parse &quot;http://127.0.0.1:5555/my-db/my-doc&quot;
       db[:database].should == &quot;my-db&quot;
-      db[:host].should == &quot;localhost:5555&quot;
+      db[:host].should == &quot;127.0.0.1:5555&quot;
       db[:doc].should == &quot;my-doc&quot;
     end
 
@@ -137,24 +137,24 @@ describe CouchRest do
 
   describe &quot;easy initializing a database adapter&quot; do
     it &quot;should be possible without an explicit CouchRest instantiation&quot; do
-      db = CouchRest.database &quot;http://localhost:5984/couchrest-test&quot;
+      db = CouchRest.database &quot;http://127.0.0.1:5984/couchrest-test&quot;
       db.should be_an_instance_of(CouchRest::Database)
-      db.host.should == &quot;localhost:5984&quot;
+      db.host.should == &quot;127.0.0.1:5984&quot;
     end
     # TODO add https support (need test environment...)
     # it &quot;should work with https&quot; # do
-    #      db = CouchRest.database &quot;https://localhost:5984/couchrest-test&quot;
-    #      db.host.should == &quot;https://localhost:5984&quot;
+    #      db = CouchRest.database &quot;https://127.0.0.1:5984/couchrest-test&quot;
+    #      db.host.should == &quot;https://127.0.0.1:5984&quot;
     #    end
     it &quot;should not create the database automatically&quot; do
-      db = CouchRest.database &quot;http://localhost:5984/couchrest-test&quot;
+      db = CouchRest.database &quot;http://127.0.0.1:5984/couchrest-test&quot;
       lambda{db.info}.should raise_error(RestClient::ResourceNotFound)      
     end
   end
 
   describe &quot;ensuring the db exists&quot; do
     it &quot;should be super easy&quot; do
-      db = CouchRest.database! &quot;http://localhost:5984/couchrest-test-2&quot;
+      db = CouchRest.database! &quot;http://127.0.0.1:5984/couchrest-test-2&quot;
       db.name.should == 'couchrest-test-2'
       db.info[&quot;db_name&quot;].should == 'couchrest-test-2'
     end</diff>
      <filename>spec/couchrest/core/couchrest_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -159,7 +159,7 @@ describe CouchRest::Database do
       
       docs = [{'key' =&gt; 'value'}, {'_id' =&gt; 'totally-uniq'}]
       id_docs = [{'key' =&gt; 'value', '_id' =&gt; 'asdf6sgadkfhgsdfusdf'}, {'_id' =&gt; 'totally-uniq'}]
-      CouchRest.should_receive(:post).with(&quot;http://localhost:5984/couchrest-test/_bulk_docs&quot;, {:docs =&gt; id_docs})
+      CouchRest.should_receive(:post).with(&quot;http://127.0.0.1:5984/couchrest-test/_bulk_docs&quot;, {:docs =&gt; id_docs})
       
       @db.bulk_save(docs)
     end</diff>
      <filename>spec/couchrest/core/database_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ class Course &lt; CouchRest::Model
 end
 
 class Article &lt; CouchRest::Model
-  use_database CouchRest.database!('http://localhost:5984/couchrest-model-test')
+  use_database CouchRest.database!('http://127.0.0.1:5984/couchrest-model-test')
   unique_id :slug
   
   view_by :date, :descending =&gt; true
@@ -106,8 +106,8 @@ describe CouchRest::Model do
     @db = @cr.create_db(TESTDB) rescue nil
     @adb = @cr.database('couchrest-model-test')
     @adb.delete! rescue nil
-    CouchRest.database!('http://localhost:5984/couchrest-model-test')
-    CouchRest::Model.default_database = CouchRest.database!('http://localhost:5984/couchrest-test')
+    CouchRest.database!('http://127.0.0.1:5984/couchrest-model-test')
+    CouchRest::Model.default_database = CouchRest.database!('http://127.0.0.1:5984/couchrest-test')
   end
   
   it &quot;should use the default database&quot; do</diff>
      <filename>spec/couchrest/core/model_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,12 +15,12 @@ describe CouchRest::FileManager do
     lambda{CouchRest::FileManager.new}.should raise_error
   end
   it &quot;should accept a db name&quot; do
-    @fm = CouchRest::FileManager.new(TESTDB, 'http://localhost')
+    @fm = CouchRest::FileManager.new(TESTDB, 'http://127.0.0.1')
     @fm.db.name.should == TESTDB
   end
-  it &quot;should default to localhost couchdb&quot; do
+  it &quot;should default to 127.0.0.1 couchdb&quot; do
     @fm = CouchRest::FileManager.new(TESTDB)
-    @fm.db.host.should == 'http://localhost:5984'
+    @fm.db.host.should == 'http://127.0.0.1:5984'
   end
 end
 </diff>
      <filename>spec/couchrest/helpers/file_manager_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../lib/couchrest'
 
 FIXTURE_PATH = File.dirname(__FILE__) + '/fixtures'
 
-COUCHHOST = &quot;http://localhost:5984&quot;
+COUCHHOST = &quot;http://127.0.0.1:5984&quot;
 TESTDB = 'couchrest-test'
 
 def reset_test_db!</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@ require 'rubygems'
 require 'couchrest'
 
 # set the source db and map view
-source = CouchRest.new(&quot;http://localhost:5984&quot;).database('source-db')
+source = CouchRest.new(&quot;http://127.0.0.1:5984&quot;).database('source-db')
 source_view = 'mydesign/view-map'
 
 # set the target db
-target = CouchRest.new(&quot;http://localhost:5984&quot;).database('target-db')
+target = CouchRest.new(&quot;http://127.0.0.1:5984&quot;).database('target-db')
 
 
 pager = CouchRest::Pager.new(source)</diff>
      <filename>utils/remap.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,10 +5,10 @@ require 'couchrest'
 # use it to create a smaller dataset on which to prototype views.
 
 # specify the source database
-source = CouchRest.new(&quot;http://localhost:5984&quot;).database('source-db')
+source = CouchRest.new(&quot;http://127.0.0.1:5984&quot;).database('source-db')
 
 # specify the target database
-target = CouchRest.new(&quot;http://localhost:5984&quot;).database('target-db')
+target = CouchRest.new(&quot;http://127.0.0.1:5984&quot;).database('target-db')
 
 # pager efficiently yields all view rows
 pager = CouchRest::Pager.new(source)</diff>
      <filename>utils/subset.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12c09085dfff9f7ce80161833a81fbff5b99321c</id>
    </parent>
  </parents>
  <author>
    <name>Jan Lehnardt</name>
    <email>jan@dahlia.local</email>
  </author>
  <url>http://github.com/jchris/couchrest/commit/7461e3fede7cf30503baa1eadf243259e02fa522</url>
  <id>7461e3fede7cf30503baa1eadf243259e02fa522</id>
  <committed-date>2008-12-14T03:05:02-08:00</committed-date>
  <authored-date>2008-12-14T03:05:02-08:00</authored-date>
  <message>s/localhost/127.0.0.1/</message>
  <tree>d361182c68b8eef0996f216117120cc3e4643e75</tree>
  <committer>
    <name>Jan Lehnardt</name>
    <email>jan@dahlia.local</email>
  </committer>
</commit>
