Skip to content

Commit

Permalink
Release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Nov 12, 2018
1 parent 80cefdd commit 22840db
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

Reverse Chronological Order:

## `0.7.3` (2018-11-10)
## `master`

* Add your changelog here

## `0.8.0` (2018-11-12)

* Improve speed of proxy list loading.
* Improve speed of proxies cleanup.
Expand Down
2 changes: 1 addition & 1 deletion lib/proxy_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

require File.dirname(__FILE__) + '/proxy_fetcher/utils/http_client'
require File.dirname(__FILE__) + '/proxy_fetcher/utils/proxy_validator'
require File.dirname(__FILE__) + '/proxy_fetcher/utils/bulk_proxy_validator'
require File.dirname(__FILE__) + '/proxy_fetcher/utils/proxy_list_validator'
require File.dirname(__FILE__) + '/proxy_fetcher/client/client'
require File.dirname(__FILE__) + '/proxy_fetcher/client/request'
require File.dirname(__FILE__) + '/proxy_fetcher/client/proxies_registry'
Expand Down
2 changes: 1 addition & 1 deletion lib/proxy_fetcher/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get!
# @return [Array<ProxyFetcher::Proxy>]
# list of valid proxies
def cleanup!
valid_proxies = BulkProxyValidator.new(@proxies).validate
valid_proxies = ProxyListValidator.new(@proxies).validate
@proxies &= valid_proxies
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ProxyFetcher
# This class validates list of proxies.
# Each proxy is validated using <code>ProxyFetcher::ProxyValidator</code>.
class BulkProxyValidator
class ProxyListValidator
# @!attribute [r] proxies
# @return [Array<ProxyFetcher::Proxy>] Source array of proxies
attr_reader :proxies
Expand Down
4 changes: 2 additions & 2 deletions lib/proxy_fetcher/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ module VERSION
# Major version number
MAJOR = 0
# Minor version number
MINOR = 7
MINOR = 8
# Smallest version number
TINY = 2
TINY = 0

# Full version number
STRING = [MAJOR, MINOR, TINY].compact.join('.')
Expand Down
4 changes: 3 additions & 1 deletion spec/support/manager_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@

manager = ProxyFetcher::Manager.new

expect { manager.cleanup! }.to change { manager.proxies }.to([])
expect do
manager.cleanup!
end.to change { manager.proxies }.to([])
end

it "doesn't pollute the output with array of proxies" do
Expand Down

0 comments on commit 22840db

Please sign in to comment.