http_utilities 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/http_utilities.gemspec +1 -1
- data/lib/http_utilities.rb +1 -1
- data/lib/http_utilities/http/proxy_support.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100d88c3257aab9fd554b92ebf5acec6f0e76a13610744dbc1334f197db1d69d
|
4
|
+
data.tar.gz: 72a3b17228032109386de4b47bd17e4e25c24111653a29eab467496e22da6016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53540c7b71697bcc23606676e391d7cc4687e5b88ac37bfc8b8fad4f85bf32c5f868484903bea248951ea808e2928a8a15354fd8661ad6e35771cb570dfdc21
|
7
|
+
data.tar.gz: 8bad3307db72709899fd3a15ea4c23c77014d448239f224ee6f42d9099e553e0423fafe1fbc1d2361a965214fa71b8a6423c9e8bd7e9516cbd05ab45e13cd286
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
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.3.
|
6
|
+
s.version = "1.3.4"
|
7
7
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
data/lib/http_utilities.rb
CHANGED
@@ -81,7 +81,7 @@ module HttpUtilities
|
|
81
81
|
def generate_proxy_options
|
82
82
|
proxy_options = {}
|
83
83
|
|
84
|
-
if !self.proxy[:host].to_s.empty? && !self.proxy[:port].to_s.empty?
|
84
|
+
if self.proxy && !self.proxy[:host].to_s.empty? && !self.proxy[:port].to_s.empty?
|
85
85
|
proxy_options[:uri] = "http://#{self.proxy[:host]}:#{self.proxy[:port]}"
|
86
86
|
proxy_options[:user] = self.proxy[:username] if !self.proxy[:username].to_s.empty?
|
87
87
|
proxy_options[:password] = self.proxy[:password] if !self.proxy[:password].to_s.empty?
|