<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -180,7 +180,7 @@ end
 
 def implode_regexs regexs
 	regexs.compact!
-	regexs.map!{|r| if r.class == Regexp then r.source else r end  }
+	regexs.map!{|r| if r.class == Regexp then r.to_s else r end  }
 	s = &quot;(&quot;
 	s += regexs[0..-2].collect{|r| r + &quot;|&quot; }.join(&quot;&quot;)
 	s += regexs[-1]
@@ -271,6 +271,8 @@ end
 
 def get_host_regex url
 	begin
+		raise Exception, &quot;Url is empty&quot; unless url
+
 		u = URI.parse $url
 		password = &quot;:&quot; + u.password if u.password
 		user = &quot;&quot;
@@ -279,7 +281,7 @@ def get_host_regex url
 		host = u.scheme + &quot;://&quot; + user + u.host
 		return Regexp.new(&quot;^&quot; + host)
 	rescue Exception =&gt; e
-		STDERR.puts color(:red, &quot;ERROR::&quot;) + &quot;  Failed to parse url #{url}&quot;
+		STDERR.puts color(:red, &quot;ERROR::&quot;) + &quot;  Failed to parse url '#{url}'&quot;
 		STDERR.puts e.to_s, e.backtrace
 		exit 1
 	end</diff>
      <filename>spiderfetch.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>47e50e139217c946f8fef978b8206e2f140c8570</id>
    </parent>
  </parents>
  <author>
    <name>Martin Matusiak</name>
    <email>numerodix@gmail.com</email>
  </author>
  <url>http://github.com/numerodix/spiderfetch/commit/123dd44fe1cb5fcd3380a3975851a03ec64eff1f</url>
  <id>123dd44fe1cb5fcd3380a3975851a03ec64eff1f</id>
  <committed-date>2008-04-26T10:35:54-07:00</committed-date>
  <authored-date>2008-04-26T10:35:54-07:00</authored-date>
  <message>allow regex objs in rules
report empty url with use of --host</message>
  <tree>3e255a77c123ed6eeea141519d329f1cdc223860</tree>
  <committer>
    <name>Martin Matusiak</name>
    <email>numerodix@gmail.com</email>
  </committer>
</commit>
