soar_sr 0.1.16 → 0.1.17

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
  SHA1:
3
- metadata.gz: b72d6fe572e5ad954e40ed92b78e2bc7496ad832
4
- data.tar.gz: eb9f2790dee14eca5f08979542c2046fce1c3b84
3
+ metadata.gz: ebd7eb5cd5a61a8a75a2607e88fa32def9fddd6a
4
+ data.tar.gz: 95a8d8c1344282104a6dd9223a45111e613ada81
5
5
  SHA512:
6
- metadata.gz: b3a21c55e49ef7e190a5cd926a392645602a50267f3bb8fb8c29fd32219a7dc46d26856685ba2b5b61e239f032225e05d43402eafe39c329bfdab832c7fbad9d
7
- data.tar.gz: 4ec7f05a44561f4a516083cb50aec44998de5586534da5bf637ae4663068bc736634f4cc1f60e266f5d79b444ac7f70acfadd4adca8b9d2be8a289d17cb305b8
6
+ metadata.gz: 4b5bc741ec7a2b0d81197491b3fdd76bf74e611e1c18ae636f64e68105c9d50980b72f57561a3a475697125d0dbc1960ae65d6e216d3a5453204544fcc36784b
7
+ data.tar.gz: 39736f0bef4320e3d0f1062ed544650f4043a2c9c7e3e095ac4d4043dd74d06d54fb5351fb6ced82b9e39eaaded71b00323b607bb6ec88fee081313a75a2e0ba
@@ -46,13 +46,12 @@ module SoarSr
46
46
  def service_component_registered?(service_component)_{
47
47
  service_component = standardize(service_component)
48
48
  result = @uddi.find_service_components(service_component)
49
- registered = false
50
49
  if has_data?(result, 'services')
51
50
  result['data']['services'].each do |service_key, description|
52
- registered = (service_component.downcase == service_key.downcase)
51
+ return success_data({'registered' => true}) if (service_component.downcase == service_key.downcase)
53
52
  end
54
53
  end
55
- success_data({'registered' => registered})
54
+ success_data({'registered' => false})
56
55
  }end
57
56
 
58
57
  def register_service_component(service_component)_{
@@ -122,11 +122,10 @@ module SoarSr
122
122
  end
123
123
 
124
124
  def find_matching_service(service, result)
125
- registered = false
126
125
  result['data']['services'].each do |service_key, description|
127
- registered = (service.downcase == service_key.downcase)
126
+ return true if (service.downcase == service_key.downcase)
128
127
  end
129
- registered
128
+ false
130
129
  end
131
130
 
132
131
  def extract_description_and_meta(service, description = nil)
@@ -1,3 +1,3 @@
1
1
  module SoarSr
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan