New filtering in MouseHole
Kevin Ballard
kevin at sb.org
Sun Sep 4 18:10:17 EDT 2005
That's actually a really good idea. It could take a single argument -
a regex matches against the whole URL, a string gets compared to the
URL (as opposed to translating it to a regex), and a hash gets
compared to the URL components.
I'll work on that now, and post a revised patch that makes those
changes (as well as reverts filter back to rewrite and turns my new
rewrite to register_url).
On Sep 4, 2005, at 5:26 PM, why the lucky stiff wrote:
> Well, it's consistent with include_match and exclude_match. I want
> all URL matching schemes to be identical.
>
> So, let's say down the road I entertain an idea for per-part matching:
>
> include_match :scheme => "file"
> include_match :scheme => /https?/
> include_match :domain => /google\.com$/, :path => "user.js"
> exclude_match :scheme => "http", :domain => /boingboing/
>
> If I add that, I want it to be consistent for exclude_match and
> register_url as well. Consistency and ease of remembering
> MouseHole's API is paramount.
--
Kevin Ballard
kevin at sb.org
http://www.tildesoft.com
http://kevin.sb.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2378 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/mousehole-scripters/attachments/20050904/5cb5d9f9/smime-0001.bin
More information about the Mousehole-scripters
mailing list