<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+== 0.2.5 2009-01-05
+* 1 major enhancement
+  * Add command line interface to HTTParty (Alex Vollmer)
+  
 == 0.2.4 2008-12-23
 * 1 bug fix
   * Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)</diff>
      <filename>History</filename>
    </modified>
    <modified>
      <diff>@@ -59,17 +59,38 @@ if ARGV.empty?
   STDERR.puts &quot;USAGE: #{$0} [options] [url]&quot;
 end
 
-response = HTTParty.send(opts[:action], ARGV.first, opts)
+# 1.8.6 has mistyping of transitive in if statement
+module REXML
+  class Document &lt; Element
+    def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
+      if xml_decl.encoding != &quot;UTF-8&quot; &amp;&amp; !output.kind_of?(Output)
+        output = Output.new( output, xml_decl.encoding )
+      end
+      formatter = if indent &gt; -1
+          if transitive
+            REXML::Formatters::Transitive.new( indent, ie_hack )
+          else
+            REXML::Formatters::Pretty.new( indent, ie_hack )
+          end
+        else
+          REXML::Formatters::Default.new( ie_hack )
+        end
+      formatter.write( self, output )
+		end
+  end
+end
+
+response = HTTParty.send(opts[:action], ARGV.first, opts.merge(:format =&gt; :plain))
 
 if opts[:pretty_print]
-  response.delete('_body')
   pp response
 else
   case opts[:format]
   when :json
-    puts JSON.pretty_generate(response['_body'])
+    puts JSON.pretty_generate(JSON.parse(response))
   when :xml
-    REXML::Document.new(response['_body']).write(STDOUT, 2)
+    REXML::Document.new(response).write(STDOUT, 2)
+    puts
   else
     puts response
   end</diff>
      <filename>bin/httparty</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,18 @@
+# -*- encoding: utf-8 -*-
+
 Gem::Specification.new do |s|
   s.name = %q{httparty}
-  s.version = &quot;0.2.4&quot;
+  s.version = &quot;0.2.5&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 1.2&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;John Nunemaker&quot;]
-  s.date = %q{2008-12-23}
+  s.date = %q{2009-01-05}
+  s.default_executable = %q{httparty}
   s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
   s.email = %q{nunemaker@gmail.com}
-  s.extra_rdoc_files = [&quot;lib/core_extensions.rb&quot;, &quot;lib/httparty/exceptions.rb&quot;, &quot;lib/httparty/request.rb&quot;, &quot;lib/httparty/version.rb&quot;, &quot;lib/httparty.rb&quot;, &quot;lib/module_level_inheritable_attributes.rb&quot;, &quot;README&quot;]
-  s.files = [&quot;examples/aaws.rb&quot;, &quot;examples/basic.rb&quot;, &quot;examples/delicious.rb&quot;, &quot;examples/google.rb&quot;, &quot;examples/rubyurl.rb&quot;, &quot;examples/twitter.rb&quot;, &quot;examples/whoismyrep.rb&quot;, &quot;History&quot;, &quot;httparty.gemspec&quot;, &quot;lib/core_extensions.rb&quot;, &quot;lib/httparty/exceptions.rb&quot;, &quot;lib/httparty/request.rb&quot;, &quot;lib/httparty/version.rb&quot;, &quot;lib/httparty.rb&quot;, &quot;lib/module_level_inheritable_attributes.rb&quot;, &quot;Manifest&quot;, &quot;MIT-LICENSE&quot;, &quot;Rakefile&quot;, &quot;README&quot;, &quot;setup.rb&quot;, &quot;spec/as_buggery_spec.rb&quot;, &quot;spec/fixtures/delicious.xml&quot;, &quot;spec/fixtures/google.html&quot;, &quot;spec/fixtures/twitter.json&quot;, &quot;spec/fixtures/twitter.xml&quot;, &quot;spec/httparty/request_spec.rb&quot;, &quot;spec/httparty_spec.rb&quot;, &quot;spec/spec.opts&quot;, &quot;spec/spec_helper.rb&quot;, &quot;website/css/common.css&quot;, &quot;website/index.html&quot;]
+  s.executables = [&quot;httparty&quot;]
+  s.extra_rdoc_files = [&quot;bin/httparty&quot;, &quot;lib/core_extensions.rb&quot;, &quot;lib/httparty/exceptions.rb&quot;, &quot;lib/httparty/request.rb&quot;, &quot;lib/httparty/version.rb&quot;, &quot;lib/httparty.rb&quot;, &quot;lib/module_level_inheritable_attributes.rb&quot;, &quot;README&quot;]
+  s.files = [&quot;bin/httparty&quot;, &quot;examples/aaws.rb&quot;, &quot;examples/basic.rb&quot;, &quot;examples/delicious.rb&quot;, &quot;examples/google.rb&quot;, &quot;examples/rubyurl.rb&quot;, &quot;examples/twitter.rb&quot;, &quot;examples/whoismyrep.rb&quot;, &quot;History&quot;, &quot;httparty.gemspec&quot;, &quot;lib/core_extensions.rb&quot;, &quot;lib/httparty/exceptions.rb&quot;, &quot;lib/httparty/request.rb&quot;, &quot;lib/httparty/version.rb&quot;, &quot;lib/httparty.rb&quot;, &quot;lib/module_level_inheritable_attributes.rb&quot;, &quot;Manifest&quot;, &quot;MIT-LICENSE&quot;, &quot;Rakefile&quot;, &quot;README&quot;, &quot;setup.rb&quot;, &quot;spec/as_buggery_spec.rb&quot;, &quot;spec/fixtures/delicious.xml&quot;, &quot;spec/fixtures/google.html&quot;, &quot;spec/fixtures/twitter.json&quot;, &quot;spec/fixtures/twitter.xml&quot;, &quot;spec/httparty/request_spec.rb&quot;, &quot;spec/httparty_spec.rb&quot;, &quot;spec/spec.opts&quot;, &quot;spec/spec_helper.rb&quot;, &quot;website/css/common.css&quot;, &quot;website/index.html&quot;]
   s.has_rdoc = true
   s.homepage = %q{http://httparty.rubyforge.org}
   s.post_install_message = %q{When you HTTParty, you must party hard!}</diff>
      <filename>httparty.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 module HTTParty
-  Version = '0.2.4'
+  Version = '0.2.5'
 end</diff>
      <filename>lib/httparty/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5615a4ba05e2d3b702faff84ad8b6f8d4323771d</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/httparty/commit/78f0c846d89ab53c3730b059aa75ae1ea53abb2b</url>
  <id>78f0c846d89ab53c3730b059aa75ae1ea53abb2b</id>
  <committed-date>2009-01-04T22:46:36-08:00</committed-date>
  <authored-date>2009-01-04T22:46:36-08:00</authored-date>
  <message>Prepped for 0.2.5 release.</message>
  <tree>c75b0a088905b8c76e73d610fdf6461c1d058714</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
