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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/portfolio_manager/client.rb +3 -1
- data/lib/portfolio_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e310075331d242ff44cca8e3bca7bf00bc0955bfbfe1b6d9937e012bc2885c6f
|
4
|
+
data.tar.gz: 24be387d4ba38f8b1f78ce6ceaada3cc47252501bfce7ca57b43dc5326fd0a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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}",
|
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.
|
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-
|
11
|
+
date: 2024-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger-application
|