http_utilities 1.3.3 → 1.3.4

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
  SHA256:
3
- metadata.gz: 24370403c5f8396cac1f6fbf76af2bfce33b594d494725f11f4b7dd7e54763a5
4
- data.tar.gz: f0e387ec4cfc14c5caa1edf1041c393b0b1aec7a2242fd666e5a595e843522ea
3
+ metadata.gz: 100d88c3257aab9fd554b92ebf5acec6f0e76a13610744dbc1334f197db1d69d
4
+ data.tar.gz: 72a3b17228032109386de4b47bd17e4e25c24111653a29eab467496e22da6016
5
5
  SHA512:
6
- metadata.gz: 82c7226e7d4d2a7aa535e86bc6f19f83bfc9a2d127ae2c33ee7ff417dbb53f10ddf3ef5148560e7b9241c37dcd2536c3aadd7df9fda5b9a2c41b49737a3bba9e
7
- data.tar.gz: c227b8881310827ab34b7ab3a4c50c118c668021afccd8573010c4be89067104a5d15d3d5d6a8bb24bcb7c6caf4a8cd4ee2850c570162fbb91995a9f9a466086
6
+ metadata.gz: d53540c7b71697bcc23606676e391d7cc4687e5b88ac37bfc8b8fad4f85bf32c5f868484903bea248951ea808e2928a8a15354fd8661ad6e35771cb570dfdc21
7
+ data.tar.gz: 8bad3307db72709899fd3a15ea4c23c77014d448239f224ee6f42d9099e553e0423fafe1fbc1d2361a965214fa71b8a6423c9e8bd7e9516cbd05ab45e13cd286
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
@@ -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.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"
@@ -5,7 +5,7 @@ require "faraday_middleware"
5
5
  require "mechanize"
6
6
 
7
7
  module HttpUtilities
8
- VERSION = "1.3.3"
8
+ VERSION = "1.3.4"
9
9
 
10
10
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
11
11
 
@@ -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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson