portfoliomanager-rb 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: c51cc740c181f06c163edf1c674e51b966b90719d71d05c5a754a7e3c1cee964
4
- data.tar.gz: 82eb06ef1d4fd5ab362d0bbeab7266da70ff81a4b658535bc0a0b95584711c2b
3
+ metadata.gz: e310075331d242ff44cca8e3bca7bf00bc0955bfbfe1b6d9937e012bc2885c6f
4
+ data.tar.gz: 24be387d4ba38f8b1f78ce6ceaada3cc47252501bfce7ca57b43dc5326fd0a2c
5
5
  SHA512:
6
- metadata.gz: f874b5f1f515e60a8927ebc6a21be3c2e45c80457fa00d0f4dc2df7fc4ddf20d4f4f29a46e562d1d0ae6713ebe7b669a20907353baeb87726b56c12962192fe4
7
- data.tar.gz: 475dab7fd1bcc9c5001603d4e77da821f3769defb06ca0cc5abd13c784347d73a3379d220a204f5b48b2fa634834cf54ead33809df1fc7c958aee7995406078f
6
+ metadata.gz: 27d006e5343af0b22823745a1885fc32437505c8826da51d49618cd1d8a10af482cb82e5f6db636ebe0b6253f6aa2ab1dada0ead99e2dd858e15315d0f7d49a7
7
+ data.tar.gz: ce61c5d502631455af3ad2aef72107fc2d52a36d355499a0d1da24f3e93b4b5b1465b5852c05d18bb9bac11e13c9672312acd17bdbf7a5210883a87cd102c308
data/CHANGELOG.md CHANGED
@@ -24,9 +24,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
  ## [0.0.5] - 2024-05-15
25
25
  - Force encoding of HTTP response body to be UTF-8.
26
26
 
27
+ ## [0.0.6] - 2024-05-16
28
+ - Add support for proxy servers.
29
+
27
30
  [Unreleased]: https://github.com/pnnl/portfoliomanager-rb/compare/v0.0.1...HEAD
28
31
  [0.0.1]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.1
29
32
  [0.0.2]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.2
30
33
  [0.0.3]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.3
31
34
  [0.0.4]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.4
32
35
  [0.0.5]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.5
36
+ [0.0.6]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- portfoliomanager-rb (0.0.5)
4
+ portfoliomanager-rb (0.0.6)
5
5
  logger-application (~> 0.0.2)
6
6
  soap4r-ng (~> 2.0.4)
7
7
 
@@ -88,6 +88,8 @@ module PortfolioManager
88
88
  def request(verb = Net::HTTP::Get, path = "/", params = {}, initheader = {}, obj = nil, elename = nil, klass = nil, **options)
89
89
  uri = url_for(path, params)
90
90
 
91
+ proxy_uri = uri.find_proxy
92
+
91
93
  request = verb.new(uri, initheader)
92
94
 
93
95
  request["Accept"] = "application/xml, text/xml"
@@ -106,7 +108,7 @@ module PortfolioManager
106
108
  end
107
109
  end
108
110
 
109
- Net::HTTP.start(uri.host, uri.port, use_ssl: uri.is_a?(URI::HTTPS)) do |http|
111
+ Net::HTTP.start(uri.host, uri.port, proxy_uri.nil? ? nil : proxy_uri.host, proxy_uri.nil? ? nil : proxy_uri.port, use_ssl: uri.is_a?(URI::HTTPS)) do |http|
110
112
  log(INFO, "Request:\n" + ([
111
113
  "Protocol: HTTP/#{Net::HTTP.version_1_2? ? "1.2" : "1.1"}",
112
114
  "Method: #{verb.name.split("::")[-1].upcase}",
@@ -1,3 +1,3 @@
1
1
  module PortfolioManager
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portfoliomanager-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Borkum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-15 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger-application