unit_validator 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,19 +1,19 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'roo'
4
+ gem 'zip'
5
+ gem 'spreadsheet'
6
+ gem 'nokogiri'
7
+ gem 'google-spreadsheet-ruby'
8
+ gem 'activesupport'
9
+ gem 'fastercsv'
10
+ gem "bundler", "~> 1.0.0"
11
+
3
12
  group :development do
4
- gem 'roo'
5
- gem 'zip'
6
- gem 'spreadsheet'
7
- gem 'nokogiri'
8
- gem 'google-spreadsheet-ruby'
9
- gem 'activesupport'
10
- gem 'fastercsv'
11
-
12
13
  gem 'autotest-fsevent', '>=0.2.2'
13
14
  gem 'autotest-growl', '>=0.2.4'
14
15
  gem 'builder'
15
16
  gem "rspec", ">= 2.0.0.rc"
16
- gem "bundler", "~> 1.0.0"
17
17
  gem "jeweler", "~> 1.5.0.pre3"
18
18
  gem "rcov"
19
19
  end
data/Gemfile.lock CHANGED
@@ -12,26 +12,24 @@ GEM
12
12
  google-spreadsheet-ruby (0.1.2)
13
13
  nokogiri (>= 1.4.3.1)
14
14
  oauth (>= 0.3.6)
15
- jeweler (1.5.0.pre3)
15
+ jeweler (1.5.0.pre5)
16
16
  bundler (~> 1.0.0)
17
17
  git (>= 1.2.5)
18
18
  rake
19
19
  nokogiri (1.4.3.1)
20
- oauth (0.4.3)
20
+ oauth (0.4.4)
21
21
  rake (0.8.7)
22
22
  rcov (0.9.9)
23
23
  roo (1.9.3)
24
- rspec (2.0.0.rc)
25
- rspec-core (= 2.0.0.rc)
26
- rspec-expectations (= 2.0.0.rc)
27
- rspec-mocks (= 2.0.0.rc)
28
- rspec-core (2.0.0.rc)
29
- rspec-expectations (2.0.0.rc)
30
- diff-lcs (>= 1.1.2)
31
- rspec-mocks (2.0.0.rc)
32
- rspec-core (= 2.0.0.rc)
33
- rspec-expectations (= 2.0.0.rc)
34
- ruby-ole (1.2.11)
24
+ rspec (2.1.0)
25
+ rspec-core (~> 2.1.0)
26
+ rspec-expectations (~> 2.1.0)
27
+ rspec-mocks (~> 2.1.0)
28
+ rspec-core (2.1.0)
29
+ rspec-expectations (2.1.0)
30
+ diff-lcs (~> 1.1.2)
31
+ rspec-mocks (2.1.0)
32
+ ruby-ole (1.2.11.1)
35
33
  spreadsheet (0.6.4.1)
36
34
  ruby-ole
37
35
  sys-uname (0.8.4)
data/README.md CHANGED
@@ -10,7 +10,7 @@ This gem is being developed for Project **Cloud Factory** Copyright© [Sprout Te
10
10
 
11
11
  In Gemfile
12
12
  source 'http://rubygems.org'
13
- gem 'unit_validator'
13
+ gem 'unit_validator', :require => 'cf/input_validator', 'cf/result_validator'
14
14
 
15
15
  bundle install
16
16
 
@@ -74,8 +74,8 @@ It also checks if value is present if required is true.
74
74
  inputs = "company name,email\nSprout,info@sproutify.com"
75
75
 
76
76
  cloud_validator = CF::InputValidator.new(rules)
77
- val = cloud_validator.parse_and_validate(inputs)
78
- err = val.errors
77
+ cloud_validator.parse_and_validate(inputs)
78
+ err = cloud_validator.errors
79
79
 
80
80
 
81
81
  ## Note on Patches/Pull Requests
data/Rakefile CHANGED
@@ -16,20 +16,21 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.summary = %Q{Takes the Instruction Input as Rule, parse the CSV files and does the validation}
17
17
  gem.description = %Q{Takes the Instruction Input as Rule, parse the CSV files and applies the validation and returns valid and invalid units}
18
18
  gem.email = "saroj@sprout-technology.com"
19
- gem.homepage = "http://github.com/sprout/unit_validator"
19
+ gem.homepage = "https://github.com/sprout/cloudfactory/tree/master/unit_validator/"
20
20
  gem.authors = ["millisami", "zoras"]
21
21
  # Include your dependencies below. Runtime dependencies are required when using your gem,
22
22
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
23
- gem.add_runtime_dependency 'roo'
24
- gem.add_runtime_dependency 'zip'
25
- gem.add_runtime_dependency 'spreadsheet'
26
- gem.add_runtime_dependency 'nokogiri'
27
- gem.add_runtime_dependency 'google-spreadsheet-ruby'
28
- gem.add_runtime_dependency 'activesupport'
29
- gem.add_runtime_dependency 'builder'
23
+ gem.add_dependency 'roo'
24
+ gem.add_dependency 'zip'
25
+ gem.add_dependency 'spreadsheet'
26
+ gem.add_dependency 'nokogiri'
27
+ gem.add_dependency 'google-spreadsheet-ruby'
28
+ gem.add_dependency 'activesupport'
29
+ gem.add_dependency 'fastercsv'
30
+ gem.add_dependency "bundler", "~> 1.0.0"
31
+ gem.add_dependency 'builder'
30
32
 
31
33
  gem.add_development_dependency "rspec", ">= 2.0.0.rc"
32
- gem.add_development_dependency "bundler", "~> 1.0.0"
33
34
  gem.add_development_dependency "jeweler", "~> 1.5.0.pre3"
34
35
  gem.add_development_dependency "rcov", ">= 0"
35
36
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.1
@@ -34,10 +34,11 @@ module CF
34
34
 
35
35
  # Initialize rule_labels array and store labels of RULE_HEADERS into it
36
36
  rule_labels = Array.new
37
- rules.each do |rule|
38
- rule_labels << rule[:label]
37
+ @rules.each do |rule|
38
+ label = rule[:label] || rule["label"]
39
+ rule_labels << label
39
40
  end
40
-
41
+
41
42
  if rule_labels == csv_header
42
43
  csv_contents[1..-1].each do |item|
43
44
  # Validation.
@@ -46,8 +47,9 @@ module CF
46
47
 
47
48
  unless (item = item.select{|x| !x.blank? }).empty?
48
49
  item[index].strip! if !item[index].nil?
49
-
50
- if required(header[:required], item[index]) and valid(header[:validation_format], item[index])
50
+ option_header_required = header[:required] || header["required"]
51
+ option_validation_format = header[:validation_format] || header["validation_format"]
52
+ if required(option_header_required, item[index]) and valid(option_validation_format, item[index])
51
53
  # temporarily store valid units into temp_units array
52
54
  @temp_units << item unless @temp_units.include?(item)
53
55
  else
Binary file
@@ -17,6 +17,18 @@ describe CF::InputValidator do
17
17
  val[:valid_units].should == output
18
18
  end
19
19
 
20
+ it "should validate the input in quoted format" do
21
+ rules = [{"label"=>"Company", "required"=>"true", "field_id"=>"field_0",
22
+ "value"=>"Apple", "field_type"=>"text_data", "validation_format"=>"general"
23
+ }]
24
+ inputs = "Company\nSprout"
25
+ output = [["Sprout"]]
26
+
27
+ cloud_validator = CF::InputValidator.new(rules)
28
+ val = cloud_validator.parse_and_validate(inputs)
29
+ val[:valid_units].should == output
30
+ end
31
+
20
32
  it "should not validate the csv file with extra headers" do
21
33
  rules = [{:field_id => "field_1", :label => "company name", :field_type => "text_data",
22
34
  :value => "Sprout", :required => true, :validation_format => "general"
@@ -5,20 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{unit_validator}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["millisami", "zoras"]
12
- s.date = %q{2010-10-22}
12
+ s.date = %q{2010-11-12}
13
13
  s.description = %q{Takes the Instruction Input as Rule, parse the CSV files and applies the validation and returns valid and invalid units}
14
14
  s.email = %q{saroj@sprout-technology.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.md"
18
- ]
19
15
  s.files = [
20
- ".autotest",
21
- ".gitignore",
22
16
  "Gemfile",
23
17
  "Gemfile.lock",
24
18
  "LICENSE",
@@ -35,50 +29,33 @@ Gem::Specification.new do |s|
35
29
  "lib/generic_spreadsheet.rb",
36
30
  "lib/tasks/rcov_custom.rb",
37
31
  "lib/validator_helpers.rb",
32
+ "pkg/unit_validator-0.2.0.gem",
38
33
  "spec/.rspec",
39
34
  "spec/cf_input_validator_spec.rb",
40
35
  "spec/cf_result_validator_spec.rb",
41
36
  "spec/spec_helper.rb",
42
37
  "unit_validator.gemspec"
43
38
  ]
44
- s.homepage = %q{http://github.com/sprout/unit_validator}
39
+ s.homepage = %q{https://github.com/sprout/cloudfactory/tree/master/unit_validator/}
45
40
  s.require_paths = ["lib"]
46
41
  s.rubygems_version = %q{1.3.7}
47
42
  s.summary = %q{Takes the Instruction Input as Rule, parse the CSV files and does the validation}
48
- s.test_files = [
49
- "spec/cf_input_validator_spec.rb",
50
- "spec/cf_result_validator_spec.rb",
51
- "spec/spec_helper.rb"
52
- ]
53
43
 
54
44
  if s.respond_to? :specification_version then
55
45
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
46
  s.specification_version = 3
57
47
 
58
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
- s.add_development_dependency(%q<roo>, [">= 0"])
60
- s.add_development_dependency(%q<zip>, [">= 0"])
61
- s.add_development_dependency(%q<spreadsheet>, [">= 0"])
62
- s.add_development_dependency(%q<nokogiri>, [">= 0"])
63
- s.add_development_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
64
- s.add_development_dependency(%q<activesupport>, [">= 0"])
65
- s.add_development_dependency(%q<fastercsv>, [">= 0"])
66
- s.add_development_dependency(%q<autotest-fsevent>, [">= 0.2.2"])
67
- s.add_development_dependency(%q<autotest-growl>, [">= 0.2.4"])
68
- s.add_development_dependency(%q<builder>, [">= 0"])
69
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.rc"])
70
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
71
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
72
- s.add_development_dependency(%q<rcov>, [">= 0"])
73
49
  s.add_runtime_dependency(%q<roo>, [">= 0"])
74
50
  s.add_runtime_dependency(%q<zip>, [">= 0"])
75
51
  s.add_runtime_dependency(%q<spreadsheet>, [">= 0"])
76
52
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
77
53
  s.add_runtime_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
78
54
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
55
+ s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
56
+ s.add_runtime_dependency(%q<bundler>, ["~> 1.0.0"])
79
57
  s.add_runtime_dependency(%q<builder>, [">= 0"])
80
58
  s.add_development_dependency(%q<rspec>, [">= 2.0.0.rc"])
81
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
82
59
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
83
60
  s.add_development_dependency(%q<rcov>, [">= 0"])
84
61
  else
@@ -89,22 +66,9 @@ Gem::Specification.new do |s|
89
66
  s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
90
67
  s.add_dependency(%q<activesupport>, [">= 0"])
91
68
  s.add_dependency(%q<fastercsv>, [">= 0"])
92
- s.add_dependency(%q<autotest-fsevent>, [">= 0.2.2"])
93
- s.add_dependency(%q<autotest-growl>, [">= 0.2.4"])
94
- s.add_dependency(%q<builder>, [">= 0"])
95
- s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
96
69
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
97
- s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
98
- s.add_dependency(%q<rcov>, [">= 0"])
99
- s.add_dependency(%q<roo>, [">= 0"])
100
- s.add_dependency(%q<zip>, [">= 0"])
101
- s.add_dependency(%q<spreadsheet>, [">= 0"])
102
- s.add_dependency(%q<nokogiri>, [">= 0"])
103
- s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
104
- s.add_dependency(%q<activesupport>, [">= 0"])
105
70
  s.add_dependency(%q<builder>, [">= 0"])
106
71
  s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
107
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
108
72
  s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
109
73
  s.add_dependency(%q<rcov>, [">= 0"])
110
74
  end
@@ -116,22 +80,9 @@ Gem::Specification.new do |s|
116
80
  s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
117
81
  s.add_dependency(%q<activesupport>, [">= 0"])
118
82
  s.add_dependency(%q<fastercsv>, [">= 0"])
119
- s.add_dependency(%q<autotest-fsevent>, [">= 0.2.2"])
120
- s.add_dependency(%q<autotest-growl>, [">= 0.2.4"])
121
- s.add_dependency(%q<builder>, [">= 0"])
122
- s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
123
83
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
124
- s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
125
- s.add_dependency(%q<rcov>, [">= 0"])
126
- s.add_dependency(%q<roo>, [">= 0"])
127
- s.add_dependency(%q<zip>, [">= 0"])
128
- s.add_dependency(%q<spreadsheet>, [">= 0"])
129
- s.add_dependency(%q<nokogiri>, [">= 0"])
130
- s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0"])
131
- s.add_dependency(%q<activesupport>, [">= 0"])
132
84
  s.add_dependency(%q<builder>, [">= 0"])
133
85
  s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
134
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
135
86
  s.add_dependency(%q<jeweler>, ["~> 1.5.0.pre3"])
136
87
  s.add_dependency(%q<rcov>, [">= 0"])
137
88
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unit_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 2
8
9
  - 1
9
- - 0
10
- version: 0.1.0
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - millisami
@@ -16,11 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-22 00:00:00 +05:45
19
+ date: 2010-11-12 00:00:00 +05:45
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- type: :development
23
+ type: :runtime
24
24
  prerelease: false
25
25
  name: roo
26
26
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: "0"
35
35
  requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- type: :development
37
+ type: :runtime
38
38
  prerelease: false
39
39
  name: zip
40
40
  version_requirements: &id002 !ruby/object:Gem::Requirement
@@ -48,7 +48,7 @@ dependencies:
48
48
  version: "0"
49
49
  requirement: *id002
50
50
  - !ruby/object:Gem::Dependency
51
- type: :development
51
+ type: :runtime
52
52
  prerelease: false
53
53
  name: spreadsheet
54
54
  version_requirements: &id003 !ruby/object:Gem::Requirement
@@ -62,7 +62,7 @@ dependencies:
62
62
  version: "0"
63
63
  requirement: *id003
64
64
  - !ruby/object:Gem::Dependency
65
- type: :development
65
+ type: :runtime
66
66
  prerelease: false
67
67
  name: nokogiri
68
68
  version_requirements: &id004 !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: "0"
77
77
  requirement: *id004
78
78
  - !ruby/object:Gem::Dependency
79
- type: :development
79
+ type: :runtime
80
80
  prerelease: false
81
81
  name: google-spreadsheet-ruby
82
82
  version_requirements: &id005 !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: "0"
91
91
  requirement: *id005
92
92
  - !ruby/object:Gem::Dependency
93
- type: :development
93
+ type: :runtime
94
94
  prerelease: false
95
95
  name: activesupport
96
96
  version_requirements: &id006 !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ dependencies:
104
104
  version: "0"
105
105
  requirement: *id006
106
106
  - !ruby/object:Gem::Dependency
107
- type: :development
107
+ type: :runtime
108
108
  prerelease: false
109
109
  name: fastercsv
110
110
  version_requirements: &id007 !ruby/object:Gem::Requirement
@@ -118,73 +118,10 @@ dependencies:
118
118
  version: "0"
119
119
  requirement: *id007
120
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
121
+ type: :runtime
185
122
  prerelease: false
186
123
  name: bundler
187
- version_requirements: &id012 !ruby/object:Gem::Requirement
124
+ version_requirements: &id008 !ruby/object:Gem::Requirement
188
125
  none: false
189
126
  requirements:
190
127
  - - ~>
@@ -195,127 +132,12 @@ dependencies:
195
132
  - 0
196
133
  - 0
197
134
  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
135
+ requirement: *id008
314
136
  - !ruby/object:Gem::Dependency
315
137
  type: :runtime
316
138
  prerelease: false
317
139
  name: builder
318
- version_requirements: &id021 !ruby/object:Gem::Requirement
140
+ version_requirements: &id009 !ruby/object:Gem::Requirement
319
141
  none: false
320
142
  requirements:
321
143
  - - ">="
@@ -324,12 +146,12 @@ dependencies:
324
146
  segments:
325
147
  - 0
326
148
  version: "0"
327
- requirement: *id021
149
+ requirement: *id009
328
150
  - !ruby/object:Gem::Dependency
329
151
  type: :development
330
152
  prerelease: false
331
153
  name: rspec
332
- version_requirements: &id022 !ruby/object:Gem::Requirement
154
+ version_requirements: &id010 !ruby/object:Gem::Requirement
333
155
  none: false
334
156
  requirements:
335
157
  - - ">="
@@ -341,28 +163,12 @@ dependencies:
341
163
  - 0
342
164
  - rc
343
165
  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
166
+ requirement: *id010
361
167
  - !ruby/object:Gem::Dependency
362
168
  type: :development
363
169
  prerelease: false
364
170
  name: jeweler
365
- version_requirements: &id024 !ruby/object:Gem::Requirement
171
+ version_requirements: &id011 !ruby/object:Gem::Requirement
366
172
  none: false
367
173
  requirements:
368
174
  - - ~>
@@ -374,12 +180,12 @@ dependencies:
374
180
  - 0
375
181
  - pre3
376
182
  version: 1.5.0.pre3
377
- requirement: *id024
183
+ requirement: *id011
378
184
  - !ruby/object:Gem::Dependency
379
185
  type: :development
380
186
  prerelease: false
381
187
  name: rcov
382
- version_requirements: &id025 !ruby/object:Gem::Requirement
188
+ version_requirements: &id012 !ruby/object:Gem::Requirement
383
189
  none: false
384
190
  requirements:
385
191
  - - ">="
@@ -388,19 +194,16 @@ dependencies:
388
194
  segments:
389
195
  - 0
390
196
  version: "0"
391
- requirement: *id025
197
+ requirement: *id012
392
198
  description: Takes the Instruction Input as Rule, parse the CSV files and applies the validation and returns valid and invalid units
393
199
  email: saroj@sprout-technology.com
394
200
  executables: []
395
201
 
396
202
  extensions: []
397
203
 
398
- extra_rdoc_files:
399
- - LICENSE
400
- - README.md
204
+ extra_rdoc_files: []
205
+
401
206
  files:
402
- - .autotest
403
- - .gitignore
404
207
  - Gemfile
405
208
  - Gemfile.lock
406
209
  - LICENSE
@@ -417,13 +220,14 @@ files:
417
220
  - lib/generic_spreadsheet.rb
418
221
  - lib/tasks/rcov_custom.rb
419
222
  - lib/validator_helpers.rb
223
+ - pkg/unit_validator-0.2.0.gem
420
224
  - spec/.rspec
421
225
  - spec/cf_input_validator_spec.rb
422
226
  - spec/cf_result_validator_spec.rb
423
227
  - spec/spec_helper.rb
424
228
  - unit_validator.gemspec
425
229
  has_rdoc: true
426
- homepage: http://github.com/sprout/unit_validator
230
+ homepage: https://github.com/sprout/cloudfactory/tree/master/unit_validator/
427
231
  licenses: []
428
232
 
429
233
  post_install_message:
@@ -456,7 +260,5 @@ rubygems_version: 1.3.7
456
260
  signing_key:
457
261
  specification_version: 3
458
262
  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
263
+ test_files: []
264
+
data/.autotest DELETED
@@ -1,2 +0,0 @@
1
- require 'autotest/growl'
2
- require 'autotest/fsevent'
data/.gitignore DELETED
@@ -1,43 +0,0 @@
1
- # rcov generated
2
- coverage
3
-
4
- # rdoc generated
5
- rdoc
6
-
7
- # yard generated
8
- doc
9
- .yardoc
10
-
11
- # bundler
12
- .bundle
13
-
14
- # jeweler generated
15
- pkg
16
-
17
- # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
- #
19
- # * Create a file at ~/.gitignore
20
- # * Include files you want ignored
21
- # * Run: git config --global core.excludesfile ~/.gitignore
22
- #
23
- # After doing this, these files will be ignored in all your git projects,
24
- # saving you from having to 'pollute' every project you touch with them
25
- #
26
- # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
- #
28
- # For MacOS:
29
- #
30
- .DS_Store
31
- #
32
- # For TextMate
33
- *.tmproj
34
- tmtags
35
- #
36
- # For emacs:
37
- #*~
38
- #\#*
39
- #.\#*
40
- #
41
- # For vim:
42
- *.swp
43
- .~*