<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>lib/agree2/base.rb</filename>
    </added>
    <added>
      <filename>lib/agree2/proxy_collection.rb</filename>
    </added>
    <added>
      <filename>spec/agreement_spec.rb</filename>
    </added>
    <added>
      <filename>spec/proxy_collection_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,9 +1,30 @@
+require 'net/https'
+require 'rubygems'
+gem 'oauth', &quot;&gt;= 0.2.4&quot;
+gem 'hpricot'
+gem 'activesupport'
+require 'activesupport'
 require 'agree2/client'
+require 'agree2/proxy_collection'
 require 'agree2/user'
+require 'agree2/base'
 require 'agree2/agreement'
 require 'agree2/party'
 require 'agree2/template'
 
+
 module Agree2
   
-end
\ No newline at end of file
+end
+
+# FireEagle addition to the &lt;code&gt;OAuth::Consumer&lt;/code&gt; class. Taken from Yahoo FireEagle GEM
+class OAuth::Consumer
+  alias_method :create_http_with_verify, :create_http
+  # Monkey patch to silence the SSL warnings
+  def create_http_without_verify #:nodoc:
+    http_object             = create_http_with_verify
+    http_object.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri.scheme==&quot;https&quot;
+    http_object
+  end
+  alias_method :create_http, :create_http_without_verify
+end</diff>
      <filename>lib/agree2.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 module Agree2
-  class Agreement
+  class Agreement&lt;Base
+    attr_serializable :permalink,:title,:body,:created_at,:updated_at
     
   end
 end
\ No newline at end of file</diff>
      <filename>lib/agree2/agreement.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,3 @@
-require 'time'
-require 'net/https'
-require 'rubygems'
-gem 'oauth', &quot;&gt;= 0.2.4&quot;
 require 'oauth/consumer'
 
 module Agree2</diff>
      <filename>lib/agree2/client.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Agree2
-  class Party
+  class Party&lt;Base
     
   end
 end
\ No newline at end of file</diff>
      <filename>lib/agree2/party.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Agree2
-  class Template
+  class Template&lt;Agreement
     
   end
 end
\ No newline at end of file</diff>
      <filename>lib/agree2/template.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,10 +7,22 @@ module Agree2
       @token=OAuth::AccessToken.new @client.consumer,key,secret
     end
     
+    def agreements
+      @agreements||=Agree2::ProxyCollection.new self,:agreements
+    end
+    
+    def templates
+      @templates||=Agree2::ProxyCollection.new self,:masters,'Template'
+    end
+    
+    # OAuth Stuff below here
+    
+    # The AccessToken token
     def key
       @token.token
     end
     
+    # The AccessToken secret
     def secret
       @token.secret
     end</diff>
      <filename>lib/agree2/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,4 +14,15 @@ describe Agree2::User do
     @user.secret.should==&quot;token_secret&quot;
   end
   
+  it &quot;should find all agreements&quot; do
+    @agreements=[]
+    @xml=&quot;XML&quot;
+    @response={}
+    @response.stub!(:body).and_return(@xml)
+    @user.token.should_receive(:get).with(&quot;/agreements.xml&quot;).and_return(@response)
+    @user.agreements.should_receive(:parse_xml).with(@xml).and_return(@agreements)
+    @user.agreements.length.should==0
+    @user.agreements.should==@agreements
+  end
+  
 end
\ No newline at end of file</diff>
      <filename>spec/user_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0c520295d13a26d56d6d3bfaa19314f0262dde02</id>
    </parent>
  </parents>
  <author>
    <name>Pelle Braendgaard</name>
    <email>pelleb@gmail.com</email>
  </author>
  <url>http://github.com/pelle/agree2-client/commit/888fd3d655d20d8bd7dec7ce835427b48ebd4ef6</url>
  <id>888fd3d655d20d8bd7dec7ce835427b48ebd4ef6</id>
  <committed-date>2008-05-26T19:38:15-07:00</committed-date>
  <authored-date>2008-05-26T19:38:15-07:00</authored-date>
  <message>Added proxy collections and base to make it easier to create the model classes.</message>
  <tree>fa7a0b16c43258e972649bf00f1a1d76f3de1e31</tree>
  <committer>
    <name>Pelle Braendgaard</name>
    <email>pelleb@gmail.com</email>
  </committer>
</commit>
