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 +4 -4
- data/lib/soar_sr/service_components.rb +2 -3
- data/lib/soar_sr/services.rb +2 -3
- data/lib/soar_sr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebd7eb5cd5a61a8a75a2607e88fa32def9fddd6a
|
4
|
+
data.tar.gz: 95a8d8c1344282104a6dd9223a45111e613ada81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
51
|
+
return success_data({'registered' => true}) if (service_component.downcase == service_key.downcase)
|
53
52
|
end
|
54
53
|
end
|
55
|
-
success_data({'registered' =>
|
54
|
+
success_data({'registered' => false})
|
56
55
|
}end
|
57
56
|
|
58
57
|
def register_service_component(service_component)_{
|
data/lib/soar_sr/services.rb
CHANGED
@@ -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
|
-
|
126
|
+
return true if (service.downcase == service_key.downcase)
|
128
127
|
end
|
129
|
-
|
128
|
+
false
|
130
129
|
end
|
131
130
|
|
132
131
|
def extract_description_and_meta(service, description = nil)
|
data/lib/soar_sr/version.rb
CHANGED