http_utilities 1.1.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/http_utilities.gemspec +1 -1
- data/lib/http_utilities.rb +1 -1
- data/lib/http_utilities/proxies/proxy_checker.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 107666b4bb780fa108abb55fdb57980912f3f677
|
|
4
|
+
data.tar.gz: be3f185491dcffe6a5ed9dc03cee9d8aa044f5cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9492eeb3d8ecd8581aae725466bae9c259bc3921b827caa29e849a759837c0a2b207d4c4b35d9a624f2cc233908056fda85fe63d620eee5ccb49496e81457523
|
|
7
|
+
data.tar.gz: 3e75383eb54c45e186c491be357e7ea6676a037b3bdd1b5175f5b34a8283060e7a9ed66d140a982b3b80b81d6b15b34fdb824549df08b870f236786dcfa32fb4
|
data/Gemfile
CHANGED
|
@@ -4,13 +4,12 @@ gem 'nokogiri'
|
|
|
4
4
|
gem 'mechanize'
|
|
5
5
|
gem 'net-ssh'
|
|
6
6
|
|
|
7
|
-
gem "activerecord-import", :require => false
|
|
8
|
-
|
|
9
7
|
group :development, :test do
|
|
10
8
|
gem 'rails'
|
|
11
9
|
gem 'jeweler'
|
|
12
10
|
gem 'rspec'
|
|
13
11
|
gem 'sqlite3'
|
|
12
|
+
gem "activerecord-import", :require => false
|
|
14
13
|
|
|
15
14
|
platforms :ruby do
|
|
16
15
|
gem "mysql2"
|
data/http_utilities.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
|
4
4
|
|
|
5
5
|
s.name = "http_utilities"
|
|
6
|
-
s.version = "1.
|
|
6
|
+
s.version = "1.2.0"
|
|
7
7
|
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
data/lib/http_utilities.rb
CHANGED
|
@@ -57,12 +57,12 @@ module HttpUtilities
|
|
|
57
57
|
self.send("check_#{proxy.protocol}_proxy", proxy)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
def check_socks_proxy(proxy, test_host: "whois.verisign-grs.com", test_port: 43, test_query: "=google.com")
|
|
60
|
+
def check_socks_proxy(proxy, test_host: "whois.verisign-grs.com", test_port: 43, test_query: "=google.com", timeout: 30)
|
|
61
61
|
valid_proxy = false
|
|
62
62
|
|
|
63
63
|
begin
|
|
64
64
|
socks_proxy = Net::SSH::Proxy::SOCKS5.new(proxy.host, proxy.port, proxy.socks_proxy_credentials)
|
|
65
|
-
client = socks_proxy.open(test_host, test_port)
|
|
65
|
+
client = socks_proxy.open(test_host, test_port, {timeout: timeout})
|
|
66
66
|
|
|
67
67
|
client.write("#{test_query}\r\n")
|
|
68
68
|
response = client.read
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http_utilities
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastian Johnsson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|