soar_sr 1.1.7 → 1.1.8

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: eb471201334f083fd9ef7e6266999391f34db159
4
- data.tar.gz: 7076127319170495b3d0ebc9e4e0beec23484274
3
+ metadata.gz: 3f99a09060456c4c1e1c88811f6823ae8b177688
4
+ data.tar.gz: f672b0acf6180c45dda34efe7b7f29b27e88fb08
5
5
  SHA512:
6
- metadata.gz: 68ca586d0ec0e05f46b9f60ec0f0e2fcc380b67fedf2257a3bb23f16deb4195f0d9e0e1866ac9ac6f278a49b517b217536bba37d3704861b529d3dd7ca434ea9
7
- data.tar.gz: 8a1000819813c1e170532ac12f7e357f70877e8971bfa54026149673fa988a066dde43af0180dcdda094e22f3e85e80962a4268b10263a9ee9f53edc14e0b18b
6
+ metadata.gz: c7ad55f733f1b38cb0a7c467e79b7b98d8f21bdda3d87aa41808f32253bd3626d8f0f67a1da12a8d5064287b279464aa7325e20b9aaed331a4a962f9cf16f4be
7
+ data.tar.gz: 317a418217543dd59dab48543c417c46db677409e1f3f579871a87e6baabcfa905ac269db144ad594fd1af3257e8aecd043b77c7c3987ee850313b2b82d550c0
data/README.md CHANGED
@@ -103,7 +103,7 @@ Or install it yourself as:
103
103
  ss.search_for_service('please') # description
104
104
  ss.search_for_service('ti.on') # definition
105
105
  ss.search_domain_perspective('my domain', 'search')
106
- ss.search_for_service_by_name('search')
106
+ ss.search_access_points('one-uri.com')
107
107
 
108
108
  ## Contributing
109
109
 
@@ -27,10 +27,6 @@ module SoarSr
27
27
  success_data({ 'services' => list })
28
28
  }end
29
29
 
30
- def search_for_service_by_name(name)
31
- search_for_service(name, false, false)
32
- end
33
-
34
30
  def search_services_for_uri(pattern)_{
35
31
  provided?(pattern, 'pattern') and length_at_least?(pattern, 4, 'pattern')
36
32
  result = @registry.services.list_services
@@ -78,16 +74,17 @@ module SoarSr
78
74
 
79
75
  def search_access_points(pattern)
80
76
  found = []
81
- result = search_for_service(pattern, false, true)['data']['services']
77
+ result = @registry.services.list_services['data']['services']
82
78
  result ||= {}
83
79
  result.each do |service, detail|
84
80
  uris = detail['uris']
85
81
  uris ||= {}
86
82
  uris.each do |id, access_details|
87
- access_points = access_details['access_point']
88
- access_points ||= ""
83
+ access_details ||= {}
84
+ access_point = access_details['access_point']
85
+ access_point ||= ""
89
86
  included = (not((access_point =~ /#{pattern}/i).nil?))
90
- found << service if (included and (found[service].nil?))
87
+ found << service if (included and (not found.include?(service)))
91
88
  end
92
89
  end
93
90
  success_data({'services' => found})
@@ -97,7 +97,7 @@ module SoarSr
97
97
  def service_by_name(name)_{
98
98
  service = standardize(service)
99
99
  provided?(name, "service")
100
- services = search_for_service(name)
100
+ services = find_service(name)
101
101
  return extract_service_by_name_from_services_list(services, name) if has_data?(services, 'services')
102
102
  raise FailureErrorError, 'failure finding service by name'
103
103
  }end
@@ -111,7 +111,7 @@ module SoarSr
111
111
  end
112
112
 
113
113
  def list_services
114
- found = search_for_service_by_pattern(ALL_SERVICES)
114
+ found = find_service_by_pattern(ALL_SERVICES)
115
115
 
116
116
  success_data({'services' => found})
117
117
  end
@@ -133,10 +133,10 @@ module SoarSr
133
133
  result
134
134
  end
135
135
 
136
- def search_for_service(pattern)
136
+ def find_service(pattern)
137
137
  provided?(pattern, "pattern") and length_at_least?(pattern, 4, "pattern")
138
138
 
139
- found = search_for_service_by_pattern(pattern)
139
+ found = find_service_by_pattern(pattern)
140
140
 
141
141
  success_data({'services' => found})
142
142
  end
@@ -161,7 +161,7 @@ module SoarSr
161
161
  @uddi.save_service(detail['name'], detail['description'], detail['definition'])
162
162
  end
163
163
 
164
- def search_for_service_by_pattern(pattern)
164
+ def find_service_by_pattern(pattern)
165
165
  services, service_components = find_services_and_service_components(pattern)
166
166
  services = map_service_uris(services)
167
167
  found = services.merge!(service_components)
@@ -1,3 +1,3 @@
1
1
  module SoarSr
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
data/soar_sr.gemspec CHANGED
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "byebug"
28
28
  spec.add_dependency "jsender"
29
29
  spec.add_dependency "soap4juddi", "~> 1.0.3"
30
- spec.add_dependency "connection_pool"
31
30
  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.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan
@@ -14,114 +14,100 @@ dependencies:
14
14
  name: persistent-cache
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: jsender
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: soap4juddi
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.0.3
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.0.3
111
- - !ruby/object:Gem::Dependency
112
- name: connection_pool
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  description: Implementation of the Hetzner Service Registry specification, backed
126
112
  by jUDDI
127
113
  email:
@@ -130,9 +116,9 @@ executables: []
130
116
  extensions: []
131
117
  extra_rdoc_files: []
132
118
  files:
133
- - ".gitignore"
134
- - ".rspec"
135
- - ".travis.yml"
119
+ - .gitignore
120
+ - .rspec
121
+ - .travis.yml
136
122
  - CODE_OF_CONDUCT.md
137
123
  - Gemfile
138
124
  - LICENSE.txt
@@ -167,17 +153,17 @@ require_paths:
167
153
  - lib
168
154
  required_ruby_version: !ruby/object:Gem::Requirement
169
155
  requirements:
170
- - - ">="
156
+ - - '>='
171
157
  - !ruby/object:Gem::Version
172
158
  version: 2.0.0
173
159
  required_rubygems_version: !ruby/object:Gem::Requirement
174
160
  requirements:
175
- - - ">="
161
+ - - '>='
176
162
  - !ruby/object:Gem::Version
177
163
  version: '0'
178
164
  requirements: []
179
165
  rubyforge_project:
180
- rubygems_version: 2.4.8
166
+ rubygems_version: 2.2.2
181
167
  signing_key:
182
168
  specification_version: 4
183
169
  summary: Implementation of the Hetzner Service Registry specification, backed by jUDDI