<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/core_extensions.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -13,7 +13,7 @@ Echoe.new(ProjectName, HTTParty::Version) do |p|
   p.url             = &quot;http://#{ProjectName}.rubyforge.org&quot;
   p.author          = &quot;John Nunemaker&quot;
   p.email           = &quot;nunemaker@gmail.com&quot;
-  p.extra_deps      = [['activesupport', '&gt;= 2.1']]
+  p.extra_deps      = [['json', '~&gt; 1.1']]
   p.need_tar_gz     = false
   p.docs_host       = WebsitePath
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -5,8 +5,8 @@ require 'net/https'
 require 'rubygems'
 gem 'json', '&gt;= 1.1.3'
 require 'json'
-require 'active_support'
 require 'module_level_inheritable_attributes'
+require 'core_extensions'
 
 module HTTParty  
   AllowedFormats = {:xml =&gt; 'text/xml', :json =&gt; 'application/json', :html =&gt; 'text/html'}
@@ -18,7 +18,7 @@ module HTTParty
     base.instance_variable_set(&quot;@default_options&quot;, {})
   end
   
-  module ClassMethods    
+  module ClassMethods
     def default_options
       @default_options
     end</diff>
      <filename>lib/httparty.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,8 +5,11 @@ module HTTParty
     # Makes it so uri is sure to parse stuff like google.com without the http
     def self.normalize_base_uri(url) #:nodoc:
       use_ssl = (url =~ /^https/) || url.include?(':443')
-      url.chop! if url.ends_with?('/')
+      ends_with_slash = url =~ /\/$/
+      
+      url.chop! if ends_with_slash
       url.gsub!(/^https?:\/\//i, '')
+      
       &quot;http#{'s' if use_ssl}://#{url}&quot;
     end
     </diff>
      <filename>lib/httparty/request.rb</filename>
    </modified>
    <modified>
      <diff>@@ -84,7 +84,7 @@ describe HTTParty::Request do
 
     def setup_ok_response
       @ok = Net::HTTPOK.new(&quot;1.1&quot;, 200, &quot;Content for you&quot;)
-      @ok.stub!(:body).and_return({&quot;foo&quot; =&gt; &quot;bar&quot;}.to_xml)
+      @ok.stub!(:body).and_return('&lt;hash&gt;&lt;foo&gt;bar&lt;/foo&gt;&lt;/hash&gt;')
       @http.should_receive(:request).and_return(@redirect, @ok)
       @request.options[:format] = :xml
     end</diff>
      <filename>spec/httparty/request_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,9 +7,9 @@ def file_fixture(filename)
   open(File.join(File.dirname(__FILE__), 'fixtures', &quot;#{filename.to_s}&quot;)).read
 end
 
-def stub_http_response_with(fixture_name)
-  format = fixture_name.split('.').last.intern
-  data = file_fixture(fixture_name)
+def stub_http_response_with(filename)
+  format = filename.split('.').last.intern
+  data = file_fixture(filename)
   http = Net::HTTP.new('localhost', 80)
   
   response = Net::HTTPOK.new(&quot;1.1&quot;, 200, &quot;Content for you&quot;)</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c0ad5dece3d15f8549f5292ad678c7b18a939ccb</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/httparty/commit/8a70a8ef40531def06c950bfb4902abc774b5b31</url>
  <id>8a70a8ef40531def06c950bfb4902abc774b5b31</id>
  <committed-date>2008-12-06T19:47:39-08:00</committed-date>
  <authored-date>2008-12-06T19:47:01-08:00</authored-date>
  <message>Removed active support. Added json. Added some core extensions.</message>
  <tree>6582b0e9f859367edefabd93c2aaa7f1ff7f55cc</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
