active_proxy 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +6 -0
- data/.travis.yml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +152 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +8 -0
- data/active_proxy.gemspec +40 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/active_proxy/fetcher.rb +100 -0
- data/lib/active_proxy/version.rb +5 -0
- data/lib/active_proxy.rb +18 -0
- metadata +255 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8bd1368da1b34144f5d7878a5937a56cea5cc1664cc485f4f90a66c10d2d1e95
|
4
|
+
data.tar.gz: b48f92261b395ff5d367c1171e200b705d515f0923c9ed4218db8e9384462d24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5ffbd1994514e253d65a1524ca3f0fa145a0d57e614884668994b3df7a3fa1af0a191583967fa3f2b7f2ec58fbfa11423b2d0077145aa6669fb6477434571441
|
7
|
+
data.tar.gz: 722b26f35ecf28a9bfc457adba21fe8528e375775ffc309612599f676f8a89d3cb06ee0efda900c7f0e29cf1e5563ad5a8ada07db945bb523fd02f0b6fe8f8a2
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
active_proxy (1.0.0)
|
5
|
+
nokogiri (>= 1.6.8)
|
6
|
+
proxy_fetcher (>= 0.9.0)
|
7
|
+
retries (>= 0.0.5)
|
8
|
+
user-agent-randomizer (>= 0.2.0)
|
9
|
+
zeitwerk (>= 1.0.0)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
actionpack (5.2.2)
|
15
|
+
actionview (= 5.2.2)
|
16
|
+
activesupport (= 5.2.2)
|
17
|
+
rack (~> 2.0)
|
18
|
+
rack-test (>= 0.6.3)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
+
actionview (5.2.2)
|
22
|
+
activesupport (= 5.2.2)
|
23
|
+
builder (~> 3.1)
|
24
|
+
erubi (~> 1.4)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
27
|
+
activesupport (5.2.2)
|
28
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
29
|
+
i18n (>= 0.7, < 2)
|
30
|
+
minitest (~> 5.1)
|
31
|
+
tzinfo (~> 1.1)
|
32
|
+
addressable (2.6.0)
|
33
|
+
public_suffix (>= 2.0.2, < 4.0)
|
34
|
+
ast (2.4.0)
|
35
|
+
builder (3.2.3)
|
36
|
+
concurrent-ruby (1.1.4)
|
37
|
+
crass (1.0.4)
|
38
|
+
diff-lcs (1.3)
|
39
|
+
domain_name (0.5.20180417)
|
40
|
+
unf (>= 0.0.5, < 1.0.0)
|
41
|
+
erubi (1.8.0)
|
42
|
+
ethon (0.12.0)
|
43
|
+
ffi (>= 1.3.0)
|
44
|
+
ffi (1.10.0)
|
45
|
+
http (3.3.0)
|
46
|
+
addressable (~> 2.3)
|
47
|
+
http-cookie (~> 1.0)
|
48
|
+
http-form_data (~> 2.0)
|
49
|
+
http_parser.rb (~> 0.6.0)
|
50
|
+
http-cookie (1.0.3)
|
51
|
+
domain_name (~> 0.5)
|
52
|
+
http-form_data (2.1.1)
|
53
|
+
http_parser.rb (0.6.0)
|
54
|
+
httparty (0.16.4)
|
55
|
+
mime-types (~> 3.0)
|
56
|
+
multi_xml (>= 0.5.2)
|
57
|
+
i18n (1.6.0)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
jaro_winkler (1.5.2)
|
60
|
+
loofah (2.2.3)
|
61
|
+
crass (~> 1.0.2)
|
62
|
+
nokogiri (>= 1.5.9)
|
63
|
+
method_source (0.9.2)
|
64
|
+
mime-types (3.2.2)
|
65
|
+
mime-types-data (~> 3.2015)
|
66
|
+
mime-types-data (3.2018.0812)
|
67
|
+
mini_portile2 (2.4.0)
|
68
|
+
minitest (5.11.3)
|
69
|
+
multi_xml (0.6.0)
|
70
|
+
nokogiri (1.10.1)
|
71
|
+
mini_portile2 (~> 2.4.0)
|
72
|
+
parallel (1.14.0)
|
73
|
+
parser (2.6.0.0)
|
74
|
+
ast (~> 2.4.0)
|
75
|
+
powerpack (0.1.2)
|
76
|
+
proxy_fetcher (0.9.0)
|
77
|
+
http (~> 3.0)
|
78
|
+
psych (3.1.0)
|
79
|
+
public_suffix (3.0.3)
|
80
|
+
rack (2.0.6)
|
81
|
+
rack-test (1.1.0)
|
82
|
+
rack (>= 1.0, < 3)
|
83
|
+
rails-dom-testing (2.0.3)
|
84
|
+
activesupport (>= 4.2.0)
|
85
|
+
nokogiri (>= 1.6)
|
86
|
+
rails-html-sanitizer (1.0.4)
|
87
|
+
loofah (~> 2.2, >= 2.2.2)
|
88
|
+
railties (5.2.2)
|
89
|
+
actionpack (= 5.2.2)
|
90
|
+
activesupport (= 5.2.2)
|
91
|
+
method_source
|
92
|
+
rake (>= 0.8.7)
|
93
|
+
thor (>= 0.19.0, < 2.0)
|
94
|
+
rainbow (3.0.0)
|
95
|
+
rake (10.5.0)
|
96
|
+
retries (0.0.5)
|
97
|
+
rspec (3.8.0)
|
98
|
+
rspec-core (~> 3.8.0)
|
99
|
+
rspec-expectations (~> 3.8.0)
|
100
|
+
rspec-mocks (~> 3.8.0)
|
101
|
+
rspec-core (3.8.0)
|
102
|
+
rspec-support (~> 3.8.0)
|
103
|
+
rspec-expectations (3.8.2)
|
104
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
105
|
+
rspec-support (~> 3.8.0)
|
106
|
+
rspec-mocks (3.8.0)
|
107
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
108
|
+
rspec-support (~> 3.8.0)
|
109
|
+
rspec-support (3.8.0)
|
110
|
+
rubocop (0.65.0)
|
111
|
+
jaro_winkler (~> 1.5.1)
|
112
|
+
parallel (~> 1.10)
|
113
|
+
parser (>= 2.5, != 2.5.1.1)
|
114
|
+
powerpack (~> 0.1)
|
115
|
+
psych (>= 3.1.0)
|
116
|
+
rainbow (>= 2.2.2, < 4.0)
|
117
|
+
ruby-progressbar (~> 1.7)
|
118
|
+
unicode-display_width (~> 1.4.0)
|
119
|
+
rubocop-rails_config (0.4.3)
|
120
|
+
railties (>= 3.0)
|
121
|
+
rubocop (~> 0.58)
|
122
|
+
ruby-progressbar (1.10.0)
|
123
|
+
thor (0.20.3)
|
124
|
+
thread_safe (0.3.6)
|
125
|
+
typhoeus (1.3.1)
|
126
|
+
ethon (>= 0.9.0)
|
127
|
+
tzinfo (1.2.5)
|
128
|
+
thread_safe (~> 0.1)
|
129
|
+
unf (0.1.4)
|
130
|
+
unf_ext
|
131
|
+
unf_ext (0.0.7.5)
|
132
|
+
unicode-display_width (1.4.1)
|
133
|
+
user-agent-randomizer (0.2.0)
|
134
|
+
zeitwerk (1.3.1)
|
135
|
+
|
136
|
+
PLATFORMS
|
137
|
+
ruby
|
138
|
+
|
139
|
+
DEPENDENCIES
|
140
|
+
active_proxy!
|
141
|
+
activesupport (>= 5.0.0)
|
142
|
+
bundler (~> 1.16)
|
143
|
+
http (>= 3.0.0)
|
144
|
+
httparty (~> 0.16.4)
|
145
|
+
rake (~> 10.0)
|
146
|
+
rspec (~> 3.0)
|
147
|
+
rubocop (~> 0.65.0)
|
148
|
+
rubocop-rails_config (~> 0.4.3)
|
149
|
+
typhoeus (~> 1.3.1)
|
150
|
+
|
151
|
+
BUNDLED WITH
|
152
|
+
1.16.6
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 sebi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# ActiveProxy
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/active_proxy`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'active_proxy'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install active_proxy
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/active_proxy.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "active_proxy/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "active_proxy"
|
9
|
+
spec.version = ActiveProxy::VERSION
|
10
|
+
spec.authors = ["sebi"]
|
11
|
+
spec.email = ["gore.sebyx@yahoo.com"]
|
12
|
+
|
13
|
+
spec.summary = "Ruby proxy fetcher and manager"
|
14
|
+
spec.description = "Easy to use ruby proxy fetcher, supports caching and retries"
|
15
|
+
spec.homepage = "https://github.com/sebyx07/active_proxy"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_dependency "nokogiri", ">= 1.6.8"
|
26
|
+
spec.add_dependency "proxy_fetcher", ">= 0.9.0"
|
27
|
+
spec.add_dependency "retries", ">= 0.0.5"
|
28
|
+
spec.add_dependency "user-agent-randomizer", ">= 0.2.0"
|
29
|
+
spec.add_dependency "zeitwerk", ">= 1.0.0"
|
30
|
+
|
31
|
+
spec.add_development_dependency "activesupport", ">= 5.0.0"
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
33
|
+
spec.add_development_dependency "http", ">= 3.0.0"
|
34
|
+
spec.add_development_dependency "httparty", "~> 0.16.4"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
+
spec.add_development_dependency "rubocop", "~> 0.65.0"
|
38
|
+
spec.add_development_dependency "rubocop-rails_config", "~> 0.4.3"
|
39
|
+
spec.add_development_dependency "typhoeus", "~> 1.3.1"
|
40
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'active_proxy'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveProxy
|
4
|
+
class Fetcher
|
5
|
+
attr_reader :proxy_key, :options, :cache_store
|
6
|
+
|
7
|
+
def initialize(proxy_key, cache_store, options = {})
|
8
|
+
@proxy_key = proxy_key
|
9
|
+
@cache_store = cache_store
|
10
|
+
@options = options
|
11
|
+
end
|
12
|
+
|
13
|
+
def format_proxy_httparty
|
14
|
+
proxy = current_proxy
|
15
|
+
{ http_proxyaddr: proxy[:address], http_proxyport: proxy[:port], timeout: 4 }
|
16
|
+
end
|
17
|
+
|
18
|
+
def format_proxy_full
|
19
|
+
proxy = current_proxy
|
20
|
+
|
21
|
+
"#{proxy[:type]}://#{proxy[:address]}:#{proxy[:port]}"
|
22
|
+
end
|
23
|
+
|
24
|
+
def format_proxy_typhoeus
|
25
|
+
{ proxy: format_proxy_full }
|
26
|
+
end
|
27
|
+
|
28
|
+
def format_proxy_http
|
29
|
+
proxy = current_proxy
|
30
|
+
[proxy[:address], proxy[:port]]
|
31
|
+
end
|
32
|
+
|
33
|
+
def current_proxy
|
34
|
+
proxy = cache_store.fetch(cache_key("current")) do
|
35
|
+
_proxy = proxy_list.sample
|
36
|
+
log_message "Got new proxy #{_proxy}"
|
37
|
+
_proxy
|
38
|
+
end
|
39
|
+
return proxy unless proxy.nil?
|
40
|
+
cache_store.delete(cache_key("list"))
|
41
|
+
current_proxy
|
42
|
+
end
|
43
|
+
|
44
|
+
def user_agent
|
45
|
+
UserAgentRandomizer::UserAgent.fetch.string
|
46
|
+
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def cache_key(item_name)
|
51
|
+
"HTTP-PROXY-#{proxy_key}-#{Process.pid}-#{item_name}"
|
52
|
+
end
|
53
|
+
|
54
|
+
def proxy_list
|
55
|
+
allowed_schemes = %w[http https]
|
56
|
+
|
57
|
+
cache_store.fetch(cache_key("list")) do
|
58
|
+
ProxyFetcher::Manager.new(proxy_manager_options).proxies.map do |proxy|
|
59
|
+
scheme = proxy.type.downcase
|
60
|
+
next unless allowed_schemes.include?(scheme)
|
61
|
+
|
62
|
+
{ address: proxy.addr, port: proxy.port, type: proxy.type.downcase || "http" }
|
63
|
+
end.tap(&:compact!)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def call
|
68
|
+
handler = proc do |exception, attempt_number, total_delay|
|
69
|
+
log_message "Retry proxy, exception: #{exception.class}"
|
70
|
+
log_message exception.message[0..100]
|
71
|
+
log_message "retry attempt #{attempt_number}; #{total_delay.to_i} seconds have passed."
|
72
|
+
clear_current_proxy
|
73
|
+
end
|
74
|
+
|
75
|
+
with_retries(max_tries: max_retries_options, handler: handler) do
|
76
|
+
yield self
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def max_retries_options
|
81
|
+
options[:max_retries] || 10
|
82
|
+
end
|
83
|
+
|
84
|
+
def proxy_manager_options
|
85
|
+
options[:proxy_manager_options] || { filters: { maxtime: "200" } }
|
86
|
+
end
|
87
|
+
|
88
|
+
def clear_current_proxy
|
89
|
+
new_list = proxy_list
|
90
|
+
new_list.delete(current_proxy)
|
91
|
+
cache_store.delete(cache_key("current"))
|
92
|
+
cache_store.write(cache_key("list"), new_list)
|
93
|
+
end
|
94
|
+
|
95
|
+
def log_message(msg)
|
96
|
+
return if ENV["LOG_ACTIVE_PROXY"].nil?
|
97
|
+
p msg
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
data/lib/active_proxy.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "zeitwerk"
|
4
|
+
require "retries"
|
5
|
+
require "proxy_fetcher"
|
6
|
+
require "user_agent_randomizer"
|
7
|
+
|
8
|
+
Zeitwerk::Loader.for_gem.setup
|
9
|
+
|
10
|
+
module ActiveProxy
|
11
|
+
class << self
|
12
|
+
def call(proxy_key, cache_store, options = {})
|
13
|
+
ActiveProxy::Fetcher.new(proxy_key, cache_store, options).send(:call) do |fetcher|
|
14
|
+
yield fetcher
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,255 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_proxy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sebi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.6.8
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.6.8
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: proxy_fetcher
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.9.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: retries
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.5
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.5
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: user-agent-randomizer
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.2.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: zeitwerk
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activesupport
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 5.0.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 5.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.16'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.16'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: http
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.0.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: httparty
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.16.4
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.16.4
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '10.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '10.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.65.0
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.65.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rubocop-rails_config
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.4.3
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.4.3
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: typhoeus
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.3.1
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.3.1
|
209
|
+
description: Easy to use ruby proxy fetcher, supports caching and retries
|
210
|
+
email:
|
211
|
+
- gore.sebyx@yahoo.com
|
212
|
+
executables: []
|
213
|
+
extensions: []
|
214
|
+
extra_rdoc_files: []
|
215
|
+
files:
|
216
|
+
- ".gitignore"
|
217
|
+
- ".rspec"
|
218
|
+
- ".rubocop.yml"
|
219
|
+
- ".travis.yml"
|
220
|
+
- Gemfile
|
221
|
+
- Gemfile.lock
|
222
|
+
- LICENSE.txt
|
223
|
+
- README.md
|
224
|
+
- Rakefile
|
225
|
+
- active_proxy.gemspec
|
226
|
+
- bin/console
|
227
|
+
- bin/setup
|
228
|
+
- lib/active_proxy.rb
|
229
|
+
- lib/active_proxy/fetcher.rb
|
230
|
+
- lib/active_proxy/version.rb
|
231
|
+
homepage: https://github.com/sebyx07/active_proxy
|
232
|
+
licenses:
|
233
|
+
- MIT
|
234
|
+
metadata: {}
|
235
|
+
post_install_message:
|
236
|
+
rdoc_options: []
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - ">="
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0'
|
249
|
+
requirements: []
|
250
|
+
rubyforge_project:
|
251
|
+
rubygems_version: 2.7.8
|
252
|
+
signing_key:
|
253
|
+
specification_version: 4
|
254
|
+
summary: Ruby proxy fetcher and manager
|
255
|
+
test_files: []
|