sentofu 0.4.1 → 0.4.2

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: e4bdbc0cd6c6f9f448467ce9852c4f0fc75f42be7a23c30d4e21cb15ed943852
4
- data.tar.gz: fff901df109eeddcea4186d8874414e5bfb71d2b6bae43820c3573b674dec6ab
3
+ metadata.gz: a8c4c056b7bcf92527c718a23d6f1d416c37f4858a027c3d8ce325eff3f4250d
4
+ data.tar.gz: 51bdebdfcca2fbf71807081eabdefce06d42cbfe4544bf2826fc395971ceb4dd
5
5
  SHA512:
6
- metadata.gz: 4f250597779464a2a1637163e3bb19178e202e06d02075d7b59e67d1ae73e3a7836794782eb727182e54455d5a9512d0f196ebf02476007859daa0281386f6c0
7
- data.tar.gz: 7bd0df3633514ad9d3932c17f4eda4791b9ed164bd492b091a77a7bbe9b396e5fb3efcf3d95cd3de039cb91a6674dd244a79e890d182792430f8a90e5312ae01
6
+ metadata.gz: a130e083a690df006ef1875cbd4fc2538cf6b519275a2f7727ad2f24c3ea1c66e977cbd94731d70830075c8a9056858298fc3e3c79cae6eb14b1fab5c8ee7d9b
7
+ data.tar.gz: 1860fa18f41ef466094440bbda7845bf713c28e81230f1716325daceeed5322e1a38a692d244c81789f02850883656950a30a62b2043a99a2dea10aad44fd429
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
  # CHANGELOG.md
3
3
 
4
4
 
5
+ ## sentofu 0.4.2 released 2019-07-28
6
+
7
+ * Fix HTTP proxy determination code
8
+
9
+
5
10
  ## sentofu 0.4.1 released 2019-07-26
6
11
 
7
12
  * Refine 'sentofu_http_proxy' parsing
data/lib/sentofu/http.rb CHANGED
@@ -33,14 +33,17 @@ module Sentofu
33
33
  http =
34
34
  if pm = PROXY_REX.match(ENV['sentofu_http_proxy'] || '')
35
35
 
36
- port = m[8] ? m[8].to_i : nil
37
- port ||= 443 if m[1] && m[1] == 'https://'
36
+ port = pm[8] ? pm[8].to_i : nil
37
+ port ||= 443 if pm[1] && pm[1] == 'https://'
38
38
 
39
+ #p [ pm[6], port, pm[3], pm[5] ]
39
40
  Net::HTTP.new(
40
41
  uri.host, uri.port,
41
42
  pm[6], port, # proxy host and port
42
43
  pm[3], pm[5]) # proxy user and pass
44
+
43
45
  else
46
+
44
47
  Net::HTTP.new(
45
48
  uri.host, uri.port)
46
49
  end
data/lib/sentofu.rb CHANGED
@@ -14,7 +14,7 @@ require 'sentofu/explo'
14
14
 
15
15
  module Sentofu
16
16
 
17
- VERSION = '0.4.1'
17
+ VERSION = '0.4.2'
18
18
 
19
19
  USER_AGENT =
20
20
  "Sentofu #{Sentofu::VERSION} - " +
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentofu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mettraux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-26 00:00:00.000000000 Z
11
+ date: 2019-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec