unit_validator 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +2 -0
- data/.gitignore +43 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +57 -0
- data/LICENSE +20 -0
- data/README.md +93 -0
- data/Rakefile +61 -0
- data/VERSION +1 -0
- data/autotest/discover.rb +3 -0
- data/fixtures/gdoc.csv +10 -0
- data/fixtures/gdoc.ods +0 -0
- data/fixtures/gdoc.xls +0 -0
- data/fixtures/gdoc.xlsx +0 -0
- data/lib/cf/input_validator.rb +72 -0
- data/lib/cf/result_validator.rb +52 -0
- data/lib/generic_spreadsheet.rb +23 -0
- data/lib/tasks/rcov_custom.rb +5 -0
- data/lib/validator_helpers.rb +56 -0
- data/spec/.rspec +1 -0
- data/spec/cf_input_validator_spec.rb +233 -0
- data/spec/cf_result_validator_spec.rb +76 -0
- data/spec/spec_helper.rb +23 -0
- data/unit_validator.gemspec +139 -0
- metadata +462 -0
metadata
ADDED
@@ -0,0 +1,462 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: unit_validator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- millisami
|
14
|
+
- zoras
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-10-22 00:00:00 +05:45
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
name: roo
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
version: "0"
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
name: zip
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
requirement: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
name: spreadsheet
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
requirement: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
name: nokogiri
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
requirement: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
name: google-spreadsheet-ruby
|
82
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
requirement: *id005
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
name: activesupport
|
96
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
105
|
+
requirement: *id006
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
name: fastercsv
|
110
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
119
|
+
requirement: *id007
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
name: autotest-fsevent
|
124
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
hash: 19
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
- 2
|
133
|
+
- 2
|
134
|
+
version: 0.2.2
|
135
|
+
requirement: *id008
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
name: autotest-growl
|
140
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
hash: 31
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
- 2
|
149
|
+
- 4
|
150
|
+
version: 0.2.4
|
151
|
+
requirement: *id009
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
name: builder
|
156
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
hash: 3
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
version: "0"
|
165
|
+
requirement: *id010
|
166
|
+
- !ruby/object:Gem::Dependency
|
167
|
+
type: :development
|
168
|
+
prerelease: false
|
169
|
+
name: rspec
|
170
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
hash: 7712058
|
176
|
+
segments:
|
177
|
+
- 2
|
178
|
+
- 0
|
179
|
+
- 0
|
180
|
+
- rc
|
181
|
+
version: 2.0.0.rc
|
182
|
+
requirement: *id011
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
type: :development
|
185
|
+
prerelease: false
|
186
|
+
name: bundler
|
187
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
189
|
+
requirements:
|
190
|
+
- - ~>
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
hash: 23
|
193
|
+
segments:
|
194
|
+
- 1
|
195
|
+
- 0
|
196
|
+
- 0
|
197
|
+
version: 1.0.0
|
198
|
+
requirement: *id012
|
199
|
+
- !ruby/object:Gem::Dependency
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
name: jeweler
|
203
|
+
version_requirements: &id013 !ruby/object:Gem::Requirement
|
204
|
+
none: false
|
205
|
+
requirements:
|
206
|
+
- - ~>
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
hash: -1876988218
|
209
|
+
segments:
|
210
|
+
- 1
|
211
|
+
- 5
|
212
|
+
- 0
|
213
|
+
- pre3
|
214
|
+
version: 1.5.0.pre3
|
215
|
+
requirement: *id013
|
216
|
+
- !ruby/object:Gem::Dependency
|
217
|
+
type: :development
|
218
|
+
prerelease: false
|
219
|
+
name: rcov
|
220
|
+
version_requirements: &id014 !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
222
|
+
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
hash: 3
|
226
|
+
segments:
|
227
|
+
- 0
|
228
|
+
version: "0"
|
229
|
+
requirement: *id014
|
230
|
+
- !ruby/object:Gem::Dependency
|
231
|
+
type: :runtime
|
232
|
+
prerelease: false
|
233
|
+
name: roo
|
234
|
+
version_requirements: &id015 !ruby/object:Gem::Requirement
|
235
|
+
none: false
|
236
|
+
requirements:
|
237
|
+
- - ">="
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
hash: 3
|
240
|
+
segments:
|
241
|
+
- 0
|
242
|
+
version: "0"
|
243
|
+
requirement: *id015
|
244
|
+
- !ruby/object:Gem::Dependency
|
245
|
+
type: :runtime
|
246
|
+
prerelease: false
|
247
|
+
name: zip
|
248
|
+
version_requirements: &id016 !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
hash: 3
|
254
|
+
segments:
|
255
|
+
- 0
|
256
|
+
version: "0"
|
257
|
+
requirement: *id016
|
258
|
+
- !ruby/object:Gem::Dependency
|
259
|
+
type: :runtime
|
260
|
+
prerelease: false
|
261
|
+
name: spreadsheet
|
262
|
+
version_requirements: &id017 !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
264
|
+
requirements:
|
265
|
+
- - ">="
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
hash: 3
|
268
|
+
segments:
|
269
|
+
- 0
|
270
|
+
version: "0"
|
271
|
+
requirement: *id017
|
272
|
+
- !ruby/object:Gem::Dependency
|
273
|
+
type: :runtime
|
274
|
+
prerelease: false
|
275
|
+
name: nokogiri
|
276
|
+
version_requirements: &id018 !ruby/object:Gem::Requirement
|
277
|
+
none: false
|
278
|
+
requirements:
|
279
|
+
- - ">="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
hash: 3
|
282
|
+
segments:
|
283
|
+
- 0
|
284
|
+
version: "0"
|
285
|
+
requirement: *id018
|
286
|
+
- !ruby/object:Gem::Dependency
|
287
|
+
type: :runtime
|
288
|
+
prerelease: false
|
289
|
+
name: google-spreadsheet-ruby
|
290
|
+
version_requirements: &id019 !ruby/object:Gem::Requirement
|
291
|
+
none: false
|
292
|
+
requirements:
|
293
|
+
- - ">="
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
hash: 3
|
296
|
+
segments:
|
297
|
+
- 0
|
298
|
+
version: "0"
|
299
|
+
requirement: *id019
|
300
|
+
- !ruby/object:Gem::Dependency
|
301
|
+
type: :runtime
|
302
|
+
prerelease: false
|
303
|
+
name: activesupport
|
304
|
+
version_requirements: &id020 !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
306
|
+
requirements:
|
307
|
+
- - ">="
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
hash: 3
|
310
|
+
segments:
|
311
|
+
- 0
|
312
|
+
version: "0"
|
313
|
+
requirement: *id020
|
314
|
+
- !ruby/object:Gem::Dependency
|
315
|
+
type: :runtime
|
316
|
+
prerelease: false
|
317
|
+
name: builder
|
318
|
+
version_requirements: &id021 !ruby/object:Gem::Requirement
|
319
|
+
none: false
|
320
|
+
requirements:
|
321
|
+
- - ">="
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
hash: 3
|
324
|
+
segments:
|
325
|
+
- 0
|
326
|
+
version: "0"
|
327
|
+
requirement: *id021
|
328
|
+
- !ruby/object:Gem::Dependency
|
329
|
+
type: :development
|
330
|
+
prerelease: false
|
331
|
+
name: rspec
|
332
|
+
version_requirements: &id022 !ruby/object:Gem::Requirement
|
333
|
+
none: false
|
334
|
+
requirements:
|
335
|
+
- - ">="
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
hash: 7712058
|
338
|
+
segments:
|
339
|
+
- 2
|
340
|
+
- 0
|
341
|
+
- 0
|
342
|
+
- rc
|
343
|
+
version: 2.0.0.rc
|
344
|
+
requirement: *id022
|
345
|
+
- !ruby/object:Gem::Dependency
|
346
|
+
type: :development
|
347
|
+
prerelease: false
|
348
|
+
name: bundler
|
349
|
+
version_requirements: &id023 !ruby/object:Gem::Requirement
|
350
|
+
none: false
|
351
|
+
requirements:
|
352
|
+
- - ~>
|
353
|
+
- !ruby/object:Gem::Version
|
354
|
+
hash: 23
|
355
|
+
segments:
|
356
|
+
- 1
|
357
|
+
- 0
|
358
|
+
- 0
|
359
|
+
version: 1.0.0
|
360
|
+
requirement: *id023
|
361
|
+
- !ruby/object:Gem::Dependency
|
362
|
+
type: :development
|
363
|
+
prerelease: false
|
364
|
+
name: jeweler
|
365
|
+
version_requirements: &id024 !ruby/object:Gem::Requirement
|
366
|
+
none: false
|
367
|
+
requirements:
|
368
|
+
- - ~>
|
369
|
+
- !ruby/object:Gem::Version
|
370
|
+
hash: -1876988218
|
371
|
+
segments:
|
372
|
+
- 1
|
373
|
+
- 5
|
374
|
+
- 0
|
375
|
+
- pre3
|
376
|
+
version: 1.5.0.pre3
|
377
|
+
requirement: *id024
|
378
|
+
- !ruby/object:Gem::Dependency
|
379
|
+
type: :development
|
380
|
+
prerelease: false
|
381
|
+
name: rcov
|
382
|
+
version_requirements: &id025 !ruby/object:Gem::Requirement
|
383
|
+
none: false
|
384
|
+
requirements:
|
385
|
+
- - ">="
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
hash: 3
|
388
|
+
segments:
|
389
|
+
- 0
|
390
|
+
version: "0"
|
391
|
+
requirement: *id025
|
392
|
+
description: Takes the Instruction Input as Rule, parse the CSV files and applies the validation and returns valid and invalid units
|
393
|
+
email: saroj@sprout-technology.com
|
394
|
+
executables: []
|
395
|
+
|
396
|
+
extensions: []
|
397
|
+
|
398
|
+
extra_rdoc_files:
|
399
|
+
- LICENSE
|
400
|
+
- README.md
|
401
|
+
files:
|
402
|
+
- .autotest
|
403
|
+
- .gitignore
|
404
|
+
- Gemfile
|
405
|
+
- Gemfile.lock
|
406
|
+
- LICENSE
|
407
|
+
- README.md
|
408
|
+
- Rakefile
|
409
|
+
- VERSION
|
410
|
+
- autotest/discover.rb
|
411
|
+
- fixtures/gdoc.csv
|
412
|
+
- fixtures/gdoc.ods
|
413
|
+
- fixtures/gdoc.xls
|
414
|
+
- fixtures/gdoc.xlsx
|
415
|
+
- lib/cf/input_validator.rb
|
416
|
+
- lib/cf/result_validator.rb
|
417
|
+
- lib/generic_spreadsheet.rb
|
418
|
+
- lib/tasks/rcov_custom.rb
|
419
|
+
- lib/validator_helpers.rb
|
420
|
+
- spec/.rspec
|
421
|
+
- spec/cf_input_validator_spec.rb
|
422
|
+
- spec/cf_result_validator_spec.rb
|
423
|
+
- spec/spec_helper.rb
|
424
|
+
- unit_validator.gemspec
|
425
|
+
has_rdoc: true
|
426
|
+
homepage: http://github.com/sprout/unit_validator
|
427
|
+
licenses: []
|
428
|
+
|
429
|
+
post_install_message:
|
430
|
+
rdoc_options: []
|
431
|
+
|
432
|
+
require_paths:
|
433
|
+
- lib
|
434
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
435
|
+
none: false
|
436
|
+
requirements:
|
437
|
+
- - ">="
|
438
|
+
- !ruby/object:Gem::Version
|
439
|
+
hash: 3
|
440
|
+
segments:
|
441
|
+
- 0
|
442
|
+
version: "0"
|
443
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
444
|
+
none: false
|
445
|
+
requirements:
|
446
|
+
- - ">="
|
447
|
+
- !ruby/object:Gem::Version
|
448
|
+
hash: 3
|
449
|
+
segments:
|
450
|
+
- 0
|
451
|
+
version: "0"
|
452
|
+
requirements: []
|
453
|
+
|
454
|
+
rubyforge_project:
|
455
|
+
rubygems_version: 1.3.7
|
456
|
+
signing_key:
|
457
|
+
specification_version: 3
|
458
|
+
summary: Takes the Instruction Input as Rule, parse the CSV files and does the validation
|
459
|
+
test_files:
|
460
|
+
- spec/cf_input_validator_spec.rb
|
461
|
+
- spec/cf_result_validator_spec.rb
|
462
|
+
- spec/spec_helper.rb
|