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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 962da0b53ac069d3f6236e776ee4b6e3e7cb798f
4
- data.tar.gz: dd8d14f20400babbb7cc39b5ea52617844b4ac97
3
+ metadata.gz: b0d1a1249516ba00f7fe56b5a9c73bd8f5d58398
4
+ data.tar.gz: bf997e14beb7b601b736ca21b7f048fbb7528276
5
5
  SHA512:
6
- metadata.gz: f64263bc47e0f34afdfc96a2e39ed549f2b9457f95d352a51f24b7699de61e38f171471acc3901a6550d88f1bc19be71ee2f7dbef73e2b9b9a503433f3f0812f
7
- data.tar.gz: 698b7daab90b6fdb781d9956d3ac8adb70e0c09a1fa3cc2e85812313b6d7a92fc91f0f447e8c00f3128427a2dd1246ee1d2b15cb656c732237ed6af3d1e2b59a
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,
@@ -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
- entries[id.gsub(@urns['domains'], "")] = { 'id' => id, 'name' => extract_name(business) }
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 == ""
@@ -1,3 +1,3 @@
1
1
  module Soap4juddi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler