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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c70278e64a2387ba454a340c40aa063c5ee2a96c8a6b9607304fd069870d069f
4
- data.tar.gz: 1d084d74a423be8559342bb0502f515bfcd928232a10082bd3acf0dee88057af
3
+ metadata.gz: c51cc740c181f06c163edf1c674e51b966b90719d71d05c5a754a7e3c1cee964
4
+ data.tar.gz: 82eb06ef1d4fd5ab362d0bbeab7266da70ff81a4b658535bc0a0b95584711c2b
5
5
  SHA512:
6
- metadata.gz: f01ba843cb75e96cab5431221565dd796c50702997e245b5964a05218f93217abf45c086acb057e16b3378835b4b481f659c215da33be5cc87fe22f830ac3c91
7
- data.tar.gz: fef17b4389e9ee2b05dd74c33fff311e621b34d52f6222fc3b9fbe702f3d9a973ba30aa6cb9a898f246d305b840db99ee6e0191b906dd451b6d1d9e870beaea9
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- portfoliomanager-rb (0.0.3)
4
+ portfoliomanager-rb (0.0.5)
5
5
  logger-application (~> 0.0.2)
6
6
  soap4r-ng (~> 2.0.4)
7
7
 
@@ -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: #{response.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 response.body.start_with?("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>")
137
- PortfolioManager::Mapper.instance.xml2obj(response.body, klass)
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
@@ -1,3 +1,3 @@
1
1
  module PortfolioManager
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
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-14 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger-application