http_utilities 1.2.5.2 → 1.2.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b0f12de72d36058bdb6019453a497f608800e24
4
- data.tar.gz: d878618e393eb7475c64f8a838f231be592edb1e
3
+ metadata.gz: 668d6fdd76dbfd1e4345611bb23c54d8c1b2aa2f
4
+ data.tar.gz: 99ec9e2e783f7f8b7a0842adb7c219960fc083ed
5
5
  SHA512:
6
- metadata.gz: 71b9a67894d8796c2bc8938d62a6977bb9ff446c49701472880dbca28338544bfec854097ee8ba7806f2e379e9d680919be7a2849c34781d72ea8b9c8b9853d6
7
- data.tar.gz: 10135024f182e9e524e06ab8ec0359fc233886463d9a63935893ac03fe0cd777b61bfa9559d611f76e1246476e297e40b1f07c4948ed510a6563841c2ab4b6d3
6
+ metadata.gz: 35a4d85acb28d5b1179ad1d60e259e4677bd421aaedbf1a1c15ba3c5d977f42d51111d8299e048fd2940cbc19ee814344e08f3f4b2c10f313b01c4f3c33c527c
7
+ data.tar.gz: c0a96a3ee389c909abb72fa43fd9710c9ecf5c2a4440c147ba4f6b81272ff7003679556739a0d195940ad2bd00ede88f716c8425cc2da991d3f5330a7e3fb019
@@ -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.2"
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"
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module HttpUtilities
3
- VERSION = "1.2.5.2"
3
+ VERSION = "1.2.5.3"
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
6
6
 
@@ -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.2
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-12 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri