portfoliomanager-rb 0.0.4 → 0.0.5
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 +5 -3
- 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: c51cc740c181f06c163edf1c674e51b966b90719d71d05c5a754a7e3c1cee964
|
4
|
+
data.tar.gz: 82eb06ef1d4fd5ab362d0bbeab7266da70ff81a4b658535bc0a0b95584711c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f874b5f1f515e60a8927ebc6a21be3c2e45c80457fa00d0f4dc2df7fc4ddf20d4f4f29a46e562d1d0ae6713ebe7b669a20907353baeb87726b56c12962192fe4
|
7
|
+
data.tar.gz: 475dab7fd1bcc9c5001603d4e77da821f3769defb06ca0cc5abd13c784347d73a3379d220a204f5b48b2fa634834cf54ead33809df1fc7c958aee7995406078f
|
data/CHANGELOG.md
CHANGED
@@ -21,8 +21,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
21
21
|
## [0.0.4] - 2024-05-14
|
22
22
|
- Fix return value classes for `PortfolioManager::Services::Connection::ConnectionShare::Live#accept_reject_pending_connection_requests`, `PortfolioManager::Services::Connection::ConnectionShare::Live#accept_reject_pending_meter_share_requests`, and `PortfolioManager::Services::Connection::ConnectionShare::Live#accept_reject_pending_property_share_requests` methods.
|
23
23
|
|
24
|
+
## [0.0.5] - 2024-05-15
|
25
|
+
- Force encoding of HTTP response body to be UTF-8.
|
26
|
+
|
24
27
|
[Unreleased]: https://github.com/pnnl/portfoliomanager-rb/compare/v0.0.1...HEAD
|
25
28
|
[0.0.1]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.1
|
26
29
|
[0.0.2]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.2
|
27
30
|
[0.0.3]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.3
|
28
31
|
[0.0.4]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.4
|
32
|
+
[0.0.5]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.5
|
data/Gemfile.lock
CHANGED
@@ -123,18 +123,20 @@ module PortfolioManager
|
|
123
123
|
|
124
124
|
response = http.request(request)
|
125
125
|
|
126
|
+
response_body_utf8 = response.body.force_encoding("UTF-8")
|
127
|
+
|
126
128
|
log(INFO, "Response:\n" + ([
|
127
129
|
"Protocol: HTTP/#{response.http_version}",
|
128
130
|
"URI: #{response.uri}",
|
129
131
|
"Code: #{response.code}",
|
130
132
|
"Message: #{response.message}",
|
131
|
-
"Body: #{
|
133
|
+
"Body: #{response_body_utf8}",
|
132
134
|
]).compact.collect { |s|
|
133
135
|
"\t#{s}"
|
134
136
|
}.join("\n")) if @debug
|
135
137
|
|
136
|
-
if
|
137
|
-
PortfolioManager::Mapper.instance.xml2obj(
|
138
|
+
if response_body_utf8.start_with?("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>")
|
139
|
+
PortfolioManager::Mapper.instance.xml2obj(response_body_utf8, klass)
|
138
140
|
else
|
139
141
|
raise PortfolioManager::HTTPResponseError.new(response)
|
140
142
|
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.
|
4
|
+
version: 0.0.5
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger-application
|