From: wmorgan Date: Mon, 17 Sep 2007 17:38:51 +0000 (+0000) Subject: twiddle-related bugfix X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3ef618fb2d32eea7101046409fd84daef976a671;p=sup twiddle-related bugfix git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@585 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index 9bad74e..29ca62b 100644 --- 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