hiptest-publisher 0.16.1 → 0.16.2

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: 29270dc394e18dfca03310de5ce563a722c18000
4
- data.tar.gz: 2734c798f1eea999baf81592ec684fa3020cfacc
3
+ metadata.gz: b8ddfa18b72bf54286c4b422ddac405f659663c6
4
+ data.tar.gz: 2a8c147b72775ca9000050f5036a5ddc12e3f53b
5
5
  SHA512:
6
- metadata.gz: f6387b718d78b9ef0f6490200ea2b9a3f38153ab5a669be312847c6c9d141ff76b005e98f28314d259345a320874a9de5d2e51ee41cf202110441d6e2b92e7b0
7
- data.tar.gz: abdb1e5309327007261cc9e21346c1644b169c26a3cb70bb3de1ccf8fad78560ece9dc62d34449beff845394c2a03a0ae0bd84b4405d1777da43d1ddd18a8361
6
+ metadata.gz: a76dcbc58944f8b731eb847da01fdd2510233ac6d143f85e3d7e7bf1be8eab6ed6f66da37eb8ce155cb538ab17fef4938dfdce9c15a8768fab15259b79debc58
7
+ data.tar.gz: e54b8d70c55ac16b202cfd6331e3fc0ab0040de3c61f7bdef8a4c1c1b3c3e58d2b596145e2aa27d2650f015842948bffb9068f457a3dfa3001b3e5aebc42f81f
@@ -119,9 +119,11 @@ module Hiptest
119
119
  request["User-Agent"] = "Ruby/hiptest-publisher"
120
120
  use_ssl = request.uri.scheme == "https"
121
121
  proxy_uri = find_proxy_uri(request.uri.hostname, request.uri.port)
122
- proxy_address = proxy_uri&.hostname
123
- proxy_port = proxy_uri&.port
124
- proxy_user, proxy_pass = proxy_uri&.userinfo&.split(':', 2)
122
+ if proxy_uri
123
+ proxy_address = proxy_uri.hostname
124
+ proxy_port = proxy_uri.port
125
+ proxy_user, proxy_pass = proxy_uri.userinfo.split(':', 2) if proxy_uri.userinfo
126
+ end
125
127
  Net::HTTP.start(
126
128
  request.uri.hostname, request.uri.port,
127
129
  proxy_address, proxy_port, proxy_user, proxy_pass,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiptest-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiptest R&D