<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/bloggerpost</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+== 0.0.4 / 2007-06-19
+
+* Add support for creating new entries in Blogger in GData::Blogger
+* Wrote example script at bin/bloggerpost for posting to Blogger.
+
 == 0.0.3 / 2007-04-07
 
 * Fix trivial, silly bug in binaries to now show the name</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ README.txt
 Rakefile
 bin/addenclosure
 bin/bloggerfeed
+bin/bloggerpost
 bin/gspreadsheet
 bin/removeenclosure
 lib/gdata.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@ Hoe.new('GData', GData::VERSION) do |p|
   p.summary = 'Google GData Ruby API'
   p.author = 'Dion Almaer'
   p.email = 'dion@almaer.com'
+  p.extra_deps &lt;&lt; ['builder', '&gt;=2.1.2']
 
   p.description = p.paragraphs_of('README.txt', 2..5).join(&quot;\n\n&quot;)
   p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 class GData
-  VERSION = '0.0.3'
+  VERSION = '0.0.4'
 end</diff>
      <filename>lib/gdata.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 require 'gdata/base'
+require 'builder'
 
 module GData
 
@@ -28,7 +29,7 @@ module GData
   
     def add_enclosure(enclosure_url, enclosure_length)
       raise &quot;An enclosure has already been added to this entry&quot; if enclosure?
-
+      # todo(stevejenson): replace with builder
       entry.search('//entry').append(%Q{&lt;link rel=&quot;enclosure&quot; type=&quot;audio/mpeg&quot; title=&quot;MP3&quot; href=&quot;#{enclosure_url}&quot; length=&quot;#{enclosure_length}&quot; /&gt;})
       save_entry
     end
@@ -46,6 +47,21 @@ module GData
       put(path, entry.to_s)
     end
 
+    # Creates a new entry with the given title and body
+    def entry(title, body)
+      x = Builder::XmlMarkup.new :indent =&gt; 2
+      x.entry 'xmlns' =&gt; 'http://www.w3.org/2005/Atom' do
+        x.title title, 'type' =&gt; 'text'
+        x.content 'type' =&gt; 'xhtml' do
+          x.div body, 'xmlns' =&gt; 'http://www.w3.org/1999/xhtml'
+        end
+      end
+      
+      @entry ||= x
+      path = &quot;/feeds/#{@blog_id}/posts/default&quot;
+      post(path, entry.to_s)
+    end
+
   end
 
 end</diff>
      <filename>lib/gdata/blogger.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5b1816b3b81d7a6d12cd22e7ba8c5d3c481b24e8</id>
    </parent>
  </parents>
  <author>
    <name>stevejenson</name>
    <email>stevejenson@3d76ca7b-2e8e-4910-8bb0-bc18f4d68cdf</email>
  </author>
  <url>http://github.com/dsisnero/gdata-ruby/commit/4d8d53cb1df64f8614b0967087611a0882f8fdac</url>
  <id>4d8d53cb1df64f8614b0967087611a0882f8fdac</id>
  <committed-date>2007-06-20T10:22:21-07:00</committed-date>
  <authored-date>2007-06-20T10:22:21-07:00</authored-date>
  <message>Adding support for posting new entries to Blogger.com


git-svn-id: http://gdata-ruby.rubyforge.org/svn@8 3d76ca7b-2e8e-4910-8bb0-bc18f4d68cdf</message>
  <tree>90de3e7f80cf06fff58b877a96c6a7c269f4cf80</tree>
  <committer>
    <name>stevejenson</name>
    <email>stevejenson@3d76ca7b-2e8e-4910-8bb0-bc18f4d68cdf</email>
  </committer>
</commit>
