http_utilities 1.1.5 → 1.2.0

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: 08cfb5e367ca9f757c3eb75ff8958a55af204bf6
4
- data.tar.gz: ec280ce2d9e5bc1f0e1ad7fbd724a6abb438409c
3
+ metadata.gz: 107666b4bb780fa108abb55fdb57980912f3f677
4
+ data.tar.gz: be3f185491dcffe6a5ed9dc03cee9d8aa044f5cf
5
5
  SHA512:
6
- metadata.gz: 0395ba295966ce1622021940273827ff880d691c78c3f8ed71f45edeebf418932e602bf9219e2d3ad6b245e3830de4a59aac73d363b394c9c73a631bab8f531d
7
- data.tar.gz: 057783241fe6465bff927446dc03c31c10faa3a20784a34caff5edd6bdebc4617c6cb584d15ad0783d4c4babc4c4e2e39efa8566e0a6b83e90e08e2bc1613f81
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"
@@ -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.1.5"
6
+ s.version = "1.2.0"
7
7
 
8
8
  s.authors = ["Sebastian Johnsson"]
9
9
  s.description = "Wrapper for Faraday with additional functionality"
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module HttpUtilities
3
- VERSION = "1.1.5"
3
+ VERSION = "1.2.0"
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
6
6
 
@@ -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.1.5
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-08-11 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri