Permalink
Browse files

Omit drive letter on Windows for dependencies.

  • Loading branch information...
1 parent a75b3c7 commit 179f7ea2f36a4123f54fd90263455ee5d220bcef Brian Ford committed Oct 18, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 rakelib/dependency_grapher.rb
@@ -114,9 +114,8 @@ def print_dependencies(out, max)
width = str.size
@dependencies.each do |name|
- # Fix for Windows drive letters. This string may
- # be frozen so we do not modify it inline.
- name = "/#{name[0, 1]}#{name[2..-1]}" if name[1] == ?:
+ # Omit drive letter on Windows.
+ name = name[2..-1] if name[1] == ?:
size = name.size + 1
if width + size > max

0 comments on commit 179f7ea

Please sign in to comment.