Skip to content

Commit

Permalink
Merge pull request #951 from clinejj/patch-1
Browse files Browse the repository at this point in the history
Change `blacklist` to `denylist` in documentation
  • Loading branch information
bblimke committed Aug 2, 2022
2 parents d40c26d + a3aec9c commit 7d31e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -627,9 +627,9 @@
* `WebMock.disable_net_connect` accepts `:allow` option with an object that responds to `#call`, receiving a `URI` object and returning a boolean:


blacklist = ['google.com', 'facebook.com', 'apple.com']
denylist = ['google.com', 'facebook.com', 'apple.com']
allowed_sites = lambda{|uri|
blacklist.none?{|site| uri.host.include?(site) }
denylist.none?{|site| uri.host.include?(site) }
}
WebMock.disable_net_connect!(:allow => allowed_sites)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -550,9 +550,9 @@ RestClient.get('sample.org', '/bar') # ===> Failure
With an object that responds to `#call`, receiving a `URI` object and returning a boolean:

```ruby
blacklist = ['google.com', 'facebook.com', 'apple.com']
denylist = ['google.com', 'facebook.com', 'apple.com']
allowed_sites = lambda{|uri|
blacklist.none?{|site| uri.host.include?(site) }
denylist.none?{|site| uri.host.include?(site) }
}
WebMock.disable_net_connect!(allow: allowed_sites)

Expand Down

0 comments on commit 7d31e26

Please sign in to comment.