<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ class Pickler
   class Tracker
 
     ADDRESS = 'www.pivotaltracker.com'
-    BASE_PATH = '/services/v1'
+    BASE_PATH = '/services/v2'
     SEARCH_KEYS = %w(label type state requester owner mywork id includedone)
 
     class Error &lt; Pickler::Error; end
@@ -51,7 +51,7 @@ class Pickler
     def request_xml(method, path, *args)
       response = request(method,path,*args)
       raise response.inspect if response[&quot;Content-type&quot;].split(/; */).first != &quot;application/xml&quot;
-      hash = Hash.from_xml(response.body)[&quot;response&quot;]
+      hash = Hash.from_xml(response.body)
       if hash[&quot;message&quot;] &amp;&amp; (response.code.to_i &gt;= 400 || hash[&quot;success&quot;] == &quot;false&quot;)
         raise Error, hash[&quot;message&quot;], caller
       end
@@ -63,7 +63,7 @@ class Pickler
     end
 
     def project(id)
-      Project.new(self,get_xml(&quot;/projects/#{id}&quot;)[&quot;project&quot;].merge(&quot;id&quot; =&gt; id.to_i))
+      Project.new(self,get_xml(&quot;/projects/#{id}&quot;)[&quot;project&quot;])
     end
 
     class Abstract</diff>
      <filename>lib/pickler/tracker.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,11 @@ class Pickler
     class Note &lt; Abstract
       attr_reader :story
       reader :text, :author
-      date_reader :date
+      date_reader :noted_at
+
+      def date
+        noted_at &amp;&amp; Date.new(noted_at.year, noted_at.mon, noted_at.day)
+      end
 
       def initialize(story, attributes = {})
         @story = story</diff>
      <filename>lib/pickler/tracker/note.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ class Pickler
         path = &quot;/projects/#{id}/stories&quot;
         path &lt;&lt; &quot;?filter=#{CGI.escape(filter)}&quot; if filter
         response = tracker.get_xml(path)
-        [response[&quot;stories&quot;][&quot;story&quot;]].flatten.compact.map {|s| Story.new(self,s)}
+        [response[&quot;stories&quot;]].flatten.compact.map {|s| Story.new(self,s)}
       end
 
       def new_story(attributes = {}, &amp;block)</diff>
      <filename>lib/pickler/tracker/project.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ describe Pickler::Tracker::Note do
 
   before do
     @text = &quot;&quot;
-    @note = Pickler::Tracker::Note.new(nil, :date =&gt; &quot;Jan 2, 2008&quot;, :text =&gt; @text)
+    @note = Pickler::Tracker::Note.new(nil, :noted_at =&gt; Time.utc(2008, 1, 2), :text =&gt; @text)
   end
 
   it &quot;should have a date&quot; do</diff>
      <filename>spec/pickler/tracker/note_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ Spec::Runner.configure do |config|
         response = Net::HTTPOK.new(&quot;1.1&quot;,&quot;200&quot;,&quot;OK&quot;)
         response.instance_variable_set(:@body, File.read(file))
         response.add_field &quot;Content-type&quot;, &quot;application/xml&quot;
-        url = &quot;http://www.pivotaltracker.com/services/v1/#{file.sub(/\.xml$/,'')}&quot;
+        url = &quot;http://www.pivotaltracker.com/services/v2/#{file.sub(/\.xml$/,'')}&quot;
         FakeWeb.register_uri(url, :response =&gt; response)
       end
     end</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,8 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;response success=&quot;true&quot;&gt;
-  &lt;project&gt;
-    &lt;name&gt;Sample Project&lt;/name&gt;
-    &lt;iteration_length type=&quot;integer&quot;&gt;2&lt;/iteration_length&gt;
-    &lt;week_start_day&gt;Monday&lt;/week_start_day&gt;
-    &lt;point_scale&gt;0,1,2,3&lt;/point_scale&gt;
-  &lt;/project&gt;
-&lt;/response&gt;
+&lt;project&gt;
+  &lt;id&gt;1&lt;/id&gt;
+  &lt;name&gt;Sample Project&lt;/name&gt;
+  &lt;iteration_length type=&quot;integer&quot;&gt;2&lt;/iteration_length&gt;
+  &lt;week_start_day&gt;Monday&lt;/week_start_day&gt;
+  &lt;point_scale&gt;0,1,2,3&lt;/point_scale&gt;
+&lt;/project&gt;</diff>
      <filename>spec/tracker/projects/1.xml</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1,26 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;response success=&quot;true&quot;&gt;
-  &lt;stories count=&quot;1&quot;&gt;
-    &lt;story&gt;
-      &lt;id type=&quot;integer&quot;&gt;1&lt;/id&gt;
-      &lt;story_type&gt;feature&lt;/story_type&gt;
-      &lt;url&gt;http://www.pivotaltracker.com/story/show/1&lt;/url&gt;
-      &lt;estimate type=&quot;integer&quot;&gt;1&lt;/estimate&gt;
-      &lt;current_state&gt;accepted&lt;/current_state&gt;
-      &lt;description&gt;&lt;/description&gt;
-      &lt;name&gt;More power to shields&lt;/name&gt;
-      &lt;requested_by&gt;James Kirk&lt;/requested_by&gt;
-      &lt;owned_by&gt;Montgomery Scott&lt;/owned_by&gt;
-      &lt;created_at&gt;Sep 16, 2008&lt;/created_at&gt;
-      &lt;accepted_at&gt;Sep 16, 2008&lt;/accepted_at&gt;
-      &lt;iteration&gt;
-        &lt;number&gt;1&lt;/number&gt;
-        &lt;start&gt;Sep 15, 2008&lt;/start&gt;
-        &lt;finish&gt;Sep 29, 2008&lt;/finish&gt;
-      &lt;/iteration&gt;
-    &lt;/story&gt;
-  &lt;/stories&gt;
-&lt;/response&gt;
+&lt;stories count=&quot;1&quot;&gt;
+  &lt;story&gt;
+    &lt;id type=&quot;integer&quot;&gt;1&lt;/id&gt;
+    &lt;story_type&gt;feature&lt;/story_type&gt;
+    &lt;url&gt;http://www.pivotaltracker.com/story/show/1&lt;/url&gt;
+    &lt;estimate type=&quot;integer&quot;&gt;1&lt;/estimate&gt;
+    &lt;current_state&gt;accepted&lt;/current_state&gt;
+    &lt;description&gt;&lt;/description&gt;
+    &lt;name&gt;More power to shields&lt;/name&gt;
+    &lt;requested_by&gt;James Kirk&lt;/requested_by&gt;
+    &lt;owned_by&gt;Montgomery Scott&lt;/owned_by&gt;
+    &lt;created_at type=&quot;datetime&quot;&gt;2008/12/10 00:00:00 UTC&lt;/created_at&gt;
+    &lt;accepted_at type=&quot;datetime&quot;&gt;2008/12/10 00:00:00 UTC&lt;/accepted_at&gt;
+    &lt;iteration&gt;
+      &lt;number&gt;1&lt;/number&gt;
+      &lt;start type=&quot;datetime&quot;&gt;2008/09/15 00:00:02 UTC&lt;/start&gt;
+      &lt;finish type=&quot;datetime&quot;&gt;2008/09/29 00:00:02 UTC&lt;/finish&gt;
+    &lt;/iteration&gt;
+    &lt;iteration&gt;
+      &lt;number&gt;1&lt;/number&gt;
+      &lt;start&gt;Sep 15, 2008&lt;/start&gt;
+      &lt;finish&gt;Sep 29, 2008&lt;/finish&gt;
+    &lt;/iteration&gt;
+  &lt;/story&gt;
+&lt;/stories&gt;</diff>
      <filename>spec/tracker/projects/1/stories.xml</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,20 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;response success=&quot;true&quot;&gt;
-  &lt;story&gt;
-    &lt;id type=&quot;integer&quot;&gt;1&lt;/id&gt;
-    &lt;story_type&gt;feature&lt;/story_type&gt;
-    &lt;url&gt;http://www.pivotaltracker.com/story/show/1&lt;/url&gt;
-    &lt;estimate type=&quot;integer&quot;&gt;1&lt;/estimate&gt;
-    &lt;current_state&gt;accepted&lt;/current_state&gt;
-    &lt;description&gt;&lt;/description&gt;
-    &lt;name&gt;More power to shields&lt;/name&gt;
-    &lt;requested_by&gt;James Kirk&lt;/requested_by&gt;
-    &lt;owned_by&gt;Montgomery Scott&lt;/owned_by&gt;
-    &lt;created_at&gt;Sep 16, 2008&lt;/created_at&gt;
-    &lt;accepted_at&gt;Sep 16, 2008&lt;/accepted_at&gt;
-    &lt;iteration&gt;
-      &lt;number&gt;1&lt;/number&gt;
-      &lt;start&gt;Sep 15, 2008&lt;/start&gt;
-      &lt;finish&gt;Sep 29, 2008&lt;/finish&gt;
-    &lt;/iteration&gt;
-  &lt;/story&gt;
-&lt;/response&gt;
+&lt;story&gt;
+  &lt;id type=&quot;integer&quot;&gt;STORY_ID&lt;/id&gt;
+  &lt;story_type&gt;feature&lt;/story_type&gt;
+  &lt;url&gt;http://www.pivotaltracker.com/story/show/STORY_ID&lt;/url&gt;
+  &lt;estimate type=&quot;integer&quot;&gt;1&lt;/estimate&gt;
+  &lt;current_state&gt;accepted&lt;/current_state&gt;
+  &lt;description&gt;&lt;/description&gt;
+  &lt;name&gt;More power to shields&lt;/name&gt;
+  &lt;requested_by&gt;James Kirk&lt;/requested_by&gt;
+  &lt;owned_by&gt;Montgomery Scott&lt;/owned_by&gt;
+  &lt;created_at type=&quot;datetime&quot;&gt;2008/12/10 00:00:00 UTC&lt;/created_at&gt;
+  &lt;accepted_at type=&quot;datetime&quot;&gt;2008/12/10 00:00:00 UTC&lt;/accepted_at&gt;
+  &lt;iteration&gt;
+    &lt;number&gt;1&lt;/number&gt;
+    &lt;start type=&quot;datetime&quot;&gt;2008/09/15 00:00:02 UTC&lt;/start&gt;
+    &lt;finish type=&quot;datetime&quot;&gt;2008/09/29 00:00:02 UTC&lt;/finish&gt;
+  &lt;/iteration&gt;
+  &lt;labels&gt;label 1,label 2,label 3&lt;/labels&gt;
+&lt;/story&gt;</diff>
      <filename>spec/tracker/projects/1/stories/1.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e0c4cdbe455d2260e21fbe60db4c9b372b4d381b</id>
    </parent>
  </parents>
  <author>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </author>
  <url>http://github.com/tpope/pickler/commit/7ca89bd67da765f73a532d20e118cdfddb5848b6</url>
  <id>7ca89bd67da765f73a532d20e118cdfddb5848b6</id>
  <committed-date>2009-03-07T15:03:35-08:00</committed-date>
  <authored-date>2009-03-03T20:25:57-08:00</authored-date>
  <message>Upgrade to v2 of the API</message>
  <tree>def6a4fc9768bb59d4474416746aeaaf31df3afd</tree>
  <committer>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </committer>
</commit>
