wasabi 5.0.0 → 5.0.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/wasabi/parser.rb +8 -3
- data/lib/wasabi/resolver.rb +13 -3
- data/lib/wasabi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c2fcd5cc7a06cd2a2dbc0e5831fa93900597437112fe5a4577a3f1d41dd8ee6
|
4
|
+
data.tar.gz: a24c316714d9d1a45be8aedc78dc6d27cb94d5b764151329df5e470f9ad2eb29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753db3901caac3e839fffde3719db2f46d195e90573db014479fdeb8d446bc790dec2b60d790f03a011dd3494076cd47f612b20575e826f1a33ce66ffe793f8e
|
7
|
+
data.tar.gz: 481b8441fd566346a9ef6a6950eaa33c08c3c85e3d3f68a5e3c003cefcb78f91e34865500c2ef70d3aaec240d0efde6579f147b5e9fba414077fda2996ab7277
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@
|
|
4
4
|
|
5
5
|
- _Your new line here. Mind the style of prefix used in the rest of the document._
|
6
6
|
|
7
|
+
## 5.0.2 (2024-02-27)
|
8
|
+
|
9
|
+
- Fix input/output for style="rpc" operations ([#119](https://github.com/savonrb/wasabi/pull/119)).
|
10
|
+
|
11
|
+
## 5.0.1 (2024-02-13)
|
12
|
+
|
13
|
+
- Restore support for HTTPI ([#117](https://github.com/savonrb/wasabi/issues/117)).
|
14
|
+
|
7
15
|
## 5.0.0 (2024-01-08)
|
8
16
|
|
9
17
|
- Drop support for unsupported rubies (2.7 and below)
|
data/lib/wasabi/parser.rb
CHANGED
@@ -144,7 +144,7 @@ module Wasabi
|
|
144
144
|
# TODO: check for soap namespace?
|
145
145
|
soap_operation = operation.element_children.find { |node| node.name == 'operation' }
|
146
146
|
soap_action = soap_operation['soapAction'] if soap_operation
|
147
|
-
soap_document = soap_operation[
|
147
|
+
soap_document = soap_operation['style'] == 'document' if soap_operation
|
148
148
|
|
149
149
|
if soap_action || soap_document
|
150
150
|
soap_action = soap_action.to_s
|
@@ -260,8 +260,13 @@ module Wasabi
|
|
260
260
|
end
|
261
261
|
|
262
262
|
message_ns_id, message_type = nil
|
263
|
-
|
264
|
-
|
263
|
+
|
264
|
+
soap_operation = operation.element_children.find { |node| node.name == 'operation' }
|
265
|
+
|
266
|
+
if soap_operation.nil? || soap_operation['style'] != 'rpc'
|
267
|
+
message_ns_id = port_message_ns_id
|
268
|
+
message_type = port_message_type
|
269
|
+
end
|
265
270
|
|
266
271
|
# When there is a parts attribute in soap:body element, we should use that value
|
267
272
|
# to look up the message part from messages array.
|
data/lib/wasabi/resolver.rb
CHANGED
@@ -41,10 +41,20 @@ module Wasabi
|
|
41
41
|
private
|
42
42
|
|
43
43
|
def load_from_remote
|
44
|
-
|
45
|
-
|
44
|
+
# TODO: remove_after_httpi
|
45
|
+
# support HTTPI and Faraday side by side
|
46
|
+
# dont reference HTTPI by constant until inside the conditional, in case it isn't loaded
|
47
|
+
if request.class.to_s.include?("HTTPI::Request")
|
48
|
+
request.url = document
|
49
|
+
response = HTTPI.get(request, adapter)
|
46
50
|
|
47
|
-
|
51
|
+
raise HTTPError.new("Error: #{response.code} for url #{request.url}", response) if response.error?
|
52
|
+
else
|
53
|
+
request.adapter *adapter if adapter
|
54
|
+
response = request.get(document)
|
55
|
+
|
56
|
+
raise HTTPError.new("Error: #{response.status} for url #{document}", response) unless response.success?
|
57
|
+
end
|
48
58
|
|
49
59
|
response.body
|
50
60
|
end
|
data/lib/wasabi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wasabi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -73,7 +73,7 @@ licenses:
|
|
73
73
|
- MIT
|
74
74
|
metadata:
|
75
75
|
changelog_uri: https://github.com/savonrb/wasabi/blob/master/CHANGELOG.md
|
76
|
-
documentation_uri: https://www.rubydoc.info/gems/wasabi/5.0.
|
76
|
+
documentation_uri: https://www.rubydoc.info/gems/wasabi/5.0.2
|
77
77
|
source_code_uri: https://github.com/savonrb/wasabi
|
78
78
|
bug_tracker_uri: https://github.com/savonrb/wasabi/issues
|
79
79
|
rubygems_mfa_required: 'true'
|