wasabi 3.1.0 → 3.2.0
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 +7 -0
- data/CHANGELOG.md +26 -9
- data/Gemfile +5 -1
- data/README.md +8 -6
- data/Rakefile +0 -2
- data/lib/wasabi/document.rb +24 -2
- data/lib/wasabi/parser.rb +162 -49
- data/lib/wasabi/version.rb +1 -1
- data/spec/fixtures/economic.wsdl +65660 -0
- data/spec/fixtures/encoded_endpoint.wsdl +52 -0
- data/spec/spec_helper.rb +11 -1
- data/spec/support/fixture.rb +2 -4
- data/spec/support/profiling.rb +18 -0
- data/spec/wasabi/document/authentication_spec.rb +1 -1
- data/spec/wasabi/document/economic_spec.rb +13 -0
- data/spec/wasabi/document/encoded_endpoint_spec.rb +11 -0
- data/spec/wasabi/document/geotrust_spec.rb +2 -2
- data/spec/wasabi/document/inherited_spec.rb +20 -0
- data/spec/wasabi/document/multiple_namespaces_spec.rb +1 -1
- data/spec/wasabi/document/namespaced_actions_spec.rb +3 -3
- data/spec/wasabi/document/no_namespace_spec.rb +3 -3
- data/spec/wasabi/document/savon295_spec.rb +1 -1
- data/spec/wasabi/parser/multiple_namespaces_spec.rb +6 -2
- data/spec/wasabi/parser/no_message_parts_spec.rb +5 -1
- data/spec/wasabi/parser/no_namespace_spec.rb +5 -2
- data/spec/wasabi/parser/symbolic_endpoint_spec.rb +5 -0
- data/wasabi.gemspec +3 -2
- metadata +28 -28
- data/lib/wasabi/xpath_helper.rb +0 -30
data/lib/wasabi/xpath_helper.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
module Wasabi
|
2
|
-
module XPathHelper
|
3
|
-
|
4
|
-
NAMESPACES = {
|
5
|
-
"xs" => "http://www.w3.org/2001/XMLSchema",
|
6
|
-
"wsdl" => "http://schemas.xmlsoap.org/wsdl/",
|
7
|
-
"soap11" => "http://schemas.xmlsoap.org/wsdl/soap/",
|
8
|
-
"soap12" => "http://schemas.xmlsoap.org/wsdl/soap12/"
|
9
|
-
}
|
10
|
-
|
11
|
-
def xpath(*args)
|
12
|
-
node, xpath = extract_xpath_args(args)
|
13
|
-
node.xpath(xpath, NAMESPACES)
|
14
|
-
end
|
15
|
-
|
16
|
-
def at_xpath(*args)
|
17
|
-
node, xpath = extract_xpath_args(args)
|
18
|
-
node.at_xpath(xpath, NAMESPACES)
|
19
|
-
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def extract_xpath_args(args)
|
24
|
-
xpath, target = args.reverse
|
25
|
-
target ||= document if respond_to?(:document)
|
26
|
-
[target, xpath]
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|