soar_sr 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/soar_sr/validator.rb +7 -3
- data/lib/soar_sr/version.rb +1 -1
- data/soar_sr.gemspec +3 -0
- metadata +59 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0077fd59cbff3bbb191c5d96f48b253762c3b698
|
4
|
+
data.tar.gz: 141c6020e926b819ca19e79e80d8c77d2ce9b4b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9375fa921ac20013b1921a921eedf71f50d17c6bad03b704cc8c012fd6142929d45bfe6d66efe6fca8583b8c856d1a6336a9716dbe320dc228d5b425184bd45a
|
7
|
+
data.tar.gz: 743cd848c2a403f91b6ce5a085736db1087df2487f5d700d95df42701e9890cd9025ed7586343f6a0dee7f1059e45d14764ad7592b933255f91a7d83c9b6c6a6
|
data/.gitignore
CHANGED
data/lib/soar_sr/validator.rb
CHANGED
@@ -14,14 +14,18 @@ module SoarSr
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def key_provided?(field, key, label)
|
17
|
-
|
18
|
-
|
17
|
+
msg_no = "no #{label} provided"
|
18
|
+
msg_invalid = "invalid #{label} provided"
|
19
|
+
raise ValidationError, msg_no if field.nil?
|
20
|
+
raise ValidationError, msg_invalid if (not field.is_a? Hash)
|
21
|
+
raise ValidationError, msg_no if field[key].nil?
|
22
|
+
raise ValidationError, msg_invalid if (not field[key].is_a? String) or (field[key].strip == "")
|
19
23
|
true
|
20
24
|
end
|
21
25
|
|
22
26
|
|
23
27
|
def length_at_least?(field, min, label)
|
24
|
-
raise ValidationError, "invalid #{label} provided" if (field.size <
|
28
|
+
raise ValidationError, "invalid #{label} provided" if (field.size < min)
|
25
29
|
true
|
26
30
|
end
|
27
31
|
|
data/lib/soar_sr/version.rb
CHANGED
data/soar_sr.gemspec
CHANGED
@@ -24,4 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.10"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "byebug"
|
28
|
+
spec.add_dependency "jsender"
|
29
|
+
spec.add_dependency "soap4juddi"
|
27
30
|
end
|
metadata
CHANGED
@@ -1,69 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_sr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
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
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: byebug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jsender
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: soap4juddi
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
67
109
|
- !ruby/object:Gem::Version
|
68
110
|
version: '0'
|
69
111
|
description: Implementation of the Hetzner Service Registry specification, backed
|
@@ -74,9 +116,9 @@ executables: []
|
|
74
116
|
extensions: []
|
75
117
|
extra_rdoc_files: []
|
76
118
|
files:
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
119
|
+
- .gitignore
|
120
|
+
- .rspec
|
121
|
+
- .travis.yml
|
80
122
|
- CODE_OF_CONDUCT.md
|
81
123
|
- Gemfile
|
82
124
|
- LICENSE.txt
|
@@ -111,18 +153,19 @@ require_paths:
|
|
111
153
|
- lib
|
112
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
155
|
requirements:
|
114
|
-
- -
|
156
|
+
- - '>='
|
115
157
|
- !ruby/object:Gem::Version
|
116
158
|
version: 2.0.0
|
117
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
160
|
requirements:
|
119
|
-
- -
|
161
|
+
- - '>='
|
120
162
|
- !ruby/object:Gem::Version
|
121
163
|
version: '0'
|
122
164
|
requirements: []
|
123
165
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
166
|
+
rubygems_version: 2.2.2
|
125
167
|
signing_key:
|
126
168
|
specification_version: 4
|
127
169
|
summary: Implementation of the Hetzner Service Registry specification, backed by jUDDI
|
128
170
|
test_files: []
|
171
|
+
has_rdoc:
|