<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -62,6 +62,7 @@ module FeedNormalizer
       item_mapping = {
         :date_published =&gt; [:pubDate, :dc_date],
         :urls =&gt; :link,
+        :enclosures =&gt; :enclosure,
         :description =&gt; :description,
         :content =&gt; [:content_encoded, :description],
         :title =&gt; :title,</diff>
      <filename>lib/parsers/rss.rb</filename>
    </modified>
    <modified>
      <diff>@@ -90,6 +90,7 @@ module FeedNormalizer
       entry_mapping = {
         :date_published =&gt; [:pubDate, :published, :dc_date, :issued],
         :urls =&gt; :link,
+        :enclosures =&gt; :enclosure,
         :description =&gt; [:description, :summary],
         :content =&gt; [:content, :content_encoded, :description],
         :title =&gt; :title,</diff>
      <filename>lib/parsers/simple-rss.rb</filename>
    </modified>
    <modified>
      <diff>@@ -163,7 +163,7 @@ module FeedNormalizer
     include Singular, ElementEquality, ElementCleaner, TimeFix, RewriteRelativeLinks
 
     HTML_ELEMENTS = [:content, :description, :title]
-    SIMPLE_ELEMENTS = [:date_published, :urls, :id, :authors, :copyright, :categories, :last_updated]
+    SIMPLE_ELEMENTS = [:date_published, :urls, :id, :authors, :copyright, :categories, :last_updated, :enclosures]
     BLENDED_ELEMENTS = []
 
     ELEMENTS = HTML_ELEMENTS + SIMPLE_ELEMENTS + BLENDED_ELEMENTS</diff>
      <filename>lib/structures.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,6 +35,7 @@ Slim fit through hip and thigh, with zip-fly with button-through closure. Machin
     &lt;/author&gt;
     &lt;title type=&quot;text/html&quot; mode=&quot;escaped&quot;&gt;&lt;![CDATA[FragranceNet.com Coupon]]&gt;&lt;/title&gt;
     &lt;link rel=&quot;alternate&quot; type=&quot;text/html&quot; href=&quot;http://www.cheapstingybargains.com/24556/fragrancenetcom-coupon/&quot; /&gt;
+    &lt;enclosure url=&quot;http://websrvr82il.audiovideoweb.com/ny60web16519/LTN/LawTechnologyNow/LawTechnologyNow_OCT08.mp3&quot; type=&quot;audio/mpeg&quot;/&gt;
     &lt;id&gt;http://www.cheapstingybargains.com/24556/fragrancenetcom-coupon/&lt;/id&gt;
     &lt;modified&gt;2006-08-29T02:21:08Z&lt;/modified&gt;
     &lt;issued&gt;2006-08-29T02:21:08Z&lt;/issued&gt;</diff>
      <filename>test/data/atom03.xml</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,7 @@
     &lt;updated&gt;2006-08-16T11:59:44-05:00&lt;/updated&gt;
     &lt;title type=&quot;html&quot;&gt;A forum on Rails&lt;/title&gt;
     &lt;link href=&quot;http://habtm.com/articles/2006/08/16/a-forum-on-rails&quot; rel=&quot;alternate&quot; type=&quot;text/html&quot;/&gt;
+    &lt;enclosure url=&quot;http://habtm.com/podcasts/2008-10-08.mp3&quot; type=&quot;audio/mpeg&quot;/&gt;
     &lt;category term=&quot;rails&quot; scheme=&quot;http://habtm.com/articles/category/rails&quot; label=&quot;rails&quot;/&gt;
     &lt;category term=&quot;ruby&quot; scheme=&quot;http://habtm.com/articles/category/ruby&quot; label=&quot;ruby&quot;/&gt;
     &lt;summary type=&quot;html&quot;&gt;&amp;lt;plaintext&amp;gt;&amp;lt;p&amp;gt;Josh Goebel and I took an evening to bang out a little project: &amp;lt;a href=&quot;http://beast.caboo.se/&quot;&amp;gt;Beast&amp;lt;/a&amp;gt;.  It&amp;amp;#8217;s our minimal no-fluff Rails forum.  It&amp;amp;#8217;s no beast of an application either, clocking in at 285 LOC and a 1:1.5 test ratio.  &amp;lt;a href=&quot;http://svn.techno-weenie.net/projects/beast/&quot;&amp;gt;Check it out&amp;lt;/a&amp;gt;!&amp;lt;/p&amp;gt;&lt;/summary&gt;
@@ -43,6 +44,7 @@
     &lt;updated&gt;2006-08-10T01:09:02-05:00&lt;/updated&gt;
     &lt;title type=&quot;html&quot;&gt;Starfish - Easy Distribution of Site Maintenance&lt;/title&gt;
     &lt;link href=&quot;http://habtm.com/articles/2006/08/10/starfish-easy-distribution-of-site-maintenance&quot; rel=&quot;alternate&quot; type=&quot;text/html&quot;/&gt;
+    &lt;enclosure url=&quot;http://websrvr82il.audiovideoweb.com/ny60web16519/LTN/LawTechnologyNow/LawTechnologyNow_OCT08.mp3&quot; type=&quot;audio/mpeg&quot;/&gt;
     &lt;summary type=&quot;html&quot;&gt;&amp;lt;p&amp;gt;Lots of Rails apps are very simple &amp;lt;span class=&quot;caps&quot;&amp;gt;CRUD&amp;lt;/span&amp;gt; mappings, which is something Rails excels at. But, as more and more large, complex sites go live with Rails, there is a demand for more complex &amp;amp;#8216;backend&amp;amp;#8217; components in the system. Already we&amp;amp;#8217;ve got &amp;lt;a href=&quot;http://brainspl.at/articles/2006/05/15/backgoundrb-initial-release&quot;&amp;gt;BackgrounDRB&amp;lt;/a&amp;gt;, which is great, but enter Starfish, which is a tool for complex distributed tasks made easy.&amp;lt;/p&amp;gt;&lt;/summary&gt;
     &lt;content type=&quot;html&quot;&gt;&amp;lt;p&amp;gt;Lots of Rails apps are very simple &amp;lt;span class=&quot;caps&quot;&amp;gt;CRUD&amp;lt;/span&amp;gt; mappings, which is something Rails excels at. But, as more and more large, complex sites go live with Rails, there is a demand for more complex &amp;amp;#8216;backend&amp;amp;#8217; components in the system. Already we&amp;amp;#8217;ve got &amp;lt;a href=&quot;http://brainspl.at/articles/2006/05/15/backgoundrb-initial-release&quot;&amp;gt;BackgrounDRB&amp;lt;/a&amp;gt;, which is great, but enter Starfish, which is a tool for complex distributed tasks made easy.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Lucas Carlson (a.k.a. cardmagic) and I have been using Starfish for various distributed tasks at &amp;lt;a href=&quot;http://mog.com&quot;&amp;gt;mog.com&amp;lt;/a&amp;gt; for awhile now. I&amp;amp;#8217;d like to show everyone how it works, as an incentive for Lucas to gem up the project and share it with the world.&amp;lt;/p&amp;gt;
 </diff>
      <filename>test/data/atom10.xml</filename>
    </modified>
    <modified>
      <diff>@@ -43,6 +43,7 @@
       &lt;description&gt;A Japanese scientist who invented a sustainable form of light is awarded the Millennium Technology Prize.&lt;/description&gt;
       &lt;content:encoded&gt;&lt;![CDATA[&lt;p&gt;test2&lt;/p&gt;]]&gt;&lt;/content:encoded&gt;
       &lt;link&gt;http://news.bbc.co.uk/go/rss/-/1/hi/technology/5328446.stm&lt;/link&gt;
+      &lt;enclosure url=&quot;http://websrvr60ny.audiovideoweb.com/ny60web16519/LTN/POA/POA_042905.mp3&quot; length=&quot;12619776&quot; type=&quot;audio/mpeg&quot;&gt;&lt;/enclosure&gt;
       &lt;guid isPermaLink=&quot;false&quot;&gt;http://news.bbc.co.uk/1/hi/technology/5328446.stm&lt;/guid&gt;
       &lt;pubDate&gt;Fri, 08 Sep 2006 16:18:08 GMT&lt;/pubDate&gt;
       &lt;category&gt;Technology&lt;/category&gt;</diff>
      <filename>test/data/rss20.xml</filename>
    </modified>
    <modified>
      <diff>@@ -221,8 +221,8 @@ class FeedNormalizerTest &lt; Test::Unit::TestCase
 
     Time.class_eval &quot;alias :old_to_s :to_s; def to_s(x=1); old_to_s; end&quot;
 
-    assert_equal &quot;Sat Sep 09 07:57:06 -0700 2006&quot;, feed.last_updated.to_s(:foo)
-    assert_equal &quot;Sat Sep 09 05:45:35 -0700 2006&quot;, feed.entries.first.date_published.to_s(:foo)
+    assert_equal &quot;Sat Sep 09 10:57:06 -0400 2006&quot;, feed.last_updated.to_s(:foo)
+    assert_equal &quot;Sat Sep 09 08:45:35 -0400 2006&quot;, feed.entries.first.date_published.to_s(:foo)
   end
 
   def test_atom03_has_issued</diff>
      <filename>test/test_feednormalizer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c1ccdb73f7bfefd3ba2c64983d840f4409daac01</id>
    </parent>
  </parents>
  <author>
    <name>Michael Berkowitz</name>
    <email>mikowitz@mikowitz.local</email>
  </author>
  <url>http://github.com/aasmith/feed-normalizer/commit/09a0bbf2504cf5a922cdeec480be49422cc06917</url>
  <id>09a0bbf2504cf5a922cdeec480be49422cc06917</id>
  <committed-date>2009-02-02T01:08:37-08:00</committed-date>
  <authored-date>2008-10-10T12:49:53-07:00</authored-date>
  <message>Added support for media enclosures in both parsers. Includes updated tests and test data.

Signed-off-by: aasmith &lt;andy@tinnedfruit.org&gt;</message>
  <tree>107140b00fab2d0de152d92777e6de13f8c76561</tree>
  <committer>
    <name>aasmith</name>
    <email>andy@tinnedfruit.org</email>
  </committer>
</commit>
