http_utilities 1.2.4 → 1.2.4.1

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: 3577e7c051ab3a26079db6562db3bf872b04dfb6
4
- data.tar.gz: d39436f355b7c6df18009cabc68178e48dd72373
3
+ metadata.gz: 98cedb71a1c7ce00a04554b8ceb6528dcb973bf4
4
+ data.tar.gz: 73c740b9292026bb68e5f0cd4182089214f2b959
5
5
  SHA512:
6
- metadata.gz: 64fda9009c189da05973d2c774b4c3c64af0045029e768ad035c26efcf2f07d274840d633217281506a47024a0d47916b6724888eb3664d98e8c05532dbd5563
7
- data.tar.gz: 259a5b420c51ca5f03dbd2c2505a41b487c0674665a18160c7ead7014acf649b3ff936c9b81affbd68df74a5f082572b3726a81c1dacd665ac99ca6301df03ed
6
+ metadata.gz: 2b1e33e25895e7edd7fea5d238652645de358d67b3ba0fe25ab212004a60c277948743761ae577e6c30fa7147256209e2d09f5168b666ad4b4ebb59fb830d5b7
7
+ data.tar.gz: 5d08aed14ebd480d6a2bf737186e0ce023b0effb96b54e1e9b7c60332f1be6f40079476be0a50a71d04bcb8579c23b0f5015e021c30e857dc7fbdff9a96434bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.4
1
+ 1.2.4.1
@@ -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.4"
6
+ s.version = "1.2.4.1"
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.4"
3
+ VERSION = "1.2.4.1"
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
6
6
 
@@ -80,9 +80,9 @@ module HttpUtilities
80
80
  def socks_proxy_credentials
81
81
  credentials = {}
82
82
 
83
- if (!self.username.empty? && !self.password.empty?)
83
+ if (!self.username.nil? && !self.username.empty? && !self.password.nil? && !self.password.empty?)
84
84
  credentials = {user: self.username, password: self.password}
85
- elsif (!self.username.empty? && self.password.empty?)
85
+ elsif (!self.username.nil? && !self.username.empty? && (self.password.nil? || self.password.empty?))
86
86
  credentials = {user: self.username}
87
87
  end
88
88
 
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.4
4
+ version: 1.2.4.1
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-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri