soar_sr 0.1.19 → 1.0.2

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: fbe6193c83e308c69b8e48fdc64c147296b75c91
4
- data.tar.gz: fcaf8df52543e050ee5b2e2eb41d3a869c3e94e5
3
+ metadata.gz: e18e5d17929a083dd927a86f09c5daeb9c3db7e9
4
+ data.tar.gz: b26fe54b0d5b23db4f30cb5f2828f11b72baabd7
5
5
  SHA512:
6
- metadata.gz: 04b3d330cb1566fb6c81e6d9414b459dd8dcb78a0fbe15cac113f76163dee4fc432575c9208a4839204e3821d2a8238daf71a69290cbb0ada55e8764d0f0dcd6
7
- data.tar.gz: 7e56b89a4563f6a76a5f7f201e6820406953127b2d335a4378b81a1f30cd2c20a8e043d8511b89ea60930106e45deae2be369f414146cfeb926ee19baef5fbd1
6
+ metadata.gz: 2d9eed58940680756961a7a2e518a3503b47858f0e598e925af7120ff0226c6dec1dceee487205a2d1c1263c8be888a4444b033d93aa0750d4732d64795de5cc
7
+ data.tar.gz: 44a71bdb9edca8bf4e4a5c676c55bb3f82f1126fdd23f84bc590be925a6b5563faf784b9182af07eaa74947326d38d828d1537c353f3783e287cc75f3b2e9561
data/README.md CHANGED
@@ -41,108 +41,71 @@ Or install it yourself as:
41
41
  ss = @soar_sr.search
42
42
 
43
43
  ### Domain perspectives
44
- ds.delete_all_domain_perspectives
45
44
  ds.list_domain_perspectives
46
- ds.domain_perspective_by_name('domains', 'my domain')
47
- ds.domain_perspective_registered?('my domain')
48
45
  ds.register_domain_perspective('my domain')
49
46
  ds.domain_perspective_registered?('my domain')
47
+ ds.domain_perspective_by_name('domains', 'my domain')
50
48
  ds.deregister_domain_perspective('my domain')
51
- ds.list_domain_perspectives
52
49
 
53
50
  ### Services
54
51
  sv.register_service({'name' => 'my service', 'description' => 'a new service', 'definition' => 'http://de.finiti.on'})
55
52
  sv.service_registered?('my service')
53
+ sv.configure_meta_for_service('my service', {'some' => 'meta'})
54
+ sv.meta_for_service('my service')
56
55
  sv.add_service_uri('my service', 'http://one-uri.com/my_service')
57
56
  sv.add_service_uri('my service', 'http://find-me-here.com/my_service')
58
57
  sv.remove_uri_from_service('my service', 'http://one-uri.com/my_service')
59
58
  sv.service_uris('my service')
60
- sv.configure_meta_for_service('my service', {'some' => 'meta'})
61
- sv.meta_for_service('my service')
62
59
  sv.service_by_name('my service')
63
60
  sv.deregister_service('my service')
64
- sv.service_by_name('my service')
65
61
 
66
62
  ### Service components
67
- sc.delete_all_service_components
68
63
  sc.list_service_components
69
64
  sc.register_service_component('my sc')
70
- sc.service_component_registered?('my sc')
71
65
  sc.configure_service_component_uri('my sc', 'http://my-sc.com')
66
+ sc.service_component_registered?('my sc')
72
67
  sc.service_component_uri('my sc')
73
68
  sc.deregister_service_component('my sc')
74
- sc.service_component_registered?('my sc')
75
69
 
76
70
  ### Service definitions
77
- sv.register_service({'name' => 'my service', 'description' => 'a new service', 'definition' => 'http://de.finiti.on'})
78
- sd.service_definition_for_service('my service')
79
- sd.deregister_service_definition('my service')
80
- sd.service_definition_for_service('my service')
81
71
  sd.register_service_definition('my service', 'http://github.com/myservice/def.wadl')
82
72
  sd.service_definition_for_service('my service')
73
+ sd.deregister_service_definition('my service')
83
74
 
84
75
  ### Teams
85
- ts.team_registered?('my team')
86
76
  ts.register_team('my team')
87
- ds.domain_perspective_by_name('teams', 'my team')
88
77
  ts.team_registered?('my team')
89
78
  ts.deregister_team('my team')
90
- ts.team_registered?('my team')
91
79
 
92
80
  ### Contacts
93
81
  contact = { 'name' => 'Peter Umpkin', 'email' => 'p.umpkin@ppatch.com', 'description' => 'Director of operations', 'phone' => '0917872413'}
94
82
  contact2 = { 'name' => 'Bruce Atman', 'email' => 'b.atman@marvelling.com', 'description' => 'Head of sales'}
95
- ds.register_domain_perspective('my domain')
96
83
  cc.add_contact_to_domain_perspective('my domain', contact)
97
84
  cc.add_contact_to_domain_perspective('my domain', contact2)
98
- cc.contact_details_for_domain('my domain')
85
+ cc.contact_details_for_domain_perspective('my domain')
99
86
  cc.remove_contact_from_domain_perspective('my domain', contact)
100
- ts.register_team('my team')
101
- cc.add_contact_to_domain_perspective('my team', contact2)
102
- cc.contact_details_for_domain('my team')
103
87
 
104
88
  ### Associations
105
- ds.register_domain_perspective('my domain')
106
- as.delete_all_domain_perspective_associations('my domain')
107
- sc.register_service_component('my sc')
108
89
  as.associate_service_component_with_domain_perspective('my sc', 'my domain')
109
90
  as.service_component_has_domain_perspective_associations?('my sc')
110
- as.domain_perspective_associations('my domain')
111
- as.domain_perspective_has_associations?('my domain')
112
- as.disassociate_service_component_from_domain_perspective('my domain', 'my sc')
113
- as.service_component_has_domain_perspective_associations?('my sc')
114
- as.domain_perspective_has_associations?('my domain')
115
-
116
- ds.register_domain_perspective('my domain')
117
- as.delete_all_domain_perspective_associations('my domain')
118
- sv.register_service({'name' => 'my service', 'description' => 'a new service', 'definition' => 'http://de.finiti.on'})
119
91
  as.associate_service_with_domain_perspective('my service', 'my domain')
120
92
  as.domain_perspective_has_associations?('my domain')
121
93
  as.domain_perspective_associations('my domain')
94
+ as.disassociate_service_component_from_domain_perspective('my domain', 'my sc')
122
95
  as.disassociate_service_from_domain_perspective('my domain', 'my service')
123
- as.domain_perspective_associations('my domain')
96
+ as.delete_all_domain_perspective_associations('my domain')
124
97
 
125
98
  ### Search
126
- sv.register_service({'name' => 'search me', 'description' => 'pretty please', 'definition' => 'http://de.finiti.on'})
127
- sv.add_service_uri('search me', 'https://this.is.another.one/ybo')
128
- sv.add_service_uri('search me', 'http://some.where.net/smoothies')
129
- sv.service_uris('search me')
130
- sv.remove_uri_from_service('search me', 'https://this.is.another.one/ybo')
131
- ss.search_for_service('search')
132
- ss.search_for_service('please')
133
- ss.search_for_service('ti.on')
134
- ds.register_domain_perspective('my domain')
135
- as.associate_service_with_domain_perspective('search me', 'my domain')
99
+ #sv.register_service({'name' => 'search me', 'description' => 'pretty please', 'definition' => 'http://de.finiti.on'})
100
+ ss.search_for_service('search') # name
101
+ ss.search_for_service('please') # description
102
+ ss.search_for_service('ti.on') # definition
136
103
  ss.search_domain_perspective('my domain', 'search')
137
- ss.search_domain_perspective('my domain', 'please')
138
- ss.search_domain_perspective('my domain', 'ti.on')
139
104
  ss.search_for_service_by_name('search')
140
- ss.search_for_service_by_name('please')
141
- ss.search_for_service_by_name('ti.on')
142
105
 
143
106
  ## Contributing
144
107
 
145
- Bug reports and feature requests are welcome by email to ernstv dot van dot graan at hetzner dot co dot za. This gem is sponsored by Hetzner (Pty) Ltd (http://hetzner.co.za)
108
+ Bug reports and feature requests are welcome by email to ernst dot van dot graan at hetzner dot co dot za. This gem is sponsored by Hetzner (Pty) Ltd (http://hetzner.co.za)
146
109
 
147
110
 
148
111
  ## License
@@ -23,7 +23,7 @@ module SoarSr
23
23
  @uddi.save_business(id, domain_perspective['name'], domain_perspective['description'], domain_perspective['contacts'])
24
24
  }end
25
25
 
26
- def contact_details_for_domain(domain_perspective)_{
26
+ def contact_details_for_domain_perspective(domain_perspective)_{
27
27
  domain_perspective = standardize(domain_perspective)
28
28
  provided?(domain_perspective, 'domain perspective') and any_registered?(domain_perspective)
29
29
  result = @registry.domain_perspectives.domain_perspective_registered?(domain_perspective)
@@ -1,3 +1,3 @@
1
1
  module SoarSr
2
- VERSION = "0.1.19"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 1.0.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-12-24 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: persistent-cache