proxy_fetcher 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 405be695c325a43b7669a1c8511b9003e3640e18
4
- data.tar.gz: e5b4caa06fb9e5b2fa5f04f91c1ed7c9f11fdfa6
3
+ metadata.gz: 929248449265daefef4079decba21be77d36c610
4
+ data.tar.gz: 1efc0967583b3a1cc3164b5a524d1b9cfa6e4a1e
5
5
  SHA512:
6
- metadata.gz: 6516ad0696069ce2ec2e9bf52ed83f47dadb4fd8dc202277105f61bc57ee3a366d99f8023fb3e5fd3c0de8242a586919e9d1172b86e62f21f11216fbc0b4ba70
7
- data.tar.gz: a331a1db2a45667c1ef132e7ec4f9fa1c789435e1ab3ff7bcad9a31da5340416b221260923a40b0009909a448c08157da7d32b5834acdade3e2124aa73dff6f7
6
+ metadata.gz: 9c12cd3940d6f81a7a9ee462d8b9e4a8e364013a735172c1ca9444a2d69741f96642de532384cd1de8d6a4f1e77daa038048b6a1140c9e835e2a9f70d28d3a8c
7
+ data.tar.gz: 3e01791ebbdff7608f206a85a86cc7a7701b830aad425475f47fb1d14b4bd11c32225a279a72a131b40b1dbd441973da0b2f5fb4e9381da0c09caa9cfeeb129e
data/.gitignore CHANGED
@@ -13,6 +13,7 @@ rerun.txt
13
13
  pickle-email-*.html
14
14
  .idea
15
15
  Gemfile.lock
16
+ *.gem
16
17
 
17
18
  # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
18
19
  config/initializers/secret_token.rb
data/README.md CHANGED
@@ -34,8 +34,8 @@ Get current proxy list:
34
34
  manager = ProxyFetcher::Manager.new # will immediately load proxy list from the server
35
35
  manager.proxies
36
36
 
37
- #=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port="3128", @country="USA",
38
- # @response_time="5217", @speed="48", @connection_time="100", @type="HTTP", @anonymity="High">, ... ]
37
+ #=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=3128, @country="USA",
38
+ # @response_time=5217, @speed=48, @connection_time=100, @type="HTTP", @anonymity="High">, ... ]
39
39
  ```
40
40
 
41
41
  Get raw proxy URLs:
@@ -53,8 +53,8 @@ If `ProxyFetcher::Manager` was already initialized somewhere, you can refresh th
53
53
  ```ruby
54
54
  manager.refresh_list!
55
55
 
56
- #=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port="3128", @country="USA",
57
- # @response_time="5217", @speed="48", @connection_time="100", @type="HTTP", @anonymity="High">, ... ]
56
+ #=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=3128, @country="USA",
57
+ # @response_time=5217, @speed=48, @connection_time=100, @type="HTTP", @anonymity="High">, ... ]
58
58
  ```
59
59
 
60
60
  Every proxy is a `ProxyFetcher::Proxy` object that has next readers:
@@ -86,7 +86,7 @@ To change open/read timeout for `cleanup!` and `connectable?` methods yu need to
86
86
 
87
87
  ```ruby
88
88
  ProxyFetcher::Manager.config.read_timeout = 1 # default is 3
89
- ProxyFetcher::Manager.config.open_timeout = 1# default is 3
89
+ ProxyFetcher::Manager.config.open_timeout = 1 # default is 3
90
90
 
91
91
  manager = ProxyFetcher::Manager.new
92
92
  manager.cleanup!
@@ -1,6 +1,6 @@
1
1
  module ProxyFetcher
2
2
  class Configuration
3
- attr_reader :open_timeout, :read_timeout
3
+ attr_accessor :open_timeout, :read_timeout
4
4
 
5
5
  def initialize
6
6
  @open_timeout = 3
@@ -9,7 +9,7 @@ module ProxyFetcher
9
9
  # Minor version number
10
10
  MINOR = 1
11
11
  # Smallest version number
12
- TINY = 0
12
+ TINY = 1
13
13
 
14
14
  # Full version number
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_fetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Bulai