]> git.cworth.org Git - sup/commitdiff
twiddle-related bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 17 Sep 2007 17:38:51 +0000 (17:38 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 17 Sep 2007 17:38:51 +0000 (17:38 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@585 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox/loader.rb

index 9bad74e3ee527409d69ba757c2e18b6f2c6a2ce0..29ca62b78f33e15dea5a1557338fdf34bcb48b98 100644 (file)
@@ -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