<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/addenclosure</filename>
    </added>
    <added>
      <filename>bin/bloggerfeed</filename>
    </added>
    <added>
      <filename>bin/removeenclosure</filename>
    </added>
    <added>
      <filename>lib/gdata.rb</filename>
    </added>
    <added>
      <filename>lib/gdata/base.rb</filename>
    </added>
    <added>
      <filename>lib/gdata/blogger.rb</filename>
    </added>
    <added>
      <filename>lib/gdata/spreadsheet.rb</filename>
    </added>
    <added>
      <filename>test/test_gdata.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,9 @@
+== 0.0.2 / 2007-04-06
+
+* Finally get some of the simple stuff out there
+  * Blogger and Spreadsheet support
+  * Core GData::Base support
+
 == 0.0.1 / 2007-02-13
 
 * 1 major enhancement</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,12 @@ History.txt
 Manifest.txt
 README.txt
 Rakefile
+bin/addenclosure
+bin/bloggerfeed
 bin/gspreadsheet
-lib/gdata_ruby.rb
-test/test_gdata_ruby.rb
+bin/removeenclosure
+lib/gdata.rb
+lib/gdata/base.rb
+lib/gdata/blogger.rb
+lib/gdata/spreadsheet.rb
+test/test_gdata.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,19 @@
 
 require 'rubygems'
 require 'hoe'
-require './lib/gdata_ruby.rb'
+require './lib/gdata.rb'
 
-Hoe.new('GDataRuby', GDataRuby::VERSION) do |p|
+Hoe.new('GData', GData::VERSION) do |p|
   p.rubyforge_name = 'gdata-ruby'
   p.summary = 'Google GData Ruby API'
   p.author = 'Dion Almaer'
   p.email = 'dion@almaer.com'
 
-  # 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]
+  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]
   p.changes = p.paragraphs_of('History.txt', 0..1).join(&quot;\n\n&quot;)
+
+  #p.executables = %w(addenclosure bloggerfeed gspreadsheet removeenclosure)
 end
 
 # vim: syntax=Ruby</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,93 +1,18 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby -I../lib
+# --------------------------------------------------------------------------
+# gspreadsheet - given a formula, run it in google spreadsheets and show the result
+# --------------------------------------------------------------------------
 
-require 'net/http'
-require 'net/https'
-require 'uri'
-require 'rubygems'
-require 'hpricot'
+require 'gdata/spreadsheet'
 
-#
-# Make it east to use some of the convenience methods using https
-#
-module Net
-  class HTTPS &lt; HTTP
-    def initialize(address, port = nil)
-      super(address, port)
-      self.use_ssl = true
-    end
-  end
+unless ENV['GDATA_USER'] and ENV['GDATA_PASS']
+  puts &quot;$0 requires GDATA_USER and GDATA_PASS to be set&quot;
+  exit
 end
 
-class GoogleSpreadSheet
-  GOOGLE_LOGIN_URL = URI.parse('https://www.google.com/accounts/ClientLogin')
-
-  def initialize(spreadsheet_key)
-    @spreadsheet_key = spreadsheet_key
-    @headers = nil
-  end
-
-  def authenticate(email, password)
-    $VERBOSE = nil
-    response = Net::HTTPS.post_form(GOOGLE_LOGIN_URL,
-      {'Email'   =&gt; email,
-       'Passwd'  =&gt; password,
-       'source'  =&gt; &quot;formula&quot;,
-       'service' =&gt; 'wise' })
-    @headers = {
-     'Authorization' =&gt; &quot;GoogleLogin auth=#{response.body.split(/=/).last}&quot;,
-     'Content-Type'  =&gt; 'application/atom+xml'
-    }
-  end
-
-  def evaluate_cell(cell)
-    path = &quot;/feeds/cells/#{@spreadsheet_key}/1/#{@headers ? &quot;private&quot; : &quot;public&quot;}/basic/#{cell}&quot;
-
-    doc = Hpricot(request(path))
-    result = (doc/&quot;content[@type='text']&quot;).inner_html
-  end
-
-  def set_entry(entry)
-    path = &quot;/feeds/cells/#{@spreadsheet_key}/1/#{@headers ? 'private' : 'public'}/full&quot;
-
-    post(path, entry)
-  end
-
-  def entry(formula, row=1, col=1)
-    &lt;&lt;XML
-&lt;entry xmlns='http://www.w3.org/2005/Atom' xmlns:gs='http://schemas.google.com/spreadsheets/2006'&gt;
-  &lt;gs:cell row='#{row}' col='#{col}' inputValue='=#{formula}' /&gt;
-&lt;/entry&gt;
-XML
-  end
-
-  def add_to_cell(formula)
-    #puts entry(formula)
-    set_entry(entry(formula))
-  end
-
-  private
-  def request(path)
-    response, data = get_http.get(path, @headers)
-    data
-  end
-
-  def post(path, entry)
-    get_http.post(path, entry, @headers)
-  end
-
-  def get_http
-    http = Net::HTTP.new('spreadsheets.google.com', 80)
-    #http.set_debug_output $stderr
-    http
-  end
-end
-
-if __FILE__ == $0 
-  formula = ARGV.first || 'sin(0.2)'
+formula = ARGV.first or 'sin(0.2)'
   
-  gs = GoogleSpreadSheet.new('pSYwzniwpzSFfn0KFRg9oWA')
-  gs.authenticate('dalmaer@gmail.com', 'vi!google')
-  gs.add_to_cell formula
-  puts gs.evaluate_cell('A1')
-end
-
+gs = GData::Spreadsheet.new('pSYwzniwpzSFfn0KFRg9oWA')
+gs.authenticate(ENV['GDATA_USER'], ENV['GDATA_PASS'])
+gs.add_to_cell formula
+puts gs.evaluate_cell('A1')</diff>
      <filename>bin/gspreadsheet</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/gdata_ruby.rb</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0.gem</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0.tgz</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/History.txt</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/Manifest.txt</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/README.txt</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/Rakefile</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/bin/gspreadsheet</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/lib/gdata_ruby.rb</filename>
    </removed>
    <removed>
      <filename>pkg/GDataRuby-1.0.0/test/test_gdata_ruby.rb</filename>
    </removed>
    <removed>
      <filename>test/test_gdata_ruby.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>e81d40511e41eb13b1248398326641565a8e1b52</id>
    </parent>
  </parents>
  <author>
    <name>dion</name>
    <email>dion@3d76ca7b-2e8e-4910-8bb0-bc18f4d68cdf</email>
  </author>
  <url>http://github.com/dsisnero/gdata-ruby/commit/5cf53516b6fb2e3107eeb1641514f9e1efb3d468</url>
  <id>5cf53516b6fb2e3107eeb1641514f9e1efb3d468</id>
  <committed-date>2007-04-06T18:44:19-07:00</committed-date>
  <authored-date>2007-04-06T18:44:19-07:00</authored-date>
  <message>update to full 0.0.2 version

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