hiptest-publisher 0.15.10 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiptest-publisher/client.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c1d16465040a12151db97650035e0d15079a1b
|
4
|
+
data.tar.gz: 47ea43b341b4f4dc9e70aa5318c20b4007089eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0b40c87019d0eed0133d5e9a7bfeb4ff2e1618cd5ff82e9d21d71589602614957f6e8681d3191474d1959cb20216d5153416e594cf61db6df8e66541d9fed6
|
7
|
+
data.tar.gz: ad6fd0d858a81a7cac1ae28ef733f9105637fe71261ac9f0ec4563a166ced4de45e22421b73604f14a12e7195fcc1014a30a01983a5429d6dc7b9cfa667417aa
|
@@ -117,8 +117,12 @@ module Hiptest
|
|
117
117
|
|
118
118
|
def send_request(request)
|
119
119
|
request["User-Agent"] = "Ruby/hiptest-publisher"
|
120
|
-
|
121
|
-
Net::HTTP.start
|
120
|
+
# Using Net::HTTP.new will use http proxy if http_proxy env var is set.
|
121
|
+
# Using Net::HTTP.start would not.
|
122
|
+
http = Net::HTTP.new(request.uri.hostname, request.uri.port)
|
123
|
+
http.use_ssl = request.uri.scheme == "https"
|
124
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
125
|
+
http.start do |http|
|
122
126
|
@reporter.show_verbose_message("Request sent to: #{request.uri}")
|
123
127
|
http.request(request)
|
124
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiptest-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiptest R&D
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|