commit 3ef618fb2d32eea7101046409fd84daef976a671
parent 4a4f70d059f4b529e2474604131c37e4377b313c
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Mon, 17 Sep 2007 17:38:51 +0000
twiddle-related bugfix
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@585 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb
@@ -28,7 +28,7 @@ class Loader < Source
end
def file_path; @path end
- def is_source_for? uri; super || (URI(Source.expand_filesystem_uri(uri)).path == @path); end
+ def is_source_for? uri; super || (self.uri.is_a?(String) && (URI(Source.expand_filesystem_uri(uri)) == URI(Source.expand_filesystem_uri(self.uri)))) end
def self.suggest_labels_for path
## heuristic: use the filename as a label, unless the file