has_validated_attributes 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/has_validated_attributes/version.rb +1 -1
- data/lib/has_validated_attributes.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b8778accd86a1bd4e85d52a864b3cd174b0e2b
|
4
|
+
data.tar.gz: cae2e36a005a6075290c799bd3187ce9f57fd8a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5193bde2f53f86d86684edfdb7cb74e8509f263135f7b0b6027071808e82641b5c58f19ed48aa99dba558efd5b188c509fd1148c78a156a127906dce79932f0
|
7
|
+
data.tar.gz: fcb3dd82b04778557bdd7b941a1cc016bebba9cb3d5679e2f91a9b448a094b4e4c0077ef4d4eba70e4e988c8dbe40533df51873a7754c8ef5e2fbc90319e9e72
|
@@ -39,7 +39,7 @@ module HasValidatedAttributes
|
|
39
39
|
:email => {:length => {:maximum => 63}, :format => {:with => /\A(?!\.)("([^"\r\\]|\\["\r\\])*"|([-a-z0-9!#$%&'’*+\/=?^_`{|}~]|(?<!\.)\.)*)(?<!\.)@[a-z0-9][\w\.-]*[a-z0-9]*\.[a-z][a-z\.]*[a-z]\z/i, :message => "should look like an email address."}, :has_if? => true},
|
40
40
|
: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},
|
41
41
|
:phone_extension => {:length => {:maximum => 7}, :format => {:with => /\A\d+([\dxX]*\d)?\z/, :message => 'accepts only numbers (0-9) and "x"'}, :has_if? => true},
|
42
|
-
:domain => {:length => {:maximum => 63}, :format => {:with => /[a-z0-9-]+\.[a-z0-9
|
42
|
+
:domain => {:length => {:maximum => 63}, :format => {:with => /[a-z0-9-]+\.[a-z0-9\-\/\.]+/, :message => "should look like a domain name."}, :has_if? => true},
|
43
43
|
:zipcode => {:format => {:with => /\A\d{5}(\d{4})?\z/, :message => "must contain 5 or 9 numbers"}, :has_if? => true},
|
44
44
|
:middle_initial => {:format => {:with => /\A[a-zA-Z]{0,1}\z/u, :message => "accepts only one letter"}},
|
45
45
|
:dollar => {:format => {:with => /\A-?[0-9]{0,12}(\.[0-9]{0,2})?\z/, :message => "accepts only numeric characters, period, and negative sign"}, :numericality => {:greater_than => -1000000000000, :less_than => 1000000000000}, :allow_nil => true},
|