From 9363881f9de3faf826493648e0c41d2484e536da Mon Sep 17 00:00:00 2001 From: John Cline <2057878+clinejj@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:09:09 -0400 Subject: [PATCH 1/2] Change blacklist->denylist in the readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0c186af..f0956cfa 100644 --- a/README.md +++ b/README.md @@ -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) From a3aec9c13f695da5a0e6eec20687ae32fdefe4bf Mon Sep 17 00:00:00 2001 From: John Cline <2057878+clinejj@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:10:26 -0400 Subject: [PATCH 2/2] Change blacklist->denylist in changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06526497..cc2d4b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -607,9 +607,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)