Permalink
Browse files

Emit paths without drive letters in dependency grapher.

  • Loading branch information...
1 parent e43bc22 commit 9527512ab47a3c88197a4d71a5eb998f7d8c93fd Brian Ford committed Oct 18, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 rakelib/dependency_grapher.rb
View
4 rakelib/dependency_grapher.rb
@@ -114,6 +114,10 @@ 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] == ?:
+
size = name.size + 1
if width + size > max
width = 0

0 comments on commit 9527512

Please sign in to comment.