<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,9 +19,12 @@ begin
     gem.executables = ['terror']
     gem.post_install_message = 'Run terror projectname and start aggregating.'
 
-    gem.add_dependency 'sinatra', ['&gt;= 0.9.1.1']
+    gem.add_dependency 'sinatra',         ['&gt;= 0.9.1.1']
     gem.add_dependency 'feed-normalizer', ['&gt;= 1.5.1']
-    gem.add_dependency 'activerecord', ['&gt;= 2.2.2']
+    gem.add_dependency 'dm-core',         ['&gt;= 0.9.10']
+    gem.add_dependency 'dm-validations',  ['&gt;= 0.9.10']
+    gem.add_dependency 'dm-aggregates',   ['&gt;= 0.9.10']
+    gem.add_dependency 'do_sqlite3',      ['&gt;= 0.9.11']
   end
 rescue LoadError
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,8 @@
 $LOAD_PATH &lt;&lt; File.dirname(__FILE__) + '/terror'
 require 'rubygems'
 require 'dm-core'
-require 'dm-more'
+require 'dm-validations'
+require 'dm-aggregates'
 require 'sinatra'
 require 'yaml'
 require 'post'</diff>
      <filename>lib/terror.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ module Terror
           :url =&gt; entry.url, 
           :source =&gt; feed.title, 
           :date =&gt; entry.date_published
-        )  unless self.get(:first, :url =&gt; entry.url)
+        )  unless self.first(:url =&gt; entry.url)
       end
     end
     </diff>
      <filename>lib/terror/feed_fetcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ module Terror
     end
     
     def rfc_3339(time)
-      time.strftime(&quot;%Y-%m-%dT%H:%M:%SZ&quot;)
+      time.strftime(&quot;%Y-%m-%dT%H:%M:%SZ&quot;) if time
     end
     
     def newer_page?</diff>
      <filename>lib/terror/helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,10 +6,10 @@ module Terror
     include FeedFetcher
     
     property :id,     Integer,  :serial =&gt; true
-    property :title,  String,   :nullable =&gt; false
-    property :url,    String,   :nullable =&gt; false, :format =&gt; /^http|https:\/\//
-    property :source, String
-    property :date,   Date        
+    property :title,  String,   :nullable =&gt; false, :length =&gt; 255
+    property :url,    String,   :nullable =&gt; false, :length =&gt; 255, :index =&gt; true, :format =&gt; /^http|https:\/\//
+    property :source, String,   :length =&gt; 255
+    property :date,   Time,     :nullable =&gt; false
     
     def self.paginate(options = {})
       per_page     = options[:per_page]</diff>
      <filename>lib/terror/post.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@
     &lt;id&gt;http://example.com/post-1&lt;/id&gt;
     &lt;link type=&quot;text/html&quot; rel=&quot;alternate&quot; href=&quot;http://example.com/post-1&quot;/&gt;
     &lt;updated&gt;2009-03-15T01:11:33Z&lt;/updated&gt;
+		&lt;published&gt;2009-03-15T01:11:33Z&lt;/published&gt;
     &lt;title&gt;Title 1&lt;/title&gt;
     &lt;author&gt;
       &lt;name&gt;author&lt;/name&gt;
@@ -19,6 +20,7 @@
     &lt;id&gt;http://example.com/post-2&lt;/id&gt;
     &lt;link type=&quot;text/html&quot; rel=&quot;alternate&quot; href=&quot;http://example.com/post-2&quot;/&gt;
     &lt;updated&gt;2009-03-15T01:11:33Z&lt;/updated&gt;
+		&lt;published&gt;2009-03-15T01:11:33Z&lt;/published&gt;
     &lt;title&gt;Title 2&lt;/title&gt;
     &lt;author&gt;
       &lt;name&gt;author&lt;/name&gt;</diff>
      <filename>test/feeds/example.xml</filename>
    </modified>
    <modified>
      <diff>@@ -23,11 +23,16 @@ describe 'Creating posts' do
     post = Terror::Post.create(:url =&gt; 'example.com')
     post.errors.on(:url).should_not be_nil
   end
+  
+  it 'should validate presence of date' do    
+    @blank_post.errors.on(:date).should_not be_nil
+  end
     
   it 'should create post' do    
-    post = Terror::Post.create(:url =&gt; 'http://example.com/', :title =&gt; 'Example')
+    post = Terror::Post.create(:url =&gt; 'http://example.com/', :title =&gt; 'Example', :date =&gt; Time.now)
     post.should be_valid
   end
+  
 end
 
 describe 'Fetching feed' do</diff>
      <filename>test/post_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>03391f0ccd8122db9b6f3d2111c3294b42427bac</id>
    </parent>
  </parents>
  <author>
    <name>Andrea Franz</name>
    <email>andrea@gravityblast.com</email>
  </author>
  <url>http://github.com/pilu/terror/commit/f2ad7813a16576952eecfc31d1fdec2dc5e22aa4</url>
  <id>f2ad7813a16576952eecfc31d1fdec2dc5e22aa4</id>
  <committed-date>2009-03-16T17:42:32-07:00</committed-date>
  <authored-date>2009-03-16T17:42:32-07:00</authored-date>
  <message>fixed post fetching</message>
  <tree>be85e395d4615e506a4e796d808c3be13988bfb7</tree>
  <committer>
    <name>Andrea Franz</name>
    <email>andrea@gravityblast.com</email>
  </committer>
</commit>
