<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,8 @@
-== 0.4.2 209-03-30
+== 0.4.5 2009-04-23
+* 1 minor update
+  * added message to the response object
+  
+== 0.4.2 2009-03-30
 * 2 minor changes
   * response code now returns an integer instead of a string (jqr)
   * rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack</diff>
      <filename>History</filename>
    </modified>
    <modified>
      <diff>@@ -4,8 +4,8 @@ require 'pp'
 
 # You can also use post, put, delete in the same fashion
 response = HTTParty.get('http://twitter.com/statuses/public_timeline.json')
-puts response.body, response.code, response.headers.inspect
+puts response.body, response.code, response.message, response.headers.inspect
 
 response.each do |item|
   puts item['user']['screen_name']
-end
\ No newline at end of file
+end</diff>
      <filename>examples/basic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -99,7 +99,7 @@ module HTTParty
             perform
           else
             parsed_response = parse_response(response.body)
-            Response.new(parsed_response, response.body, response.code, response.to_hash)
+            Response.new(parsed_response, response.body, response.code, response.message, response.to_hash)
           end
       end
       </diff>
      <filename>lib/httparty/request.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,13 @@
 module HTTParty
   class Response &lt; BlankSlate #:nodoc:
-    attr_accessor :body, :code, :headers
+    attr_accessor :body, :code, :message, :headers
     attr_reader :delegate
 
-    def initialize(delegate, body, code, headers={})
+    def initialize(delegate, body, code, message, headers={})
       @delegate = delegate
       @body = body
       @code = code.to_i
+      @message = message
       @headers = headers
     end
 </diff>
      <filename>lib/httparty/response.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 module HTTParty #:nodoc:
-  Version = '0.4.2'
+  Version = '0.4.3'
 end</diff>
      <filename>lib/httparty/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,8 @@ describe HTTParty::Response do
       @response_object = {'foo' =&gt; 'bar'}
       @body = &quot;{foo:'bar'}&quot;
       @code = '200'
-      @response = HTTParty::Response.new(@response_object, @body, @code)
+      @message = 'OK'
+      @response = HTTParty::Response.new(@response_object, @body, @code, @message)
     end
     
     it &quot;should set delegate&quot; do
@@ -24,20 +25,24 @@ describe HTTParty::Response do
     it &quot;should set code as a Fixnum&quot; do
       @response.code.should be_an_instance_of(Fixnum)
     end
+    
+    it &quot;should set body&quot; do
+      @response.body.should == @body
+    end
   end
   
   it &quot;should be able to set headers during initialization&quot; do
-    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200, {'foo' =&gt; 'bar'})
+    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200, 'OK', {'foo' =&gt; 'bar'})
     response.headers.should == {'foo' =&gt; 'bar'}
   end
   
   it &quot;should send missing methods to delegate&quot; do
-    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200)
+    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200, 'OK')
     response['foo'].should == 'bar'
   end
   
   it &quot;should be able to iterate delegate if it is array&quot; do
-    response = HTTParty::Response.new([{'foo' =&gt; 'bar'}, {'foo' =&gt; 'baz'}], &quot;[{foo:'bar'}, {foo:'baz'}]&quot;, 200)
+    response = HTTParty::Response.new([{'foo' =&gt; 'bar'}, {'foo' =&gt; 'baz'}], &quot;[{foo:'bar'}, {foo:'baz'}]&quot;, 200, 'OK')
     response.size.should == 2
     lambda {
       response.each { |item| }
@@ -45,12 +50,12 @@ describe HTTParty::Response do
   end
   
   xit &quot;should allow hashes to be accessed with dot notation&quot; do
-    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200)
+    response = HTTParty::Response.new({'foo' =&gt; 'bar'}, &quot;{foo:'bar'}&quot;, 200, 'OK')
     response.foo.should == 'bar'
   end
   
   xit &quot;should allow nested hashes to be accessed with dot notation&quot; do
-    response = HTTParty::Response.new({'foo' =&gt; {'bar' =&gt; 'baz'}}, &quot;{foo: {bar:'baz'}}&quot;, 200)
+    response = HTTParty::Response.new({'foo' =&gt; {'bar' =&gt; 'baz'}}, &quot;{foo: {bar:'baz'}}&quot;, 200, 'OK')
     response.foo.should == {'bar' =&gt; 'baz'}
     response.foo.bar.should == 'baz'
   end</diff>
      <filename>spec/httparty/response_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c69fe04ce19c4cd7867f8b260d3076de8b14326c</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/httparty/commit/309cd09ebe98054d34f89dc94c76a286fcecc5af</url>
  <id>309cd09ebe98054d34f89dc94c76a286fcecc5af</id>
  <committed-date>2009-04-23T08:28:36-07:00</committed-date>
  <authored-date>2009-04-23T08:28:36-07:00</authored-date>
  <message>Added message to the response object.</message>
  <tree>0952f198db2c4540cbc2350dd9702a4136c3b949</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
