schemacop 1.0.1 → 1.0.2
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/README.md +2 -1
- data/RUBY_VERSION +1 -1
- data/VERSION +1 -1
- data/doc/Schemacop/Exceptions/Base.html +2 -2
- data/doc/Schemacop/Exceptions/InvalidSchema.html +2 -2
- data/doc/Schemacop/Exceptions/Validation.html +2 -2
- data/doc/Schemacop/Exceptions.html +2 -2
- data/doc/Schemacop/MethodValidation/ClassMethods.html +196 -0
- data/doc/Schemacop/MethodValidation.html +120 -0
- data/doc/Schemacop/Validator.html +2 -2
- data/doc/Schemacop.html +4 -4
- data/doc/_index.html +32 -2
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +4 -3
- data/doc/index.html +4 -3
- data/doc/method_list.html +7 -1
- data/doc/top-level-namespace.html +2 -2
- data/lib/schemacop/validator.rb +1 -0
- data/schemacop.gemspec +38 -38
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05947ea28e58709d2fbdbb5407b1783fae64ddc8
|
|
4
|
+
data.tar.gz: f33a9bacaf59ad149f29e809ff3417c86a2fc3c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a23f0191e0b8954cb9b0debe38067a3fb33921b52023c76b2d68b854d2447db13619f36e3184e705e951ac90a02cfcac71f2d50090a284ffd060ef04228d109
|
|
7
|
+
data.tar.gz: 5698d5dac2965b9f453715bb66a584cabeff4875b707c1cb3ca4f675cc4f33f5059c3c9fb163c2fb0f6c0833dc7a9e5d7e01862272283fda995aae96609e682f
|
data/README.md
CHANGED
|
@@ -336,7 +336,8 @@ Schemacop will throw one of the following checked exceptions:
|
|
|
336
336
|
## Contributors
|
|
337
337
|
|
|
338
338
|
Thanks to [Rubocop](https://github.com/bbatsov/rubocop) for great inspiration
|
|
339
|
-
concerning their name and the structure of their README file.
|
|
339
|
+
concerning their name and the structure of their README file. And special thanks to
|
|
340
|
+
[SubGit](http://www.subgit.com/) for their great open source licensing.
|
|
340
341
|
|
|
341
342
|
## Copyright
|
|
342
343
|
|
data/RUBY_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-2.
|
|
1
|
+
ruby-2.3.1-p112
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.2
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on
|
|
121
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
|
-
0.8.7.6 (ruby-2.
|
|
123
|
+
0.8.7.6 (ruby-2.3.1).
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
</body>
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
</div>
|
|
133
133
|
|
|
134
134
|
<div id="footer">
|
|
135
|
-
Generated on
|
|
135
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
137
|
-
0.8.7.6 (ruby-2.
|
|
137
|
+
0.8.7.6 (ruby-2.3.1).
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
140
|
</body>
|
|
@@ -133,9 +133,9 @@ schema definition.</p>
|
|
|
133
133
|
</div>
|
|
134
134
|
|
|
135
135
|
<div id="footer">
|
|
136
|
-
Generated on
|
|
136
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
138
|
-
0.8.7.6 (ruby-2.
|
|
138
|
+
0.8.7.6 (ruby-2.3.1).
|
|
139
139
|
</div>
|
|
140
140
|
|
|
141
141
|
</body>
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
</div>
|
|
107
107
|
|
|
108
108
|
<div id="footer">
|
|
109
|
-
Generated on
|
|
109
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
111
|
-
0.8.7.6 (ruby-2.
|
|
111
|
+
0.8.7.6 (ruby-2.3.1).
|
|
112
112
|
</div>
|
|
113
113
|
|
|
114
114
|
</body>
|
|
@@ -0,0 +1,196 @@
|
|
|
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
|
+
Module: Schemacop::MethodValidation::ClassMethods
|
|
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/MethodValidation/ClassMethods.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 (C)</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="../MethodValidation.html" title="Schemacop::MethodValidation (module)">MethodValidation</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">ClassMethods</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>Module: Schemacop::MethodValidation::ClassMethods
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
<dt class="r1 last">Defined in:</dt>
|
|
82
|
+
<dd class="r1 last">lib/schemacop/method_validation.rb</dd>
|
|
83
|
+
|
|
84
|
+
</dl>
|
|
85
|
+
<div class="clear"></div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<h2>
|
|
96
|
+
Instance Method Summary
|
|
97
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
98
|
+
</h2>
|
|
99
|
+
|
|
100
|
+
<ul class="summary">
|
|
101
|
+
|
|
102
|
+
<li class="public ">
|
|
103
|
+
<span class="summary_signature">
|
|
104
|
+
|
|
105
|
+
<a href="#schema_for-instance_method" title="#schema_for (instance method)">- (Object) <strong>schema_for</strong>(method, schema) </a>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
</span>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
120
|
+
|
|
121
|
+
</li>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</ul>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<div id="instance_method_details" class="method_details_list">
|
|
130
|
+
<h2>Instance Method Details</h2>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<div class="method_details first">
|
|
134
|
+
<h3 class="signature first" id="schema_for-instance_method">
|
|
135
|
+
|
|
136
|
+
- (<tt>Object</tt>) <strong>schema_for</strong>(method, schema)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</h3><table class="source_code">
|
|
143
|
+
<tr>
|
|
144
|
+
<td>
|
|
145
|
+
<pre class="lines">
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
6
|
|
149
|
+
7
|
|
150
|
+
8
|
|
151
|
+
9
|
|
152
|
+
10
|
|
153
|
+
11
|
|
154
|
+
12
|
|
155
|
+
13
|
|
156
|
+
14
|
|
157
|
+
15
|
|
158
|
+
16
|
|
159
|
+
17
|
|
160
|
+
18
|
|
161
|
+
19</pre>
|
|
162
|
+
</td>
|
|
163
|
+
<td>
|
|
164
|
+
<pre class="code"><span class="info file"># File 'lib/schemacop/method_validation.rb', line 6</span>
|
|
165
|
+
|
|
166
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_schema_for'>schema_for</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_schema'>schema</span><span class='rparen'>)</span>
|
|
167
|
+
<span class='id identifier rubyid_alias_method_name'>alias_method_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_method'>method</span><span class='embexpr_end'>}</span><span class='tstring_content'>_without_schema_validation</span><span class='tstring_end'>"</span></span>
|
|
168
|
+
<span class='id identifier rubyid_alias_method'>alias_method</span> <span class='id identifier rubyid_alias_method_name'>alias_method_name</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span>
|
|
169
|
+
|
|
170
|
+
<span class='id identifier rubyid_define_method'>define_method</span> <span class='id identifier rubyid_method'>method</span> <span class='kw'>do</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
|
171
|
+
<span class='kw'>begin</span>
|
|
172
|
+
<span class='const'>Schemacop</span><span class='period'>.</span><span class='id identifier rubyid_validate!'>validate!</span><span class='lparen'>(</span><span class='id identifier rubyid_schema'>schema</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
173
|
+
<span class='kw'>rescue</span> <span class='const'>Schemacop</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>Validation</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
|
174
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span>
|
|
175
|
+
<span class='kw'>end</span>
|
|
176
|
+
|
|
177
|
+
<span class='id identifier rubyid_send'>send</span> <span class='id identifier rubyid_alias_method_name'>alias_method_name</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span>
|
|
178
|
+
<span class='kw'>end</span>
|
|
179
|
+
<span class='kw'>end</span></pre>
|
|
180
|
+
</td>
|
|
181
|
+
</tr>
|
|
182
|
+
</table>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<div id="footer">
|
|
190
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
191
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
192
|
+
0.8.7.6 (ruby-2.3.1).
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
</body>
|
|
196
|
+
</html>
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
Module: Schemacop::MethodValidation
|
|
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/MethodValidation.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 (M)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../Schemacop.html" title="Schemacop (module)">Schemacop</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">MethodValidation</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>Module: Schemacop::MethodValidation
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<dt class="r1">Extended by:</dt>
|
|
77
|
+
<dd class="r1">ActiveSupport::Concern</dd>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
|
86
|
+
<dd class="r2 last">lib/schemacop/method_validation.rb</dd>
|
|
87
|
+
|
|
88
|
+
</dl>
|
|
89
|
+
<div class="clear"></div>
|
|
90
|
+
|
|
91
|
+
<h2>Defined Under Namespace</h2>
|
|
92
|
+
<p class="children">
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="MethodValidation/ClassMethods.html" title="Schemacop::MethodValidation::ClassMethods (module)">ClassMethods</a></span>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<div id="footer">
|
|
114
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
115
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
116
|
+
0.8.7.6 (ruby-2.3.1).
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
</body>
|
|
120
|
+
</html>
|
|
@@ -245,9 +245,9 @@
|
|
|
245
245
|
</div>
|
|
246
246
|
|
|
247
247
|
<div id="footer">
|
|
248
|
-
Generated on
|
|
248
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
249
249
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
250
|
-
0.8.7.6 (ruby-2.
|
|
250
|
+
0.8.7.6 (ruby-2.3.1).
|
|
251
251
|
</div>
|
|
252
252
|
|
|
253
253
|
</body>
|
data/doc/Schemacop.html
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
|
82
82
|
<dd class="r1 last">lib/schemacop.rb<span class="defines">,<br />
|
|
83
|
-
lib/schemacop/validator.rb</span>
|
|
83
|
+
lib/schemacop/validator.rb,<br /> lib/schemacop/method_validation.rb</span>
|
|
84
84
|
</dd>
|
|
85
85
|
|
|
86
86
|
</dl>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<p class="children">
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Schemacop/Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span>
|
|
93
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Schemacop/Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span>, <span class='object_link'><a href="Schemacop/MethodValidation.html" title="Schemacop::MethodValidation (module)">MethodValidation</a></span>
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
</div>
|
|
200
200
|
|
|
201
201
|
<div id="footer">
|
|
202
|
-
Generated on
|
|
202
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
203
203
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
204
|
-
0.8.7.6 (ruby-2.
|
|
204
|
+
0.8.7.6 (ruby-2.3.1).
|
|
205
205
|
</div>
|
|
206
206
|
|
|
207
207
|
</body>
|
data/doc/_index.html
CHANGED
|
@@ -95,6 +95,21 @@
|
|
|
95
95
|
</ul>
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
<ul id="alpha_C" class="alpha">
|
|
99
|
+
<li class="letter">C</li>
|
|
100
|
+
<ul>
|
|
101
|
+
|
|
102
|
+
<li>
|
|
103
|
+
<span class='object_link'><a href="Schemacop/MethodValidation/ClassMethods.html" title="Schemacop::MethodValidation::ClassMethods (module)">ClassMethods</a></span>
|
|
104
|
+
|
|
105
|
+
<small>(Schemacop::MethodValidation)</small>
|
|
106
|
+
|
|
107
|
+
</li>
|
|
108
|
+
|
|
109
|
+
</ul>
|
|
110
|
+
</ul>
|
|
111
|
+
|
|
112
|
+
|
|
98
113
|
<ul id="alpha_E" class="alpha">
|
|
99
114
|
<li class="letter">E</li>
|
|
100
115
|
<ul>
|
|
@@ -125,6 +140,21 @@
|
|
|
125
140
|
</ul>
|
|
126
141
|
|
|
127
142
|
|
|
143
|
+
<ul id="alpha_M" class="alpha">
|
|
144
|
+
<li class="letter">M</li>
|
|
145
|
+
<ul>
|
|
146
|
+
|
|
147
|
+
<li>
|
|
148
|
+
<span class='object_link'><a href="Schemacop/MethodValidation.html" title="Schemacop::MethodValidation (module)">MethodValidation</a></span>
|
|
149
|
+
|
|
150
|
+
<small>(Schemacop)</small>
|
|
151
|
+
|
|
152
|
+
</li>
|
|
153
|
+
|
|
154
|
+
</ul>
|
|
155
|
+
</ul>
|
|
156
|
+
|
|
157
|
+
|
|
128
158
|
<ul id="alpha_S" class="alpha">
|
|
129
159
|
<li class="letter">S</li>
|
|
130
160
|
<ul>
|
|
@@ -168,9 +198,9 @@
|
|
|
168
198
|
</div>
|
|
169
199
|
|
|
170
200
|
<div id="footer">
|
|
171
|
-
Generated on
|
|
201
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
172
202
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
173
|
-
0.8.7.6 (ruby-2.
|
|
203
|
+
0.8.7.6 (ruby-2.3.1).
|
|
174
204
|
</div>
|
|
175
205
|
|
|
176
206
|
</body>
|
data/doc/class_list.html
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
<ul id="full_list" class="class">
|
|
52
52
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
|
53
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="Schemacop.html" title="Schemacop (module)">Schemacop</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="Schemacop/Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span><small class='search_info'>Schemacop</small></li><ul><li><span class='object_link'><a href="Schemacop/Exceptions/Base.html" title="Schemacop::Exceptions::Base (class)">Base</a></span> < StandardError<small class='search_info'>Schemacop::Exceptions</small></li><li><span class='object_link'><a href="Schemacop/Exceptions/InvalidSchema.html" title="Schemacop::Exceptions::InvalidSchema (class)">InvalidSchema</a></span> < Base<small class='search_info'>Schemacop::Exceptions</small></li><li><span class='object_link'><a href="Schemacop/Exceptions/Validation.html" title="Schemacop::Exceptions::Validation (class)">Validation</a></span> < Base<small class='search_info'>Schemacop::Exceptions</small></li></ul><li><span class='object_link'><a href="Schemacop/Validator.html" title="Schemacop::Validator (class)">Validator</a></span> < Object<small class='search_info'>Schemacop</small></li></ul>
|
|
53
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="Schemacop.html" title="Schemacop (module)">Schemacop</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="Schemacop/Exceptions.html" title="Schemacop::Exceptions (module)">Exceptions</a></span><small class='search_info'>Schemacop</small></li><ul><li><span class='object_link'><a href="Schemacop/Exceptions/Base.html" title="Schemacop::Exceptions::Base (class)">Base</a></span> < StandardError<small class='search_info'>Schemacop::Exceptions</small></li><li><span class='object_link'><a href="Schemacop/Exceptions/InvalidSchema.html" title="Schemacop::Exceptions::InvalidSchema (class)">InvalidSchema</a></span> < Base<small class='search_info'>Schemacop::Exceptions</small></li><li><span class='object_link'><a href="Schemacop/Exceptions/Validation.html" title="Schemacop::Exceptions::Validation (class)">Validation</a></span> < Base<small class='search_info'>Schemacop::Exceptions</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="Schemacop/MethodValidation.html" title="Schemacop::MethodValidation (module)">MethodValidation</a></span><small class='search_info'>Schemacop</small></li><ul><li><span class='object_link'><a href="Schemacop/MethodValidation/ClassMethods.html" title="Schemacop::MethodValidation::ClassMethods (module)">ClassMethods</a></span><small class='search_info'>Schemacop::MethodValidation</small></li></ul><li><span class='object_link'><a href="Schemacop/Validator.html" title="Schemacop::Validator (class)">Validator</a></span> < Object<small class='search_info'>Schemacop</small></li></ul>
|
|
54
54
|
|
|
55
55
|
</ul>
|
|
56
56
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -385,7 +385,8 @@ needs to be given only if field <code>b</code> is present).</p></li>
|
|
|
385
385
|
<h2>Contributors</h2>
|
|
386
386
|
|
|
387
387
|
<p>Thanks to <a href="https://github.com/bbatsov/rubocop">Rubocop</a> for great inspiration
|
|
388
|
-
concerning their name and the structure of their README file
|
|
388
|
+
concerning their name and the structure of their README file. And special thanks to
|
|
389
|
+
<a href="http://www.subgit.com/">SubGit</a> for their great open source licensing.</p>
|
|
389
390
|
|
|
390
391
|
<h2>Copyright</h2>
|
|
391
392
|
|
|
@@ -393,9 +394,9 @@ concerning their name and the structure of their README file.</p>
|
|
|
393
394
|
</div></div>
|
|
394
395
|
|
|
395
396
|
<div id="footer">
|
|
396
|
-
Generated on
|
|
397
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
397
398
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
398
|
-
0.8.7.6 (ruby-2.
|
|
399
|
+
0.8.7.6 (ruby-2.3.1).
|
|
399
400
|
</div>
|
|
400
401
|
|
|
401
402
|
</body>
|
data/doc/index.html
CHANGED
|
@@ -385,7 +385,8 @@ needs to be given only if field <code>b</code> is present).</p></li>
|
|
|
385
385
|
<h2>Contributors</h2>
|
|
386
386
|
|
|
387
387
|
<p>Thanks to <a href="https://github.com/bbatsov/rubocop">Rubocop</a> for great inspiration
|
|
388
|
-
concerning their name and the structure of their README file
|
|
388
|
+
concerning their name and the structure of their README file. And special thanks to
|
|
389
|
+
<a href="http://www.subgit.com/">SubGit</a> for their great open source licensing.</p>
|
|
389
390
|
|
|
390
391
|
<h2>Copyright</h2>
|
|
391
392
|
|
|
@@ -393,9 +394,9 @@ concerning their name and the structure of their README file.</p>
|
|
|
393
394
|
</div></div>
|
|
394
395
|
|
|
395
396
|
<div id="footer">
|
|
396
|
-
Generated on
|
|
397
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
397
398
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
398
|
-
0.8.7.6 (ruby-2.
|
|
399
|
+
0.8.7.6 (ruby-2.3.1).
|
|
399
400
|
</div>
|
|
400
401
|
|
|
401
402
|
</body>
|
data/doc/method_list.html
CHANGED
|
@@ -52,12 +52,18 @@
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
<li class="r1 ">
|
|
55
|
+
<span class='object_link'><a href="Schemacop/MethodValidation/ClassMethods.html#schema_for-instance_method" title="Schemacop::MethodValidation::ClassMethods#schema_for (method)">#schema_for</a></span>
|
|
56
|
+
<small>Schemacop::MethodValidation::ClassMethods</small>
|
|
57
|
+
</li>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<li class="r2 ">
|
|
55
61
|
<span class='object_link'><a href="Schemacop.html#validate%21-class_method" title="Schemacop.validate! (method)">validate!</a></span>
|
|
56
62
|
<small>Schemacop</small>
|
|
57
63
|
</li>
|
|
58
64
|
|
|
59
65
|
|
|
60
|
-
<li class="
|
|
66
|
+
<li class="r1 ">
|
|
61
67
|
<span class='object_link'><a href="Schemacop/Validator.html#validate%21-class_method" title="Schemacop::Validator.validate! (method)">validate!</a></span>
|
|
62
68
|
<small>Schemacop::Validator</small>
|
|
63
69
|
</li>
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on
|
|
106
|
+
Generated on Thu Oct 6 19:45:02 2016 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
|
-
0.8.7.6 (ruby-2.
|
|
108
|
+
0.8.7.6 (ruby-2.3.1).
|
|
109
109
|
</div>
|
|
110
110
|
|
|
111
111
|
</body>
|
data/lib/schemacop/validator.rb
CHANGED
data/schemacop.gemspec
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: schemacop 1.0.
|
|
2
|
+
# stub: schemacop 1.0.2 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
|
-
s.name = "schemacop"
|
|
6
|
-
s.version = "1.0.
|
|
5
|
+
s.name = "schemacop".freeze
|
|
6
|
+
s.version = "1.0.2"
|
|
7
7
|
|
|
8
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
|
-
s.
|
|
10
|
-
s.
|
|
11
|
-
s.
|
|
12
|
-
s.
|
|
13
|
-
s.rubygems_version = "2.
|
|
14
|
-
s.summary = "Schemacop validates ruby structures consisting of nested hashes and arrays against simple schema definitions."
|
|
15
|
-
s.test_files = ["test/schemacop_validator_test.rb"]
|
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
|
+
s.require_paths = ["lib".freeze]
|
|
10
|
+
s.authors = ["Sitrox".freeze]
|
|
11
|
+
s.date = "2016-10-06"
|
|
12
|
+
s.files = [".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".travis.yml".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "RUBY_VERSION".freeze, "Rakefile".freeze, "VERSION".freeze, "doc/Schemacop.html".freeze, "doc/Schemacop/Exceptions.html".freeze, "doc/Schemacop/Exceptions/Base.html".freeze, "doc/Schemacop/Exceptions/InvalidSchema.html".freeze, "doc/Schemacop/Exceptions/Validation.html".freeze, "doc/Schemacop/MethodValidation.html".freeze, "doc/Schemacop/MethodValidation/ClassMethods.html".freeze, "doc/Schemacop/Validator.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/top-level-namespace.html".freeze, "lib/schemacop.rb".freeze, "lib/schemacop/exceptions.rb".freeze, "lib/schemacop/validator.rb".freeze, "schemacop.gemspec".freeze, "test/schemacop_validator_test.rb".freeze]
|
|
13
|
+
s.rubygems_version = "2.6.6".freeze
|
|
14
|
+
s.summary = "Schemacop validates ruby structures consisting of nested hashes and arrays against simple schema definitions.".freeze
|
|
15
|
+
s.test_files = ["test/schemacop_validator_test.rb".freeze]
|
|
16
16
|
|
|
17
17
|
if s.respond_to? :specification_version then
|
|
18
18
|
s.specification_version = 4
|
|
19
19
|
|
|
20
20
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
21
|
-
s.add_development_dependency(%q<bundler
|
|
22
|
-
s.add_development_dependency(%q<rake
|
|
23
|
-
s.add_development_dependency(%q<ci_reporter
|
|
24
|
-
s.add_development_dependency(%q<ci_reporter_minitest
|
|
25
|
-
s.add_development_dependency(%q<activesupport
|
|
26
|
-
s.add_development_dependency(%q<haml
|
|
27
|
-
s.add_development_dependency(%q<yard
|
|
28
|
-
s.add_development_dependency(%q<rubocop
|
|
29
|
-
s.add_development_dependency(%q<redcarpet
|
|
21
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.3"])
|
|
22
|
+
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
|
|
23
|
+
s.add_development_dependency(%q<ci_reporter>.freeze, ["~> 2.0"])
|
|
24
|
+
s.add_development_dependency(%q<ci_reporter_minitest>.freeze, [">= 0"])
|
|
25
|
+
s.add_development_dependency(%q<activesupport>.freeze, [">= 0"])
|
|
26
|
+
s.add_development_dependency(%q<haml>.freeze, [">= 0"])
|
|
27
|
+
s.add_development_dependency(%q<yard>.freeze, [">= 0"])
|
|
28
|
+
s.add_development_dependency(%q<rubocop>.freeze, ["= 0.35.1"])
|
|
29
|
+
s.add_development_dependency(%q<redcarpet>.freeze, [">= 0"])
|
|
30
30
|
else
|
|
31
|
-
s.add_dependency(%q<bundler
|
|
32
|
-
s.add_dependency(%q<rake
|
|
33
|
-
s.add_dependency(%q<ci_reporter
|
|
34
|
-
s.add_dependency(%q<ci_reporter_minitest
|
|
35
|
-
s.add_dependency(%q<activesupport
|
|
36
|
-
s.add_dependency(%q<haml
|
|
37
|
-
s.add_dependency(%q<yard
|
|
38
|
-
s.add_dependency(%q<rubocop
|
|
39
|
-
s.add_dependency(%q<redcarpet
|
|
31
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.3"])
|
|
32
|
+
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
|
33
|
+
s.add_dependency(%q<ci_reporter>.freeze, ["~> 2.0"])
|
|
34
|
+
s.add_dependency(%q<ci_reporter_minitest>.freeze, [">= 0"])
|
|
35
|
+
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
|
36
|
+
s.add_dependency(%q<haml>.freeze, [">= 0"])
|
|
37
|
+
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
|
38
|
+
s.add_dependency(%q<rubocop>.freeze, ["= 0.35.1"])
|
|
39
|
+
s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
|
|
40
40
|
end
|
|
41
41
|
else
|
|
42
|
-
s.add_dependency(%q<bundler
|
|
43
|
-
s.add_dependency(%q<rake
|
|
44
|
-
s.add_dependency(%q<ci_reporter
|
|
45
|
-
s.add_dependency(%q<ci_reporter_minitest
|
|
46
|
-
s.add_dependency(%q<activesupport
|
|
47
|
-
s.add_dependency(%q<haml
|
|
48
|
-
s.add_dependency(%q<yard
|
|
49
|
-
s.add_dependency(%q<rubocop
|
|
50
|
-
s.add_dependency(%q<redcarpet
|
|
42
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.3"])
|
|
43
|
+
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
|
44
|
+
s.add_dependency(%q<ci_reporter>.freeze, ["~> 2.0"])
|
|
45
|
+
s.add_dependency(%q<ci_reporter_minitest>.freeze, [">= 0"])
|
|
46
|
+
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
|
47
|
+
s.add_dependency(%q<haml>.freeze, [">= 0"])
|
|
48
|
+
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
|
49
|
+
s.add_dependency(%q<rubocop>.freeze, ["= 0.35.1"])
|
|
50
|
+
s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
|
|
51
51
|
end
|
|
52
52
|
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: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sitrox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -159,6 +159,8 @@ files:
|
|
|
159
159
|
- doc/Schemacop/Exceptions/Base.html
|
|
160
160
|
- doc/Schemacop/Exceptions/InvalidSchema.html
|
|
161
161
|
- doc/Schemacop/Exceptions/Validation.html
|
|
162
|
+
- doc/Schemacop/MethodValidation.html
|
|
163
|
+
- doc/Schemacop/MethodValidation/ClassMethods.html
|
|
162
164
|
- doc/Schemacop/Validator.html
|
|
163
165
|
- doc/_index.html
|
|
164
166
|
- doc/class_list.html
|
|
@@ -198,11 +200,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
200
|
version: '0'
|
|
199
201
|
requirements: []
|
|
200
202
|
rubyforge_project:
|
|
201
|
-
rubygems_version: 2.
|
|
203
|
+
rubygems_version: 2.6.6
|
|
202
204
|
signing_key:
|
|
203
205
|
specification_version: 4
|
|
204
206
|
summary: Schemacop validates ruby structures consisting of nested hashes and arrays
|
|
205
207
|
against simple schema definitions.
|
|
206
208
|
test_files:
|
|
207
209
|
- test/schemacop_validator_test.rb
|
|
208
|
-
has_rdoc:
|