soar_sr 1.1.18 → 1.1.19

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: 00c374d74b84bae9d920000dcd9cbd9d42beed72
4
- data.tar.gz: 0e38a8e94ee31329a0ae3452e2f58b17c32cc4ec
3
+ metadata.gz: eaf078c9c1b09242167e5af16f924e4b93edaaa2
4
+ data.tar.gz: 415caef940a141d0f8740ac58567ee517aa124a4
5
5
  SHA512:
6
- metadata.gz: a6b2341a9ee9afb9e56a5333ba806a6db2ff8462e8a1836d3fd1809d86b34b5594bd211d72686558fa87ddfaed0dedd714f6ed5372c45b6acbfe06ce5cc5e7c3
7
- data.tar.gz: 971fe4eca005ec72721e31c6a3d90545d34d7ed39dcd46697cd306451430e184a376b05877c6c7f92657e97e7d2a8261cb8ab6d4c8ae920ccc091b467e406657
6
+ metadata.gz: bccba58fc3db0b4236f93046ef8e8351e25bd9f0f6c1fdce72424fb9baa7589e844fc93ae3539bcd3dc4da6dbab449ae7b20a39e8ed94511a3ec582fa949e76f
7
+ data.tar.gz: a1439fb9005201798b41db86d04f56f2834dde89c4407f7948be889345a520f453300b901488444e1b3180f33150ef3412d61039ee8b38680a637e77f7876458
data/README.md CHANGED
@@ -104,6 +104,8 @@ Or install it yourself as:
104
104
  ss.search_for_service('search') # name
105
105
  ss.search_for_service('please') # description
106
106
  ss.search_for_service('ti.on') # definition
107
+ ss.search_for_service_component('search') # name
108
+ ss.search_for_service_component('please') # description
107
109
  ss.search_domain_perspective('my domain', 'search')
108
110
  ss.search_access_points('one-uri.com')
109
111
 
@@ -34,6 +34,18 @@ module SoarSr
34
34
  success_data({'services' => found})
35
35
  }end
36
36
 
37
+ def search_for_service_component(pattern, full_text = true)
38
+ services = search_for_service(pattern, true, full_text)
39
+ service_components = {}
40
+ if services['status'] == 'success'
41
+ services['data']['services'].each do |service, detail|
42
+ service_components['service'] = detail if detail['key'].include?('service-components')
43
+ end
44
+ result = success_data({'services' => service_components})
45
+ end
46
+ result
47
+ end
48
+
37
49
  def search_for_service(pattern, include_service_components = true, full_text = true)_{
38
50
  provided?(pattern, 'pattern') and length_at_least?(pattern, 4, 'pattern')
39
51
 
@@ -1,3 +1,3 @@
1
1
  module SoarSr
2
- VERSION = "1.1.18"
2
+ VERSION = "1.1.19"
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: 1.1.18
4
+ version: 1.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan