<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,14 @@
 dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
 require File.join(dir, 'httparty')
+require 'pp'
 
 class Rubyurl
   include HTTParty
   base_uri 'rubyurl.com'
 
-  def self.shorten(website_url)
-    xml = post('/api/links.json', :query =&gt; {'link[website_url]' =&gt; website_url})
-    xml['link'] &amp;&amp; xml['link']['permalink']
+  def self.shorten( website_url )
+    post( '/api/links.json', :query =&gt; { :link =&gt; { :website_url =&gt; website_url } } )
   end
 end
 
-puts Rubyurl.shorten( 'http://istwitterdown.com/' ).inspect
+pp Rubyurl.shorten( 'http://istwitterdown.com/' )</diff>
      <filename>examples/rubyurl.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,4 +28,4 @@ twitter = Twitter.new(config['email'], config['password'])
 pp twitter.timeline
 # pp twitter.timeline(:friends, :query =&gt; {:since_id =&gt; 868482746})
 # pp twitter.timeline(:friends, :query =&gt; 'since_id=868482746')
-pp twitter.post('this is a test of 0.2.0')
\ No newline at end of file
+# pp twitter.post('this is a test of 0.2.0')
\ No newline at end of file</diff>
      <filename>examples/twitter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,4 +6,5 @@ class Rep
   include HTTParty
 end
 
-puts Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544').inspect
\ No newline at end of file
+pp Rep.get('http://whoismyrepresentative.com/whoismyrep.php?zip=46544')
+pp Rep.get('http://whoismyrepresentative.com/whoismyrep.php', :query =&gt; {:zip =&gt; 46544})
\ No newline at end of file</diff>
      <filename>examples/whoismyrep.rb</filename>
    </modified>
    <modified>
      <diff>@@ -322,7 +322,7 @@ class Hash
     elsif value.is_a?(Hash)
       stack &lt;&lt; [key,value]
     else
-      param &lt;&lt; &quot;#{key}=#{URI.encode(value)}&amp;&quot;
+      param &lt;&lt; &quot;#{key}=#{URI.encode(value.to_s)}&amp;&quot;
     end
 
     stack.each do |parent, hash|</diff>
      <filename>lib/core_extensions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0b5579783ad7865b88337fc50ef72b01fa525bf9</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/httparty/commit/05c388dc72895cd0719a030269cf9c54966d6f2c</url>
  <id>05c388dc72895cd0719a030269cf9c54966d6f2c</id>
  <committed-date>2008-12-06T20:54:40-08:00</committed-date>
  <authored-date>2008-12-06T20:54:40-08:00</authored-date>
  <message>Added to_s when doing Hash#to_param so that numbers don't throw error when then get encoded.</message>
  <tree>eaf8a70864b276ce5202902840debef3591b94c7</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
