bblimke/webmock — pull request #159 by thenoseman (2012-02-03 14:15:17+00:00)
Title: Allow WebMock.disable_net_connect! to accept a RegExp as :allow Parameter

Hi,

this implements the handling of a Regex as `:allow` option
for `WebMock.disable_net_connect!`

## Background

When running tests on our CI system we connect to multiple changing hostnames like `n1.host.somedomain.com` and `n2.host.somedomain.com`.

Specifiying all hosts would be too much and result in update dependencies when we add more hostnames.

This allows for a blacklisting approach without much update work.

Greetings,
thenoseman