schemacop 1.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.rubocop.yml +59 -1
- data/CHANGELOG.md +10 -0
- data/README.md +389 -199
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/doc/Schemacop.html +41 -130
- data/doc/Schemacop/ArrayValidator.html +329 -0
- data/doc/Schemacop/BooleanValidator.html +145 -0
- data/doc/Schemacop/Collector.html +535 -0
- data/doc/Schemacop/Exceptions.html +39 -39
- data/doc/Schemacop/Exceptions/InvalidSchemaError.html +124 -0
- data/doc/Schemacop/Exceptions/ValidationError.html +124 -0
- data/doc/Schemacop/FieldNode.html +409 -0
- data/doc/Schemacop/FloatValidator.html +158 -0
- data/doc/Schemacop/HashValidator.html +263 -0
- data/doc/Schemacop/IntegerValidator.html +158 -0
- data/doc/Schemacop/NilValidator.html +145 -0
- data/doc/Schemacop/Node.html +1426 -0
- data/doc/Schemacop/NodeResolver.html +242 -0
- data/doc/Schemacop/NodeSupportingField.html +590 -0
- data/doc/Schemacop/NodeSupportingType.html +614 -0
- data/doc/Schemacop/NodeWithBlock.html +289 -0
- data/doc/Schemacop/NumberValidator.html +232 -0
- data/doc/Schemacop/ObjectValidator.html +288 -0
- data/doc/Schemacop/RootNode.html +171 -0
- data/doc/Schemacop/Schema.html +697 -0
- data/doc/Schemacop/StringValidator.html +295 -0
- data/doc/ScopedEnv.html +351 -0
- data/doc/_index.html +190 -47
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +244 -91
- data/doc/file.README.html +428 -232
- data/doc/file_list.html +26 -30
- data/doc/frames.html +7 -16
- data/doc/index.html +428 -232
- data/doc/inheritance.graphml +524 -0
- data/doc/inheritance.pdf +825 -0
- data/doc/js/app.js +106 -77
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +494 -38
- data/doc/top-level-namespace.html +36 -36
- data/lib/schemacop.rb +22 -7
- data/lib/schemacop/collector.rb +34 -0
- data/lib/schemacop/exceptions.rb +2 -8
- data/lib/schemacop/field_node.rb +26 -0
- data/lib/schemacop/node.rb +127 -0
- data/lib/schemacop/node_resolver.rb +14 -0
- data/lib/schemacop/node_supporting_field.rb +62 -0
- data/lib/schemacop/node_supporting_type.rb +112 -0
- data/lib/schemacop/node_with_block.rb +16 -0
- data/lib/schemacop/root_node.rb +4 -0
- data/lib/schemacop/schema.rb +61 -0
- data/lib/schemacop/scoped_env.rb +18 -0
- data/lib/schemacop/validator/array_validator.rb +30 -0
- data/lib/schemacop/validator/boolean_validator.rb +5 -0
- data/lib/schemacop/validator/float_validator.rb +5 -0
- data/lib/schemacop/validator/hash_validator.rb +18 -0
- data/lib/schemacop/validator/integer_validator.rb +5 -0
- data/lib/schemacop/validator/nil_validator.rb +5 -0
- data/lib/schemacop/validator/number_validator.rb +19 -0
- data/lib/schemacop/validator/object_validator.rb +21 -0
- data/lib/schemacop/validator/string_validator.rb +37 -0
- data/schemacop.gemspec +7 -5
- data/test/custom_check_test.rb +86 -0
- data/test/custom_if_test.rb +95 -0
- data/test/nil_dis_allow_test.rb +41 -0
- data/test/short_forms_test.rb +316 -0
- data/test/test_helper.rb +6 -0
- data/test/types_test.rb +83 -0
- data/test/validator_array_test.rb +97 -0
- data/test/validator_boolean_test.rb +15 -0
- data/test/validator_float_test.rb +57 -0
- data/test/validator_hash_test.rb +71 -0
- data/test/validator_integer_test.rb +46 -0
- data/test/validator_nil_test.rb +13 -0
- data/test/validator_number_test.rb +60 -0
- data/test/validator_object_test.rb +87 -0
- data/test/validator_string_test.rb +76 -0
- metadata +78 -14
- data/doc/Schemacop/Exceptions/Base.html +0 -127
- data/doc/Schemacop/Exceptions/InvalidSchema.html +0 -141
- data/doc/Schemacop/Exceptions/Validation.html +0 -142
- data/doc/Schemacop/MethodValidation.html +0 -120
- data/doc/Schemacop/MethodValidation/ClassMethods.html +0 -196
- data/doc/Schemacop/Validator.html +0 -254
- data/lib/schemacop/validator.rb +0 -145
- data/test/schemacop_validator_test.rb +0 -257
@@ -0,0 +1,87 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Schemacop
|
4
|
+
class ValidatorObjectTest < Minitest::Test
|
5
|
+
# Classes used in the tests below
|
6
|
+
class User; end
|
7
|
+
class AdminUser; end
|
8
|
+
class SubUser < User; end
|
9
|
+
|
10
|
+
def test_basic
|
11
|
+
s = Schema.new do
|
12
|
+
type :object, classes: User
|
13
|
+
end
|
14
|
+
|
15
|
+
assert_nil s.validate!(User.new)
|
16
|
+
assert_verr { s.validate!(SubUser.new) }
|
17
|
+
assert_verr { s.validate!(AdminUser.new) }
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_multiple_classes_long
|
21
|
+
s = Schema.new do
|
22
|
+
type :object, classes: User
|
23
|
+
type :object, classes: AdminUser
|
24
|
+
end
|
25
|
+
|
26
|
+
assert_nil s.validate!(User.new)
|
27
|
+
assert_nil s.validate!(AdminUser.new)
|
28
|
+
assert_verr { s.validate!(SubUser.new) }
|
29
|
+
assert_verr { s.validate!([User.new, AdminUser.new]) }
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_multiple_classes_short
|
33
|
+
s = Schema.new do
|
34
|
+
type :object, classes: [User, AdminUser]
|
35
|
+
end
|
36
|
+
|
37
|
+
assert_nil s.validate!(User.new)
|
38
|
+
assert_nil s.validate!(AdminUser.new)
|
39
|
+
assert_verr { s.validate!(SubUser.new) }
|
40
|
+
assert_verr { s.validate!([User.new, AdminUser.new]) }
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_hash_of_objects
|
44
|
+
s = Schema.new do
|
45
|
+
req :user do
|
46
|
+
type :object, classes: User
|
47
|
+
end
|
48
|
+
opt :multitype do
|
49
|
+
type :object, classes: [User, AdminUser]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
assert_nil s.validate!(user: User.new)
|
54
|
+
assert_nil s.validate!(user: User.new, multitype: AdminUser.new)
|
55
|
+
assert_nil s.validate!(user: User.new, multitype: User.new)
|
56
|
+
assert_verr { s.validate!(user: AdminUser.new) }
|
57
|
+
assert_verr { s.validate!(user: User.new, multitype: 12) }
|
58
|
+
assert_verr { s.validate!(user: User.new, multitype: self) }
|
59
|
+
end
|
60
|
+
|
61
|
+
def test_any
|
62
|
+
s = Schema.new do
|
63
|
+
type :object
|
64
|
+
end
|
65
|
+
|
66
|
+
assert_nil s.validate!(User.new)
|
67
|
+
assert_nil s.validate!(123)
|
68
|
+
assert_nil s.validate!('sali')
|
69
|
+
assert_nil s.validate!(self)
|
70
|
+
assert_nil s.validate!(self.class)
|
71
|
+
assert_verr { s.validate!(nil) }
|
72
|
+
end
|
73
|
+
|
74
|
+
def test_any_in_hash
|
75
|
+
s = Schema.new do
|
76
|
+
req :fld do
|
77
|
+
type :object
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
assert_nil s.validate!(fld: User.new)
|
82
|
+
assert_nil s.validate!(fld: self)
|
83
|
+
assert_verr { s.validate!(fld: nil) }
|
84
|
+
assert_verr { s.validate!({}) }
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Schemacop
|
4
|
+
class ValidatorStringTest < Minitest::Test
|
5
|
+
def test_basic
|
6
|
+
s = Schema.new do
|
7
|
+
type :string
|
8
|
+
end
|
9
|
+
assert_nil s.validate! ''
|
10
|
+
assert_nil s.validate! 'abc'
|
11
|
+
assert_nil s.validate! 123.to_s
|
12
|
+
assert_nil s.validate! inspect
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_option_min
|
16
|
+
s = Schema.new do
|
17
|
+
type :string, min: 3
|
18
|
+
end
|
19
|
+
|
20
|
+
assert_nil s.validate!('abc')
|
21
|
+
assert_nil s.validate!('abcd')
|
22
|
+
assert_verr { s.validate!('ab') }
|
23
|
+
assert_verr { s.validate!('') }
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_option_max
|
27
|
+
s = Schema.new do
|
28
|
+
type :string, max: 5
|
29
|
+
end
|
30
|
+
|
31
|
+
assert_nil s.validate!('')
|
32
|
+
assert_nil s.validate!('abcd')
|
33
|
+
assert_nil s.validate!('abcde')
|
34
|
+
assert_verr { s.validate!('abcdef') }
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_options_min_max
|
38
|
+
s = Schema.new do
|
39
|
+
type :string, min: 3, max: 5
|
40
|
+
end
|
41
|
+
|
42
|
+
assert_nil s.validate!('abc')
|
43
|
+
assert_nil s.validate!('abcd')
|
44
|
+
assert_nil s.validate!('abcde')
|
45
|
+
assert_verr { s.validate!('ab') }
|
46
|
+
assert_verr { s.validate!('abcdef') }
|
47
|
+
assert_verr { s.validate!('') }
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_float_options
|
51
|
+
assert_raises Exceptions::InvalidSchemaError, 'String option :min must be an integer >= 0.' do
|
52
|
+
Schema.new do
|
53
|
+
type :string, min: 3.2
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
assert_raises Exceptions::InvalidSchemaError, 'String option :max must be an integer >= 0.' do
|
58
|
+
Schema.new do
|
59
|
+
type :string, max: 5.2
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
assert_raises Exceptions::InvalidSchemaError, 'String option :min must be an integer >= 0.' do
|
64
|
+
Schema.new do
|
65
|
+
type :string, min: 3.2, max: 5
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
assert_raises Exceptions::InvalidSchemaError, 'String option :max must be an integer >= 0.' do
|
70
|
+
Schema.new do
|
71
|
+
type :string, min: 3, max: 5.2
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schemacop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sitrox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,13 +155,28 @@ files:
|
|
155
155
|
- Rakefile
|
156
156
|
- VERSION
|
157
157
|
- doc/Schemacop.html
|
158
|
+
- doc/Schemacop/ArrayValidator.html
|
159
|
+
- doc/Schemacop/BooleanValidator.html
|
160
|
+
- doc/Schemacop/Collector.html
|
158
161
|
- doc/Schemacop/Exceptions.html
|
159
|
-
- doc/Schemacop/Exceptions/
|
160
|
-
- doc/Schemacop/Exceptions/
|
161
|
-
- doc/Schemacop/
|
162
|
-
- doc/Schemacop/
|
163
|
-
- doc/Schemacop/
|
164
|
-
- doc/Schemacop/
|
162
|
+
- doc/Schemacop/Exceptions/InvalidSchemaError.html
|
163
|
+
- doc/Schemacop/Exceptions/ValidationError.html
|
164
|
+
- doc/Schemacop/FieldNode.html
|
165
|
+
- doc/Schemacop/FloatValidator.html
|
166
|
+
- doc/Schemacop/HashValidator.html
|
167
|
+
- doc/Schemacop/IntegerValidator.html
|
168
|
+
- doc/Schemacop/NilValidator.html
|
169
|
+
- doc/Schemacop/Node.html
|
170
|
+
- doc/Schemacop/NodeResolver.html
|
171
|
+
- doc/Schemacop/NodeSupportingField.html
|
172
|
+
- doc/Schemacop/NodeSupportingType.html
|
173
|
+
- doc/Schemacop/NodeWithBlock.html
|
174
|
+
- doc/Schemacop/NumberValidator.html
|
175
|
+
- doc/Schemacop/ObjectValidator.html
|
176
|
+
- doc/Schemacop/RootNode.html
|
177
|
+
- doc/Schemacop/Schema.html
|
178
|
+
- doc/Schemacop/StringValidator.html
|
179
|
+
- doc/ScopedEnv.html
|
165
180
|
- doc/_index.html
|
166
181
|
- doc/class_list.html
|
167
182
|
- doc/css/common.css
|
@@ -171,18 +186,53 @@ files:
|
|
171
186
|
- doc/file_list.html
|
172
187
|
- doc/frames.html
|
173
188
|
- doc/index.html
|
189
|
+
- doc/inheritance.graphml
|
190
|
+
- doc/inheritance.pdf
|
174
191
|
- doc/js/app.js
|
175
192
|
- doc/js/full_list.js
|
176
193
|
- doc/js/jquery.js
|
177
194
|
- doc/method_list.html
|
178
195
|
- doc/top-level-namespace.html
|
179
196
|
- lib/schemacop.rb
|
197
|
+
- lib/schemacop/collector.rb
|
180
198
|
- lib/schemacop/exceptions.rb
|
181
|
-
- lib/schemacop/
|
199
|
+
- lib/schemacop/field_node.rb
|
200
|
+
- lib/schemacop/node.rb
|
201
|
+
- lib/schemacop/node_resolver.rb
|
202
|
+
- lib/schemacop/node_supporting_field.rb
|
203
|
+
- lib/schemacop/node_supporting_type.rb
|
204
|
+
- lib/schemacop/node_with_block.rb
|
205
|
+
- lib/schemacop/root_node.rb
|
206
|
+
- lib/schemacop/schema.rb
|
207
|
+
- lib/schemacop/scoped_env.rb
|
208
|
+
- lib/schemacop/validator/array_validator.rb
|
209
|
+
- lib/schemacop/validator/boolean_validator.rb
|
210
|
+
- lib/schemacop/validator/float_validator.rb
|
211
|
+
- lib/schemacop/validator/hash_validator.rb
|
212
|
+
- lib/schemacop/validator/integer_validator.rb
|
213
|
+
- lib/schemacop/validator/nil_validator.rb
|
214
|
+
- lib/schemacop/validator/number_validator.rb
|
215
|
+
- lib/schemacop/validator/object_validator.rb
|
216
|
+
- lib/schemacop/validator/string_validator.rb
|
182
217
|
- schemacop.gemspec
|
183
|
-
- test/
|
184
|
-
|
185
|
-
|
218
|
+
- test/custom_check_test.rb
|
219
|
+
- test/custom_if_test.rb
|
220
|
+
- test/nil_dis_allow_test.rb
|
221
|
+
- test/short_forms_test.rb
|
222
|
+
- test/test_helper.rb
|
223
|
+
- test/types_test.rb
|
224
|
+
- test/validator_array_test.rb
|
225
|
+
- test/validator_boolean_test.rb
|
226
|
+
- test/validator_float_test.rb
|
227
|
+
- test/validator_hash_test.rb
|
228
|
+
- test/validator_integer_test.rb
|
229
|
+
- test/validator_nil_test.rb
|
230
|
+
- test/validator_number_test.rb
|
231
|
+
- test/validator_object_test.rb
|
232
|
+
- test/validator_string_test.rb
|
233
|
+
homepage: https://github.com/sitrox/schemacop
|
234
|
+
licenses:
|
235
|
+
- MIT
|
186
236
|
metadata: {}
|
187
237
|
post_install_message:
|
188
238
|
rdoc_options: []
|
@@ -200,10 +250,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
250
|
version: '0'
|
201
251
|
requirements: []
|
202
252
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.6.
|
253
|
+
rubygems_version: 2.6.8
|
204
254
|
signing_key:
|
205
255
|
specification_version: 4
|
206
256
|
summary: Schemacop validates ruby structures consisting of nested hashes and arrays
|
207
257
|
against simple schema definitions.
|
208
258
|
test_files:
|
209
|
-
- test/
|
259
|
+
- test/custom_check_test.rb
|
260
|
+
- test/custom_if_test.rb
|
261
|
+
- test/nil_dis_allow_test.rb
|
262
|
+
- test/short_forms_test.rb
|
263
|
+
- test/test_helper.rb
|
264
|
+
- test/types_test.rb
|
265
|
+
- test/validator_array_test.rb
|
266
|
+
- test/validator_boolean_test.rb
|
267
|
+
- test/validator_float_test.rb
|
268
|
+
- test/validator_hash_test.rb
|
269
|
+
- test/validator_integer_test.rb
|
270
|
+
- test/validator_nil_test.rb
|
271
|
+
- test/validator_number_test.rb
|
272
|
+
- test/validator_object_test.rb
|
273
|
+
- test/validator_string_test.rb
|
@@ -1,127 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Exception: Schemacop::Exceptions::Base
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.6
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Schemacop/Exceptions/Base.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (B)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Schemacop.html" title="Schemacop (module)">Schemacop</a></span></span> » <span class='title'><span class='object_link'><a href="../Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Base</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Exception: Schemacop::Exceptions::Base
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">StandardError</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">StandardError</li>
|
82
|
-
|
83
|
-
<li class="next">Schemacop::Exceptions::Base</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<dt class="r2 last">Defined in:</dt>
|
99
|
-
<dd class="r2 last">lib/schemacop/exceptions.rb</dd>
|
100
|
-
|
101
|
-
</dl>
|
102
|
-
<div class="clear"></div>
|
103
|
-
|
104
|
-
<div id="subclasses">
|
105
|
-
<h2>Direct Known Subclasses</h2>
|
106
|
-
<p class="children"><span class='object_link'><a href="InvalidSchema.html" title="Schemacop::Exceptions::InvalidSchema (class)">InvalidSchema</a></span>, <span class='object_link'><a href="Validation.html" title="Schemacop::Exceptions::Validation (class)">Validation</a></span></p>
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="footer">
|
121
|
-
Generated on Thu Oct 6 19:45:02 2016 by
|
122
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
|
-
0.8.7.6 (ruby-2.3.1).
|
124
|
-
</div>
|
125
|
-
|
126
|
-
</body>
|
127
|
-
</html>
|
@@ -1,141 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Exception: Schemacop::Exceptions::InvalidSchema
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.6
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Schemacop/Exceptions/InvalidSchema.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (I)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Schemacop.html" title="Schemacop (module)">Schemacop</a></span></span> » <span class='title'><span class='object_link'><a href="../Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">InvalidSchema</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Exception: Schemacop::Exceptions::InvalidSchema
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Schemacop::Exceptions::Base (class)">Base</a></span></span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">StandardError</li>
|
82
|
-
|
83
|
-
<li class="next"><span class='object_link'><a href="Base.html" title="Schemacop::Exceptions::Base (class)">Base</a></span></li>
|
84
|
-
|
85
|
-
<li class="next">Schemacop::Exceptions::InvalidSchema</li>
|
86
|
-
|
87
|
-
</ul>
|
88
|
-
<a href="#" class="inheritanceTree">show all</a>
|
89
|
-
|
90
|
-
</dd>
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<dt class="r2 last">Defined in:</dt>
|
101
|
-
<dd class="r2 last">lib/schemacop/exceptions.rb</dd>
|
102
|
-
|
103
|
-
</dl>
|
104
|
-
<div class="clear"></div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
<p>This exception is thrown when the given schema definition format is invalid.</p>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div class="tags">
|
114
|
-
|
115
|
-
|
116
|
-
</div>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
</div>
|
133
|
-
|
134
|
-
<div id="footer">
|
135
|
-
Generated on Thu Oct 6 19:45:02 2016 by
|
136
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
|
-
0.8.7.6 (ruby-2.3.1).
|
138
|
-
</div>
|
139
|
-
|
140
|
-
</body>
|
141
|
-
</html>
|