lib/sup/mbox.rb in sup-1.1 vs lib/sup/mbox.rb in sup-1.2

- old
+ new

@@ -28,10 +28,10 @@ uri = URI(Source.encode_path_for_uri @expanded_uri) @path = uri.path end raise ArgumentError, "not an mbox uri" unless uri.scheme == "mbox" - raise ArgumentError, "mbox URI ('#{uri}') cannot have a host: #{uri.host}" if uri.host + raise ArgumentError, "mbox URI ('#{uri}') cannot have a host: #{uri.host}" unless uri.host.nil? || uri.host.empty? raise ArgumentError, "mbox URI must have a path component" unless uri.path @f = nil else @f = uri_or_fp @path = uri_or_fp.path