From 8cd5d7d71d867068efd31260216e56c31eb108c4 Mon Sep 17 00:00:00 2001 From: Nikita Bulaj Date: Mon, 13 Nov 2017 14:20:40 +0300 Subject: [PATCH] Fix #9: replace connection_timeout to timeout (CLI) --- .travis.yml | 4 +++- CHANGELOG.md | 4 ++++ bin/proxy_fetcher | 2 +- lib/proxy_fetcher/version.rb | 2 +- proxy_fetcher.gemspec | 4 ++-- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e51155e..43c48ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,11 @@ before_install: gem install bundler bundler_args: --without yard guard benchmarks script: "rake spec" rvm: + - 2.0 + - 2.1 - 2.2.4 - 2.3.3 - - 2.4.1 + - 2.4.2 - ruby-head matrix: allow_failures: diff --git a/CHANGELOG.md b/CHANGELOG.md index 922e343..19b7692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Reverse Chronological Order: +## `0.5.1` (2017-11-13) + +* Fix ProxyFetcher CLI + ## `0.5.0` (2017-09-06) * Remove HideMyName provider (not works anymore) diff --git a/bin/proxy_fetcher b/bin/proxy_fetcher index 28868b0..8a3c9c2 100755 --- a/bin/proxy_fetcher +++ b/bin/proxy_fetcher @@ -41,7 +41,7 @@ OptionParser.new do |opts| end.parse! ProxyFetcher.config.providers = options[:providers] if options[:providers] -ProxyFetcher.config.connection_timeout = options[:timeout] if options[:timeout] +ProxyFetcher.config.timeout = options[:timeout] if options[:timeout] manager = ProxyFetcher::Manager.new(filters: options[:filters]) manager.validate! if options[:validate] diff --git a/lib/proxy_fetcher/version.rb b/lib/proxy_fetcher/version.rb index 9ddb14f..1f4fa98 100644 --- a/lib/proxy_fetcher/version.rb +++ b/lib/proxy_fetcher/version.rb @@ -9,7 +9,7 @@ module VERSION # Minor version number MINOR = 5 # Smallest version number - TINY = 0 + TINY = 1 # Full version number STRING = [MAJOR, MINOR, TINY].compact.join('.') diff --git a/proxy_fetcher.gemspec b/proxy_fetcher.gemspec index a9e9fbf..91b5164 100644 --- a/proxy_fetcher.gemspec +++ b/proxy_fetcher.gemspec @@ -5,7 +5,7 @@ require 'proxy_fetcher/version' Gem::Specification.new do |gem| gem.name = 'proxy_fetcher' gem.version = ProxyFetcher.gem_version - gem.date = '2017-09-06' + gem.date = '2017-11-13' gem.summary = 'Ruby gem for dealing with proxy lists from different providers' gem.description = 'This gem can help your Ruby application to make HTTP(S) requests ' \ 'from proxy server by fetching and validating proxy lists from the different providers.' @@ -17,7 +17,7 @@ Gem::Specification.new do |gem| gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } gem.homepage = 'http://github.com/nbulaj/proxy_fetcher' gem.license = 'MIT' - gem.required_ruby_version = '>= 2.2.2' + gem.required_ruby_version = '>= 2.0.0' gem.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6'