has_validated_attributes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 19e53c94ab09040c1ff212fc938d1dcd5dd2b3e0
4
+ data.tar.gz: da2dee3ed009a0cd514552b0283d7ea2c3c3ab18
5
+ SHA512:
6
+ metadata.gz: c82d71c39f4968d0f4fedffa61d8bb97efd6597280a320c4277bec0e938db05c7f603f4fbbc8246c00d813181223f3822f165e9e46ea241ccc2145bf41edd984
7
+ data.tar.gz: 36d277961397f335299fea37207e904c2ecfb4763a667194e76e0758383560afd989bd1e5156cbb36fcb4ad3ed9213b4706c7eb08f2d5dfdea0d74cfd70ecb35
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module HasValidatedAttributes
2
4
  extend ActiveSupport::Concern
3
5
 
@@ -22,7 +24,7 @@ module HasValidatedAttributes
22
24
  validations :name => {:format => {:with => /\A[^[:cntrl:]\\<>]*\z/, :message => "avoid non-printing characters and \\&gt;&lt;/ please."}, :length => {:maximum => 63}, :has_if? => true},
23
25
  :username => {:length => {:within => 5..127}, :format => {:with => /\A\w[\w\.\-_@]+\z/, :message => "use only letters, numbers, and .-_@ please."}, :uniqueness => true},
24
26
  :rails_name => {:format => {:with => /\A[a-zA-Z\_]*?\z/u, :message => "should only include underscores and letters."}},
25
- :email => {:length => {:maximum => 63}, :format => {:with => /\A[\w\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|pro|mobi|name|aero|jobs|museum)\z/i, :message => "should look like an email address."}},
27
+ :email => {:length => {:maximum => 63}, :format => {:with => /\A[\w\.%\+\-’']+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|pro|mobi|name|aero|jobs|museum)\z/i, :message => "should look like an email address."}},
26
28
  :phone_number => {:numericality => {:greater_than_or_equal_to => 1000000000, :less_than => 10000000000, :message => 'accepts only 10 numbers and (),.- characters and must not be all 0s'}, :has_if? => true},
27
29
  :phone_extension => {:numericality => {:greater_than_or_equal_to => 0, :less_than => 100000000, :message => 'accepts only numbers (0-9)'}, :has_if? => true},
28
30
  :domain => {:length => {:maximum => 63}, :format => {:with => /\A(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|pro|mobi|name|aero|jobs|museum)\z/i, :message => "should look like a domain name."}},
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module HasValidatedAttributes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/spec/db/test.sqlite3 CHANGED
Binary file
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  class Resource < ActiveRecord::Base
@@ -12,17 +14,17 @@ end
12
14
 
13
15
  describe "HasValidatedAttributes" do
14
16
  before(:each) do
15
- @resource = Resource.create(:username_attr => "testusername", :name_attr => "testname", :email_attr => "test@example.com",
17
+ @resource = Resource.create(:username_attr => "testusername", :name_attr => "testname", :email_attr => "test@example.com",
16
18
  :phone_number_attr => "1111111111", :phone_extension_attr => "111111", :domain_attr => "www.test.com", :zipcode_attr => "11111",
17
19
  :middle_initial_attr => "A", :dollar_attr => "-11", :positive_dollar_attr => "1", :percent_attr => "12",
18
20
  :positive_percent_attr => "99", :url_attr => "http://www.google.com", :ssn_attr => "111111111", :taxid_attr => "111111111",
19
21
  :number_attr => "1", :age_attr => 28)
20
22
  end
21
23
 
22
- describe "#username" do
24
+ describe "#username" do
23
25
  it "should return error" do
24
26
  [">*,.<><", "<<< test", "Kansas City", "-- Hey --", "& youuuu", "21 Jump"].each do |value|
25
- @resource.username_attr = value
27
+ @resource.username_attr = value
26
28
  @resource.valid?.should be_false
27
29
  @resource.errors.full_messages.should == ["Username attr use only letters, numbers, and .-_@ please."]
28
30
  end
@@ -42,7 +44,7 @@ describe "HasValidatedAttributes" do
42
44
 
43
45
  it "should return ok" do
44
46
  ["kansascity", "kansascity@org1", "kansas.city@org1", "kansas_city@org1", "kansas-city", "1kc.-_@"].each do |value|
45
- @resource.username_attr = value
47
+ @resource.username_attr = value
46
48
  @resource.valid?.should be_true
47
49
  end
48
50
  end
@@ -51,7 +53,7 @@ describe "HasValidatedAttributes" do
51
53
  describe "#name" do
52
54
  it "should return error" do
53
55
  [">*", "< test"].each do |value|
54
- @resource.name_attr = value
56
+ @resource.name_attr = value
55
57
  @resource.valid?.should be_false
56
58
  @resource.errors.full_messages.should == ["Name attr avoid non-printing characters and \\&gt;&lt;/ please."]
57
59
  end
@@ -65,7 +67,7 @@ describe "HasValidatedAttributes" do
65
67
 
66
68
  it "should return ok" do
67
69
  ["k c", "- H-", " t", "& u", "21 ", "brok", nil].each do |value|
68
- @resource.name_attr = value
70
+ @resource.name_attr = value
69
71
  @resource.valid?.should be_true
70
72
  end
71
73
  end
@@ -74,7 +76,7 @@ describe "HasValidatedAttributes" do
74
76
  describe "#email" do
75
77
  it "should return error" do
76
78
  ["Abc.example.com", "A@b@c@example.com", "()[]\;:,<>@example.com", "abc@example.comar"].each do |value|
77
- @resource.email_attr = value
79
+ @resource.email_attr = value
78
80
  @resource.valid?.should be_false
79
81
  @resource.errors.full_messages.should == ["Email attr should look like an email address."]
80
82
  end
@@ -86,9 +88,9 @@ describe "HasValidatedAttributes" do
86
88
  @resource.errors.full_messages.should == ["Email attr is too long (maximum is 63 characters)", "Email attr should look like an email address."]
87
89
  end
88
90
 
89
- it "should return ok" do
90
- ["abc@example.com", "Abc@example.com", "aBC@example.com", "abc.123@example.com"].each do |value|
91
- @resource.email_attr = value
91
+ ["abc@example.com", "Abc@example.com", "aBC@example.com", "abc.123@example.com", "mo’reilly@example.com", "ro'sullivan@example.com"].each do |value|
92
+ it "should return ok for `#{ value }`" do
93
+ @resource.email_attr = value
92
94
  @resource.valid?.should be_true
93
95
  end
94
96
  end
@@ -97,15 +99,15 @@ describe "HasValidatedAttributes" do
97
99
  describe "#phone_number" do
98
100
  it "should return error" do
99
101
  [">*", "< test", "www.test..com", "www.test.c", "www-test.com", "abc", "123", "&*()", "www.test-com"].each do |value|
100
- @resource.phone_number_attr = value
102
+ @resource.phone_number_attr = value
101
103
  @resource.valid?.should be_false
102
- @resource.errors.full_messages.should == ["Phone number attr accepts only 10 numbers and (),.- characters"]
104
+ @resource.errors.full_messages.should == ["Phone number attr accepts only 10 numbers and (),.- characters and must not be all 0s"]
103
105
  end
104
106
  end
105
107
 
106
108
  it "should return ok" do
107
109
  ["9134456677", "5444456677"].each do |value|
108
- @resource.phone_number_attr = value
110
+ @resource.phone_number_attr = value
109
111
  @resource.valid?.should be_true
110
112
  end
111
113
  end
@@ -114,7 +116,7 @@ describe "HasValidatedAttributes" do
114
116
  describe "#phone_extension" do
115
117
  it "should return error" do
116
118
  ["-1", "qwert"].each do |value|
117
- @resource.phone_extension_attr = value
119
+ @resource.phone_extension_attr = value
118
120
  @resource.valid?.should be_false
119
121
  @resource.errors.full_messages.should == ["Phone extension attr accepts only numbers (0-9)"]
120
122
  end
@@ -122,7 +124,7 @@ describe "HasValidatedAttributes" do
122
124
 
123
125
  it "should return ok" do
124
126
  ["123", "123456"].each do |value|
125
- @resource.phone_extension_attr = value
127
+ @resource.phone_extension_attr = value
126
128
  @resource.valid?.should be_true
127
129
  end
128
130
  end
@@ -132,7 +134,7 @@ describe "HasValidatedAttributes" do
132
134
  describe "#domain" do
133
135
  it "should return error" do
134
136
  [">*", "<test", "test-er"].each do |value|
135
- @resource.domain_attr = value
137
+ @resource.domain_attr = value
136
138
  @resource.valid?.should be_false
137
139
  @resource.errors.full_messages.should == ["Domain attr should look like a domain name."]
138
140
  end
@@ -147,7 +149,7 @@ describe "HasValidatedAttributes" do
147
149
 
148
150
  it "should return ok" do
149
151
  ["test.com", "hey.com", "dynamicadvisorsgroup.com", "advisorsexcel.com"].each do |value|
150
- @resource.domain_attr = value
152
+ @resource.domain_attr = value
151
153
  @resource.valid?.should be_true
152
154
  end
153
155
  end
@@ -156,7 +158,7 @@ describe "HasValidatedAttributes" do
156
158
  describe "#zipcode" do
157
159
  it "should return error" do
158
160
  ["5555", "5555555555","-99999"].each do |value|
159
- @resource.zipcode_attr = value
161
+ @resource.zipcode_attr = value
160
162
  @resource.valid?.should be_false
161
163
  @resource.errors.full_messages.should == ["Zipcode attr must contain 5 or 9 numbers"]
162
164
  end
@@ -164,7 +166,7 @@ describe "HasValidatedAttributes" do
164
166
 
165
167
  it "should return ok" do
166
168
  ["11111", "333333333"].each do |value|
167
- @resource.zipcode_attr = value
169
+ @resource.zipcode_attr = value
168
170
  @resource.valid?.should be_true
169
171
  end
170
172
  end
@@ -174,7 +176,7 @@ describe "HasValidatedAttributes" do
174
176
  describe "#middle_initial" do
175
177
  it "should return error" do
176
178
  ["k c", "55555", "55555-5555", "55555 5555", "55555.5555", "(888)88-9999", " ,-99999"].each do |value|
177
- @resource.middle_initial_attr = value
179
+ @resource.middle_initial_attr = value
178
180
  @resource.valid?.should be_false
179
181
  @resource.errors.full_messages.should == ["Middle initial attr accepts only one letter"]
180
182
  end
@@ -182,7 +184,7 @@ describe "HasValidatedAttributes" do
182
184
 
183
185
  it "should return ok" do
184
186
  ["a", "A"].each do |value|
185
- @resource.middle_initial_attr = value
187
+ @resource.middle_initial_attr = value
186
188
  @resource.valid?.should be_true
187
189
  end
188
190
  end
@@ -191,7 +193,7 @@ describe "HasValidatedAttributes" do
191
193
  describe "#dollar" do
192
194
  it "should return error" do
193
195
  ["0.2222"].each do |value|
194
- @resource.dollar_attr = value
196
+ @resource.dollar_attr = value
195
197
  @resource.valid?.should be_false
196
198
  @resource.errors.full_messages.should == ["Dollar attr accepts only numeric characters, period, and negative sign"]
197
199
  end
@@ -199,7 +201,7 @@ describe "HasValidatedAttributes" do
199
201
 
200
202
  it "should return ok" do
201
203
  ["0", "1", "100", "1000", "-1000.99"].each do |value|
202
- @resource.dollar_attr = value
204
+ @resource.dollar_attr = value
203
205
  @resource.valid?.should be_true
204
206
  end
205
207
  end
@@ -209,7 +211,7 @@ describe "HasValidatedAttributes" do
209
211
  describe "#positive dollar" do
210
212
  it "should return error" do
211
213
  ["-0.2", "-1"].each do |value|
212
- @resource.positive_dollar_attr = value
214
+ @resource.positive_dollar_attr = value
213
215
  @resource.valid?.should be_false
214
216
  @resource.errors.full_messages.should == ["Positive dollar attr accepts only numeric characters, period", "Positive dollar attr must be greater than or equal to 0"]
215
217
  end
@@ -217,7 +219,7 @@ describe "HasValidatedAttributes" do
217
219
 
218
220
  it "should return ok" do
219
221
  ["1", "100", "1000", "1000.99"].each do |value|
220
- @resource.positive_dollar_attr = value
222
+ @resource.positive_dollar_attr = value
221
223
  @resource.valid?.should be_true
222
224
  end
223
225
  end
@@ -226,7 +228,7 @@ describe "HasValidatedAttributes" do
226
228
  describe "#percent" do
227
229
  it "should return error" do
228
230
  ["ewqr", "&"].each do |value|
229
- @resource.percent_attr = value
231
+ @resource.percent_attr = value
230
232
  @resource.valid?.should be_false
231
233
  @resource.errors.full_messages.should == ["Percent attr accepts only numeric characters, period, negative sign, and must be equal/less/greater than +/- 100"]
232
234
  end
@@ -234,7 +236,7 @@ describe "HasValidatedAttributes" do
234
236
 
235
237
  it "should return ok" do
236
238
  ["99.999", "0.001", "99"].each do |value|
237
- @resource.percent_attr = value
239
+ @resource.percent_attr = value
238
240
  @resource.valid?.should be_true
239
241
  end
240
242
  end
@@ -244,7 +246,7 @@ describe "HasValidatedAttributes" do
244
246
  describe "#positive_percent" do
245
247
  it "should return error" do
246
248
  ["-100"].each do |value|
247
- @resource.positive_percent_attr = value
249
+ @resource.positive_percent_attr = value
248
250
  @resource.valid?.should be_false
249
251
  @resource.errors.full_messages.should == ["Positive percent attr accepts only numeric characters, period, and must be less than 100", "Positive percent attr must be greater than or equal to 0"]
250
252
  end
@@ -252,7 +254,7 @@ describe "HasValidatedAttributes" do
252
254
 
253
255
  it "should return ok" do
254
256
  ["99.999", "0.001", "99"].each do |value|
255
- @resource.positive_percent_attr = value
257
+ @resource.positive_percent_attr = value
256
258
  @resource.valid?.should be_true
257
259
  end
258
260
  end
@@ -261,7 +263,7 @@ describe "HasValidatedAttributes" do
261
263
  describe "#url" do
262
264
  it "should return error" do
263
265
  ["ewqr", "&", "test.c", "www.test", "test.", "www-test.com"].each do |value|
264
- @resource.url_attr = value
266
+ @resource.url_attr = value
265
267
  @resource.valid?.should be_false
266
268
  @resource.errors.full_messages.should == ["Url attr web address isnt valid"]
267
269
  end
@@ -269,7 +271,7 @@ describe "HasValidatedAttributes" do
269
271
 
270
272
  it "should return ok" do
271
273
  ["http://www.example.com", "http://fiance.example.com"].each do |value|
272
- @resource.url_attr = value
274
+ @resource.url_attr = value
273
275
  @resource.valid?.should be_true
274
276
  end
275
277
  end
@@ -278,7 +280,7 @@ describe "HasValidatedAttributes" do
278
280
  describe "#ssn" do
279
281
  it "should return error" do
280
282
  ["111-111-111"].each do |value|
281
- @resource.ssn_attr = value
283
+ @resource.ssn_attr = value
282
284
  @resource.valid?.should be_false
283
285
  @resource.errors.full_messages.should == ["Ssn attr is the wrong length (should be 9 characters)", "Ssn attr must be in the format 111-11-1111"]
284
286
  end
@@ -286,7 +288,7 @@ describe "HasValidatedAttributes" do
286
288
 
287
289
  it "should return ok" do
288
290
  ["111111111"].each do |value|
289
- @resource.ssn_attr = value
291
+ @resource.ssn_attr = value
290
292
  @resource.valid?.should be_true
291
293
  end
292
294
  end
@@ -294,7 +296,7 @@ describe "HasValidatedAttributes" do
294
296
 
295
297
  describe "#taxid" do
296
298
  it "should return error" do
297
- @resource.taxid_attr = "ab-cdefgh"
299
+ @resource.taxid_attr = "ab-cdefgh"
298
300
  @resource.valid?.should be_false
299
301
  @resource.errors.full_messages.should == ["Taxid attr must be in the format 11-1111111"]
300
302
  end
@@ -309,7 +311,7 @@ describe "HasValidatedAttributes" do
309
311
 
310
312
  it "should return ok" do
311
313
  ["111111111"].each do |value|
312
- @resource.taxid_attr = value
314
+ @resource.taxid_attr = value
313
315
  @resource.valid?.should be_true
314
316
  end
315
317
  end
@@ -318,14 +320,14 @@ describe "HasValidatedAttributes" do
318
320
 
319
321
  describe "#age" do
320
322
  it "should return error" do
321
- @resource.age_attr = "111"
323
+ @resource.age_attr = "111"
322
324
  @resource.valid?.should be_false
323
325
  @resource.errors.full_messages.should == ["Age attr must contain only 3 numbers and less than 110"]
324
326
  end
325
327
 
326
328
  it "should return ok" do
327
329
  ["1", "10", "100"].each do |value|
328
- @resource.age_attr = value
330
+ @resource.age_attr = value
329
331
  @resource.valid?.should be_true
330
332
  end
331
333
  end
@@ -333,14 +335,14 @@ describe "HasValidatedAttributes" do
333
335
 
334
336
  describe "#number" do
335
337
  it "should return error" do
336
- @resource.number_attr = "aaa"
338
+ @resource.number_attr = "aaa"
337
339
  @resource.valid?.should be_false
338
340
  @resource.errors.full_messages.should == ["Number attr accepts only numbers (0-9)"]
339
341
  end
340
342
 
341
343
  it "should return ok" do
342
344
  ["1", "10", "100"].each do |value|
343
- @resource.number_attr = value
345
+ @resource.number_attr = value
344
346
  @resource.valid?.should be_true
345
347
  end
346
348
  end
metadata CHANGED
@@ -1,118 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: has_validated_attributes
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
6
5
  platform: ruby
7
- authors:
8
- - Kyle Ginavan
6
+ authors:
7
+ - Kyle Ginavan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2010-05-18 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rspec
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: activerecord
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: 3.1.0
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: sqlite3
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: database_cleaner
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :development
58
- version_requirements: *id004
59
- description: has_validated_attributes is a Ruby on Rails gem that lets you validate your fields.
11
+ date: 2010-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: database_cleaner
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: has_validated_attributes is a Ruby on Rails gem that lets you validate
70
+ your fields.
60
71
  email: kylejginavan@gmail.com
61
72
  executables: []
62
-
63
73
  extensions: []
64
-
65
74
  extra_rdoc_files: []
66
-
67
- files:
68
- - .gitignore
69
- - .rspec
70
- - .travis.yml
71
- - Gemfile
72
- - README.rdoc
73
- - Rakefile
74
- - has_validated_attributes.gemspec
75
- - lib/has_validated_attributes.rb
76
- - lib/version.rb
77
- - spec/db/database.yml
78
- - spec/db/schema.rb
79
- - spec/db/test.rb
80
- - spec/db/test.sqlite3
81
- - spec/has_validate_fields_spec.rb
82
- - spec/spec_helper.rb
83
- - spec/test.rb
75
+ files:
76
+ - .gitignore
77
+ - .rspec
78
+ - .travis.yml
79
+ - Gemfile
80
+ - README.rdoc
81
+ - Rakefile
82
+ - has_validated_attributes.gemspec
83
+ - lib/has_validated_attributes.rb
84
+ - lib/version.rb
85
+ - spec/db/database.yml
86
+ - spec/db/schema.rb
87
+ - spec/db/test.rb
88
+ - spec/db/test.sqlite3
89
+ - spec/has_validate_fields_spec.rb
90
+ - spec/spec_helper.rb
91
+ - spec/test.rb
84
92
  homepage: https://github.com/kylejginavan/has_validated_attributes
85
93
  licenses: []
86
-
94
+ metadata: {}
87
95
  post_install_message:
88
96
  rdoc_options: []
89
-
90
- require_paths:
91
- - lib
92
- required_ruby_version: !ruby/object:Gem::Requirement
93
- none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: "0"
98
- required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: "0"
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
104
109
  requirements: []
105
-
106
110
  rubyforge_project: has_validated_attributes
107
- rubygems_version: 1.8.15
111
+ rubygems_version: 2.0.14
108
112
  signing_key:
109
- specification_version: 3
113
+ specification_version: 4
110
114
  summary: Ruby on Rails gem for validate data prior to save
111
- test_files:
112
- - spec/db/database.yml
113
- - spec/db/schema.rb
114
- - spec/db/test.rb
115
- - spec/db/test.sqlite3
116
- - spec/has_validate_fields_spec.rb
117
- - spec/spec_helper.rb
118
- - spec/test.rb
115
+ test_files:
116
+ - spec/db/database.yml
117
+ - spec/db/schema.rb
118
+ - spec/db/test.rb
119
+ - spec/db/test.sqlite3
120
+ - spec/has_validate_fields_spec.rb
121
+ - spec/spec_helper.rb
122
+ - spec/test.rb