<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+0.2.1 - 2008-8-8
+* Results are now WillPaginate compatible
+
 0.2.0 - 2007-10-27
 * Added validates_as_geocodable (Mark Van Holstyn)
 * Allow address mapping to be a single field (Mark Van Holstyn)</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -91,7 +91,20 @@ module CollectiveIdea #:nodoc:
           end
         end
         
-        # Acts like find(), except doesn't add the distance alias to the select 
+        # Extends ActiveRecord's count method to be geo-aware.
+        #
+        #   Model.count(:within =&gt; 10, :origin =&gt; &quot;Chicago, IL&quot;)
+        #
+        # == Options
+        #
+        # * &lt;tt&gt;:origin&lt;/tt&gt;: A Geocode, String, or geocodable model that specifies
+        #   the origin
+        # * &lt;tt&gt;:within&lt;/tt&gt;: Limit to results within this radius of the origin
+        # * &lt;tt&gt;:beyond&lt;/tt&gt;: Limit to results outside of this radius from the origin
+        # * &lt;tt&gt;:units&lt;/tt&gt;: Units to use for &lt;tt&gt;:within&lt;/tt&gt; or &lt;tt&gt;:beyond&lt;/tt&gt;.
+        #   Default is &lt;tt&gt;:miles&lt;/tt&gt; unless specified otherwise in the +acts_as_geocodable+
+        #   declaration.
+        #
         def count(*args)
           options = args.extract_options!
           origin = location_to_geocode options.delete(:origin)</diff>
      <filename>lib/acts_as_geocodable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -247,8 +247,8 @@ class ActsAsGeocodableTest &lt; Test::Unit::TestCase
   end
   
   def test_count_within
-    spots = Vacation.count(:all, :origin =&gt; &quot;49406&quot;, :within =&gt; 3)
-    assert_equal 1, spots
+    spots_count = Vacation.count(:origin =&gt; &quot;49406&quot;, :within =&gt; 3)
+    assert_equal 1, spots_count
   end
   
   def test_within_kilometers
@@ -263,6 +263,11 @@ class ActsAsGeocodableTest &lt; Test::Unit::TestCase
     assert_equal vacations(:whitehouse), spots.first
   end
 
+  def test_count_beyond
+    spots = Vacation.count(:origin =&gt; &quot;49406&quot;, :beyond =&gt; 3)
+    assert_equal 1, spots
+  end
+
   def test_find_beyond_in_kilometers
     whitehouse = Vacation.find(:first, :beyond =&gt; 3, :units =&gt; :kilometers, :origin =&gt; &quot;49406&quot;)
     assert_equal vacations(:whitehouse), whitehouse</diff>
      <filename>test/acts_as_geocodable_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>23874f7b5c13390aff2bca30daf07f56f55b83f7</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Donaldson</name>
    <email>andrew@tictocfamily.com</email>
  </author>
  <url>http://github.com/collectiveidea/acts_as_geocodable/commit/6d9cbe020031defdd57f8d24de657199486f90a5</url>
  <id>6d9cbe020031defdd57f8d24de657199486f90a5</id>
  <committed-date>2008-08-08T01:50:51-07:00</committed-date>
  <authored-date>2008-08-08T01:50:51-07:00</authored-date>
  <message>Added further documentation and tests
- Added CHANGELOG entry (requires correct version set)
- Added documentation to the acts_as_geocodable #count method
- Added another test to cover :beyond calls
- Added .gitignore for debug.log</message>
  <tree>c86c8fa33ac1d3989aba2e1afe7fdfaa9f7e5234</tree>
  <committer>
    <name>Andrew Donaldson</name>
    <email>andrew@tictocfamily.com</email>
  </committer>
</commit>
