<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/amazon.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -28,7 +28,7 @@ class Status
 	element :in_reply_to_status_id, Integer
 	element :in_reply_to_user_id, Integer
 	element :favorited, Boolean
-	element :user, User, :single =&gt; true
+	has_one :user, User
 end
 
 statuses = Status.parse(file_contents)</diff>
      <filename>examples/twitter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,10 @@ module HappyMapper
     
     Types = [String, Float, Time, Date, DateTime, Integer, Boolean]
     
+    # options:
+    #   :deep   =&gt;  Boolean False to only parse element's children, True to include
+    #               grandchildren and all others down the chain (// in expath)
+    #   :single =&gt;  Boolean False if object should be collection, True for single object
     def initialize(name, type, o={})
       self.name, self.type, self.tag = name, type, o.delete(:tag) || name.to_s
       self.options = {:single =&gt; false, :deep =&gt; false}.merge(o)</diff>
      <filename>lib/happymapper/item.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c15b01e8ac121c7bedbb59fc31b90c515c556d83</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/happymapper/commit/01f1337c1b0c9a84ec1875a9c51ef28f89a29b8a</url>
  <id>01f1337c1b0c9a84ec1875a9c51ef28f89a29b8a</id>
  <committed-date>2008-11-16T22:25:52-08:00</committed-date>
  <authored-date>2008-11-16T22:25:52-08:00</authored-date>
  <message>Added amazon example. Added some docs for Item options. Updated twitter example to use has_one.</message>
  <tree>3d21328684aa95d0a50a6106379823e81866eea3</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
