lib/pa/util.rb in pa-1.2.1 vs lib/pa/util.rb in pa-1.2.2
- old
+ new
@@ -29,8 +29,13 @@
end
def win32?
RUBY_PLATFORM =~ /mingw32|mswin/
end
+
+ # join(".", "foo") => "foo" not "./foo"
+ def join(dir, *names)
+ dir == "." ? File.join(*names) : File.join(dir, *names)
+ end
end
end
end