csv2hash 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/UPGRADE.md +6 -0
- data/config/rules.erb.yml +7 -0
- data/lib/csv2hash/version.rb +1 -1
- data/lib/csv2hash/yaml_loader.rb +12 -1
- data/spec/csv2hash/yaml_loader_spec.rb +15 -8
- metadata +2 -44
- data/doc/Cell.html +0 -282
- data/doc/Csv2hash/Adapter/Abstract.html +0 -215
- data/doc/Csv2hash/Adapter/Base/UnsupportedAdapter.html +0 -123
- data/doc/Csv2hash/Adapter/Base.html +0 -201
- data/doc/Csv2hash/Adapter/CsvAdapter.html +0 -348
- data/doc/Csv2hash/Adapter/MemoryAdapter.html +0 -348
- data/doc/Csv2hash/Adapter.html +0 -117
- data/doc/Csv2hash/DataWrapper.html +0 -500
- data/doc/Csv2hash/Definition.html +0 -1008
- data/doc/Csv2hash/Discover.html +0 -192
- data/doc/Csv2hash/Expectation.html +0 -202
- data/doc/Csv2hash/ExtraValidator.html +0 -207
- data/doc/Csv2hash/Main.html +0 -1298
- data/doc/Csv2hash/Notifier.html +0 -189
- data/doc/Csv2hash/Parser/Collection.html +0 -283
- data/doc/Csv2hash/Parser/Mapping.html +0 -266
- data/doc/Csv2hash/Parser.html +0 -121
- data/doc/Csv2hash/StructureValidator/Deprecation.html +0 -215
- data/doc/Csv2hash/StructureValidator/MaxColumns.html +0 -327
- data/doc/Csv2hash/StructureValidator/MinColumns.html +0 -327
- data/doc/Csv2hash/StructureValidator/ValidationError.html +0 -123
- data/doc/Csv2hash/StructureValidator/Validator.html +0 -184
- data/doc/Csv2hash/StructureValidator.html +0 -311
- data/doc/Csv2hash/Validator/Collection.html +0 -217
- data/doc/Csv2hash/Validator/Mapping.html +0 -200
- data/doc/Csv2hash/Validator.html +0 -295
- data/doc/Csv2hash.html +0 -131
- data/doc/CsvArray.html +0 -200
- data/doc/Registry.html +0 -312
- data/doc/_index.html +0 -391
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -499
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -499
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -473
- data/doc/top-level-namespace.html +0 -114
@@ -1,217 +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
|
-
Module: Csv2hash::Validator::Collection
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.4
|
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#!Csv2hash/Validator/Collection.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="../../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span> » <span class='title'><span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Validator</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Collection</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: Csv2hash::Validator::Collection
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<dt class="r1">Includes:</dt>
|
79
|
-
<dd class="r1"><span class='object_link'><a href="../Expectation.html" title="Csv2hash::Expectation (module)">Expectation</a></span>, <span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Csv2hash::Validator</a></span></dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/csv2hash/validator/collection.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<h2>
|
100
|
-
Instance Method Summary
|
101
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
102
|
-
</h2>
|
103
|
-
|
104
|
-
<ul class="summary">
|
105
|
-
|
106
|
-
<li class="public ">
|
107
|
-
<span class="summary_signature">
|
108
|
-
|
109
|
-
<a href="#validate_data%21-instance_method" title="#validate_data! (instance method)">- (Object) <strong>validate_data!</strong> </a>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
</span>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
</ul>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Expectation.html" title="Csv2hash::Expectation (module)">Expectation</a></span></h3>
|
141
|
-
<p class="inherited"><span class='object_link'><a href="../Expectation.html#unexpected_line%3F-instance_method" title="Csv2hash::Expectation#unexpected_line? (method)">#unexpected_line?</a></span></p>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Csv2hash::Validator</a></span></h3>
|
152
|
-
<p class="inherited"><span class='object_link'><a href="../Validator.html#valid%3F-instance_method" title="Csv2hash::Validator#valid? (method)">#valid?</a></span>, <span class='object_link'><a href="../Validator.html#validate_rules-instance_method" title="Csv2hash::Validator#validate_rules (method)">#validate_rules</a></span></p>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Discover.html" title="Csv2hash::Discover (module)">Discover</a></span></h3>
|
163
|
-
<p class="inherited"><span class='object_link'><a href="../Discover.html#find_positions%21-instance_method" title="Csv2hash::Discover#find_positions! (method)">#find_positions!</a></span></p>
|
164
|
-
|
165
|
-
|
166
|
-
<div id="instance_method_details" class="method_details_list">
|
167
|
-
<h2>Instance Method Details</h2>
|
168
|
-
|
169
|
-
|
170
|
-
<div class="method_details first">
|
171
|
-
<h3 class="signature first" id="validate_data!-instance_method">
|
172
|
-
|
173
|
-
- (<tt>Object</tt>) <strong>validate_data!</strong>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</h3><table class="source_code">
|
180
|
-
<tr>
|
181
|
-
<td>
|
182
|
-
<pre class="lines">
|
183
|
-
|
184
|
-
|
185
|
-
9
|
186
|
-
10
|
187
|
-
11
|
188
|
-
12
|
189
|
-
13
|
190
|
-
14</pre>
|
191
|
-
</td>
|
192
|
-
<td>
|
193
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/validator/collection.rb', line 9</span>
|
194
|
-
|
195
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_validate_data!'>validate_data!</span>
|
196
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data_source'>data_source</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='op'>|</span>
|
197
|
-
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_unexpected_line?'>unexpected_line?</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span>
|
198
|
-
<span class='id identifier rubyid_validate_rules'>validate_rules</span> <span class='id identifier rubyid_y'>y</span>
|
199
|
-
<span class='kw'>end</span>
|
200
|
-
<span class='kw'>end</span></pre>
|
201
|
-
</td>
|
202
|
-
</tr>
|
203
|
-
</table>
|
204
|
-
</div>
|
205
|
-
|
206
|
-
</div>
|
207
|
-
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div id="footer">
|
211
|
-
Generated on Fri Aug 29 17:12:26 2014 by
|
212
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
213
|
-
0.8.7.4 (ruby-2.1.2).
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</body>
|
217
|
-
</html>
|
@@ -1,200 +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
|
-
Module: Csv2hash::Validator::Mapping
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.4
|
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#!Csv2hash/Validator/Mapping.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="../../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span> » <span class='title'><span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Validator</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Mapping</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: Csv2hash::Validator::Mapping
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<dt class="r1">Includes:</dt>
|
79
|
-
<dd class="r1"><span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Csv2hash::Validator</a></span></dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/csv2hash/validator/mapping.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<h2>
|
100
|
-
Instance Method Summary
|
101
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
102
|
-
</h2>
|
103
|
-
|
104
|
-
<ul class="summary">
|
105
|
-
|
106
|
-
<li class="public ">
|
107
|
-
<span class="summary_signature">
|
108
|
-
|
109
|
-
<a href="#validate_data%21-instance_method" title="#validate_data! (instance method)">- (Object) <strong>validate_data!</strong> </a>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
</span>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
</ul>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Validator.html" title="Csv2hash::Validator (module)">Csv2hash::Validator</a></span></h3>
|
141
|
-
<p class="inherited"><span class='object_link'><a href="../Validator.html#valid%3F-instance_method" title="Csv2hash::Validator#valid? (method)">#valid?</a></span>, <span class='object_link'><a href="../Validator.html#validate_rules-instance_method" title="Csv2hash::Validator#validate_rules (method)">#validate_rules</a></span></p>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Discover.html" title="Csv2hash::Discover (module)">Discover</a></span></h3>
|
152
|
-
<p class="inherited"><span class='object_link'><a href="../Discover.html#find_positions%21-instance_method" title="Csv2hash::Discover#find_positions! (method)">#find_positions!</a></span></p>
|
153
|
-
|
154
|
-
|
155
|
-
<div id="instance_method_details" class="method_details_list">
|
156
|
-
<h2>Instance Method Details</h2>
|
157
|
-
|
158
|
-
|
159
|
-
<div class="method_details first">
|
160
|
-
<h3 class="signature first" id="validate_data!-instance_method">
|
161
|
-
|
162
|
-
- (<tt>Object</tt>) <strong>validate_data!</strong>
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
</h3><table class="source_code">
|
169
|
-
<tr>
|
170
|
-
<td>
|
171
|
-
<pre class="lines">
|
172
|
-
|
173
|
-
|
174
|
-
6
|
175
|
-
7
|
176
|
-
8</pre>
|
177
|
-
</td>
|
178
|
-
<td>
|
179
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/validator/mapping.rb', line 6</span>
|
180
|
-
|
181
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_validate_data!'>validate_data!</span>
|
182
|
-
<span class='id identifier rubyid_validate_rules'>validate_rules</span> <span class='id identifier rubyid_data_source'>data_source</span>
|
183
|
-
<span class='kw'>end</span></pre>
|
184
|
-
</td>
|
185
|
-
</tr>
|
186
|
-
</table>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<div id="footer">
|
194
|
-
Generated on Fri Aug 29 17:12:26 2014 by
|
195
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
196
|
-
0.8.7.4 (ruby-2.1.2).
|
197
|
-
</div>
|
198
|
-
|
199
|
-
</body>
|
200
|
-
</html>
|