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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67f9fb69134dd2a3e084acd9ac614198a9c27a0b
4
- data.tar.gz: 18fb9ed4914a371f3f8ca61b15f60f5db51c983e
3
+ metadata.gz: 20c1d16465040a12151db97650035e0d15079a1b
4
+ data.tar.gz: 47ea43b341b4f4dc9e70aa5318c20b4007089eb2
5
5
  SHA512:
6
- metadata.gz: 268cc8c1076a9cc53158b0c31e461ca6e032874e32260af9735e92a02632494a96922596e3f7f5b46800e98e6b406f19240cfb5a9cf08801219e9bbce855ff3a
7
- data.tar.gz: 317d4198410c9d6f1c3d9b950fe3a430c0e67c3bee374b9b261a185f3583fabbf3377fe78020e6a51e579bd91b4828e9c8fb358727ed1f764e77f9e4d511784e
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
- use_ssl = request.uri.scheme == "https"
121
- Net::HTTP.start(request.uri.hostname, request.uri.port, use_ssl: use_ssl, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
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.15.10
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-08-24 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize