Skip to content
Browse files

Fix urlification on windows, stupid drive letters.

  • Loading branch information...
1 parent 8982301 commit 823408d753bf5fdbde3b96847b5acac02eb068e5 @jcrossley3 jcrossley3 committed Aug 10, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/torquespec/as7.rb
  2. +1 −1 lib/torquespec/version.rb
View
3 lib/torquespec/as7.rb
@@ -58,7 +58,8 @@ def api(params)
end
def urlify(path)
- URI.parse(path).scheme.nil? ? "file:#{path}" : path
+ uri = URI.parse(path)
+ uri.scheme.nil? || uri.scheme =~ /^[a-zA-Z]$/ ? "file:#{path}" : path
end
def addressify(path)
View
2 lib/torquespec/version.rb
@@ -1,3 +1,3 @@
module TorqueSpec
- VERSION = "0.3.9.i"
+ VERSION = "0.4.0"
end

0 comments on commit 823408d

Please sign in to comment.
Something went wrong with that request. Please try again.