soap4juddi 0.1.1 → 0.1.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/README.md +2 -0
- data/lib/soap4juddi/broker.rb +3 -2
- data/lib/soap4juddi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b0d1a1249516ba00f7fe56b5a9c73bd8f5d58398
|
|
4
|
+
data.tar.gz: bf997e14beb7b601b736ca21b7f048fbb7528276
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6269ef19ee7b9c0d2317bc3168ff0821d0f3b4f0a161330da21a546c3e5a87f36fbd324ff70cba3096a913ca66d7600b9c4c04068690eea133b9668feba5ed37
|
|
7
|
+
data.tar.gz: ad166661af40c0b6a67a911f0fecc3c6110eba297eef1d41120b1610c16d5a1a2229e35db536abbba451049c6d2b000526dacc91cd782e73c8494404fe0b6b7d
|
data/README.md
CHANGED
|
@@ -20,6 +20,8 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
+
Note: all the URNs indicated below *must* be present in the urns dictionary.
|
|
24
|
+
|
|
23
25
|
@urns = { 'base' => ServiceRegistry::BASE_URN,
|
|
24
26
|
'company' => ServiceRegistry::REGISTRY_URN,
|
|
25
27
|
'domains' => ServiceRegistry::DOMAINS_URN,
|
data/lib/soap4juddi/broker.rb
CHANGED
|
@@ -165,7 +165,7 @@ module Soap4juddi
|
|
|
165
165
|
|
|
166
166
|
def extract_business(soap)
|
|
167
167
|
entries = {}
|
|
168
|
-
entries[@soap_xml.extract_id(soap, 'businessKey').gsub(@urns['domains'], "")] = { 'name' => extract_name(soap), 'description' => extract_descriptions(soap) }
|
|
168
|
+
entries[@soap_xml.extract_id(soap, 'businessKey').gsub(@urns['domains'], "").gsub(@urns['teams'], "")] = { 'name' => extract_name(soap), 'description' => extract_descriptions(soap) }
|
|
169
169
|
entries
|
|
170
170
|
end
|
|
171
171
|
|
|
@@ -177,7 +177,8 @@ module Soap4juddi
|
|
|
177
177
|
break if business.nil?
|
|
178
178
|
business[/<ns2:serviceInfos(.*?)<\/ns2:serviceInfos>/, 1] = "" if business[/<ns2:serviceInfos(.*?)<\/ns2:serviceInfos>/, 1]
|
|
179
179
|
id = @soap_xml.extract_id(entry, 'businessKey')
|
|
180
|
-
|
|
180
|
+
key = id.gsub(@urns['domains'], "").gsub(@urns['teams'], "")
|
|
181
|
+
entries[key] = { 'id' => id, 'name' => extract_name(business) }
|
|
181
182
|
entry[/<ns2:businessInfo (.*?)<\/ns2:businessInfo>/, 1] = ""
|
|
182
183
|
entry.gsub!("<ns2:businessInfo </ns2:businessInfo>", "")
|
|
183
184
|
entry = nil if entry.strip == ""
|
data/lib/soap4juddi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: soap4juddi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ernst van Graan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|