http_utilities 1.2.5.2 → 1.2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/http_utilities.gemspec +1 -1
- data/lib/http_utilities.rb +1 -1
- data/lib/http_utilities/http/proxy_support.rb +5 -0
- 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: 668d6fdd76dbfd1e4345611bb23c54d8c1b2aa2f
|
4
|
+
data.tar.gz: 99ec9e2e783f7f8b7a0842adb7c219960fc083ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35a4d85acb28d5b1179ad1d60e259e4677bd421aaedbf1a1c15ba3c5d977f42d51111d8299e048fd2940cbc19ee814344e08f3f4b2c10f313b01c4f3c33c527c
|
7
|
+
data.tar.gz: c0a96a3ee389c909abb72fa43fd9710c9ecf5c2a4440c147ba4f6b81272ff7003679556739a0d195940ad2bd00ede88f716c8425cc2da991d3f5330a7e3fb019
|
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.2.5.
|
6
|
+
s.version = "1.2.5.3"
|
7
7
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
data/lib/http_utilities.rb
CHANGED
@@ -10,8 +10,13 @@ module HttpUtilities
|
|
10
10
|
proxy_username = options.fetch(:proxy_username, nil)
|
11
11
|
proxy_password = options.fetch(:proxy_password, nil)
|
12
12
|
proxy_credentials = options.fetch(:proxy_credentials, nil)
|
13
|
+
proxy_type = options.fetch(:proxy_type, :all)
|
14
|
+
proxy_protocol = options.fetch(:proxy_protocol, :all)
|
13
15
|
|
14
16
|
if use_proxy || specific_proxy
|
17
|
+
self.proxy[:protocol] = proxy_protocol
|
18
|
+
self.proxy[:type] = proxy_type
|
19
|
+
|
15
20
|
if specific_proxy && specific_proxy.is_a?(String)
|
16
21
|
specific_proxy = specific_proxy.gsub(/^http(s)?:\/\//i, "")
|
17
22
|
parts = specific_proxy.split(":")
|
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.2.5.
|
4
|
+
version: 1.2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|