<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 .loadpath
 .project
 pkg
+.idea</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,6 @@
+=== 1.3.2 / 2009-05-27
+* Fixed blank address geocoding bug
+
 === 1.3.1 / 2009-05-21
 * Support for External geocoders file (thanks dreamcat4)
 * Support multiple ip geocoders, including new setting for ip_provider_order (thanks dreamcat4)</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 Gem::Specification.new do |s|
   s.name = %q{geokit}
-  s.version = &quot;1.3.1&quot;
+  s.version = &quot;1.3.2&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Andre Lewis and Bill Eisenhauer&quot;]</diff>
      <filename>geokit.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Geokit
-  VERSION = '1.3.1'
+  VERSION = '1.3.2'
   # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
   @@default_units = :miles
   @@default_formula = :sphere</diff>
      <filename>lib/geokit.rb</filename>
    </modified>
    <modified>
      <diff>@@ -564,7 +564,7 @@ module Geokit
       # The failover approach is crucial for production-grade apps, but is rarely used.
       # 98% of your geocoding calls will be successful with the first call  
       def self.do_geocode(address)
-        geocode_ip = !!/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})?$/.match(address)
+        geocode_ip = /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/.match(address)
         provider_order = geocode_ip ? Geokit::Geocoders::ip_provider_order : Geokit::Geocoders::provider_order
         
         provider_order.each do |provider|</diff>
      <filename>lib/geokit/geocoders.rb</filename>
    </modified>
    <modified>
      <diff>@@ -41,4 +41,14 @@ class MultiGeocoderTest &lt; BaseGeocoderTest #:nodoc: all
     Geokit::Geocoders.provider_order = temp
   end
 
+  def test_blank_address
+    t1, t2 = Geokit::Geocoders.provider_order, Geokit::Geocoders.ip_provider_order # will need to reset after
+    Geokit::Geocoders.provider_order = [:google]
+    Geokit::Geocoders.ip_provider_order = [:geo_plugin]
+    Geokit::Geocoders::GoogleGeocoder.expects(:geocode).with(&quot;&quot;).returns(@failure)
+    Geokit::Geocoders::GeoPluginGeocoder.expects(:geocode).never
+    assert_equal @failure, Geokit::Geocoders::MultiGeocoder.geocode(&quot;&quot;)
+    Geokit::Geocoders.provider_order, Geokit::Geocoders.ip_provider_order = t1, t2 # reset to orig values
+  end
+
 end
\ No newline at end of file</diff>
      <filename>test/test_multi_geocoder.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4271f870b15092e1d0c0444538194d4ba3a54bbe</id>
    </parent>
  </parents>
  <author>
    <name>Andre Lewis</name>
    <email>andre@highgroove.com</email>
  </author>
  <url>http://github.com/andre/geokit-gem/commit/2fb064d7df55a23a851fcf9df46b2838c18839b2</url>
  <id>2fb064d7df55a23a851fcf9df46b2838c18839b2</id>
  <committed-date>2009-05-27T09:24:28-07:00</committed-date>
  <authored-date>2009-05-27T09:24:28-07:00</authored-date>
  <message>fixed blank address regex</message>
  <tree>138e9b2aedb86e972fef0f985104daefc6f7f6a5</tree>
  <committer>
    <name>Andre Lewis</name>
    <email>andre@highgroove.com</email>
  </committer>
</commit>
