<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'rubygems'
 require 'rake'
 require 'echoe'
 
-Echoe.new('rangetastic', '0.3.0') do |p|
+Echoe.new('rangetastic', '0.3.1') do |p|
   p.description     = &quot;Chain a date range to any named_scope on any date field with specified white listed fields&quot;
   p.url             = &quot;http://github.com/cherring/rangetastic&quot;
   p.author          = &quot;Chris Herring&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -23,15 +23,23 @@ module Rangetastic
       end
       
       def field(symbol)
-        if columns_hash.has_key? &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_on&quot;
-          @field = &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_on&quot;
-        elsif columns_hash.has_key? &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_at&quot;
-          @field = &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_at&quot;
+        if columns_hash.has_key? on_field(symbol)
+          @field = on_field(symbol)
+        elsif columns_hash.has_key? at_field(symbol)
+          @field = at_field(symbol)
         else
           @field = nil
         end
       end
       
+      def at_field(symbol)
+        &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_at&quot;
+      end
+      
+      def on_field(symbol)
+        &quot;#{symbol.to_s.gsub(&quot;_between&quot;,&quot;&quot;)}_on&quot;
+      end
+      
       def field_to_query
         @field
       end</diff>
      <filename>lib/rangetastic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 
 Gem::Specification.new do |s|
   s.name = %q{rangetastic}
-  s.version = &quot;0.3.0&quot;
+  s.version = &quot;0.3.1&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 1.2&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Chris Herring&quot;]
-  s.date = %q{2009-07-25}
+  s.date = %q{2009-07-28}
   s.description = %q{Chain a date range to any named_scope on any date field with specified white listed fields}
   s.email = %q{chris.herring.iphone@gmail.com}
   s.extra_rdoc_files = [&quot;lib/rangetastic.rb&quot;, &quot;README.markdown&quot;]</diff>
      <filename>rangetastic.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ describe Order do
   end
   
   it &quot;should be able to filter on any field that is in fields =&gt; []&quot; do
-    %w(ordered_on fulfilled_on shipped_on).each do |field|
+    %w(ordered_on fulfilled_on shipped_at).each do |field|
       lambda{ Order.fulfilled.between(1.week.ago, 1.day.ago, field) }.should_not raise_error(ActiveRecord::StatementInvalid)
     end
   end</diff>
      <filename>spec/rangetastic_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a65aa40a7ea3f5cf12d782faf53c1d01886bf875</id>
    </parent>
  </parents>
  <author>
    <name>Chris Herring</name>
    <email>chris.herring.iphone@gmail.com</email>
  </author>
  <url>http://github.com/cherring/rangetastic/commit/1b8d73a2aecb1219eb6785015dda9155ffca5383</url>
  <id>1b8d73a2aecb1219eb6785015dda9155ffca5383</id>
  <committed-date>2009-07-28T05:57:48-07:00</committed-date>
  <authored-date>2009-07-28T05:57:48-07:00</authored-date>
  <message>Pushed to 0.3.1, tidied up the private code a bit made more DRY</message>
  <tree>7310599d887906eda6e7e84678a04a962d666aba</tree>
  <committer>
    <name>Chris Herring</name>
    <email>chris.herring.iphone@gmail.com</email>
  </committer>
</commit>
