<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -218,12 +218,15 @@ module Addressable
       path = path.to_str.strip
 
       path.gsub!(/^file:\/?\/?/, &quot;&quot;) if path =~ /^file:\/?\/?/
-      path = &quot;/&quot; + path if path =~ /^([a-zA-Z])(\||:)/
+      path = &quot;/&quot; + path if path =~ /^([a-zA-Z])[\|:]/
       uri = self.parse(path)
 
+      puts uri.path.inspect
       if uri.scheme == nil
         # Adjust windows-style uris
-        uri.path.gsub!(/^\/?([a-zA-Z])\|(\\|\/)/, &quot;/\\1:/&quot;)
+        uri.path.gsub!(/^\/?([a-zA-Z])[\|:][\\\/]/) do
+          &quot;/#{$1.downcase}:/&quot;
+        end
         uri.path.gsub!(/\\/, &quot;/&quot;)
         if File.exists?(uri.path) &amp;&amp;
             File.stat(uri.path).directory?</diff>
      <filename>lib/addressable/uri.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3343,25 +3343,25 @@ describe Addressable::URI, &quot;when converting a bogus path&quot; do
   end
 end
 
-describe Addressable::URI, &quot;when given the root directory&quot; do
+describe Addressable::URI, &quot;when given a UNIX root directory&quot; do
   before do
-    if RUBY_PLATFORM =~ /mswin/
-      @path = &quot;C:\\&quot;
-    else
-      @path = &quot;/&quot;
-    end
+    @path = &quot;/&quot;
   end
 
-  if RUBY_PLATFORM =~ /mswin/
-    it &quot;should convert to \'file:///c:/\'&quot; do
-      @uri = Addressable::URI.convert_path(@path)
-      @uri.to_str.should == &quot;file:///c:/&quot;
-    end
-  else
-    it &quot;should convert to \'file:///\'&quot; do
-      @uri = Addressable::URI.convert_path(@path)
-      @uri.to_str.should == &quot;file:///&quot;
-    end
+  it &quot;should convert to \'file:///\'&quot; do
+    @uri = Addressable::URI.convert_path(@path)
+    @uri.to_str.should == &quot;file:///&quot;
+  end
+end
+
+describe Addressable::URI, &quot;when given a Windows root directory&quot; do
+  before do
+    @path = &quot;C:\\&quot;
+  end
+
+  it &quot;should convert to \'file:///c:/\'&quot; do
+    @uri = Addressable::URI.convert_path(@path)
+    @uri.to_str.should == &quot;file:///c:/&quot;
   end
 end
 </diff>
      <filename>spec/addressable/uri_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b5fb3f34bf3a4ec60bb57e538aece5876fab4702</id>
    </parent>
  </parents>
  <author>
    <name>Bob Aman</name>
    <email>bob@sporkmonger.com</email>
  </author>
  <url>http://github.com/sporkmonger/addressable/commit/23e475086046964413936a2e4ecdb7285ce6b5c6</url>
  <id>23e475086046964413936a2e4ecdb7285ce6b5c6</id>
  <committed-date>2009-11-01T14:22:42-08:00</committed-date>
  <authored-date>2009-11-01T14:22:42-08:00</authored-date>
  <message>Fixed issue with spec failures in Windows.</message>
  <tree>1df9eca9b40670e1b4c80641904f2f31b12510d9</tree>
  <committer>
    <name>Bob Aman</name>
    <email>bob@sporkmonger.com</email>
  </committer>
</commit>
