has_validated_attributes 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +1 -1
- data/lib/has_validated_attributes.rb +1 -1
- data/lib/version.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: f1e02e143cad7f92001777d15e1df4eeef861ba1
|
|
4
|
+
data.tar.gz: 0008c7ac7272a08a93f9aeb50ec50883ff72c3da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4995ad830393b1bdf470e0299b58649dcd01b5a606c7ce00c9c3c0869a2154358ab5e1fb67d2a77b6b840fedd3c731bd750d3b0a2e699fa48a430bf8fa023a7f
|
|
7
|
+
data.tar.gz: 717be739f18ecd4f1829fad88a8b37af08327db87179e0b0965915f2c22d39c165bcc87c96210b12fc6b1aa9f8469990a0d9c139042c8b1cddc52522c9290fb5
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
rvm: "2.
|
|
1
|
+
rvm: "2.2.2"
|
|
2
2
|
script: rake spec
|
|
@@ -34,7 +34,7 @@ module HasValidatedAttributes
|
|
|
34
34
|
:safe_text => { :safe_text => true, :has_if? => true},
|
|
35
35
|
:username => {:length => {:within => 5..127}, :format => {:with => /\A\w[\w\.\-_@]+\z/, :message => "use only letters, numbers, and .-_@ please."}, :uniqueness => true},
|
|
36
36
|
:rails_name => {:format => {:with => /\A[a-zA-Z\_]*?\z/u, :message => "should only include underscores and letters."}},
|
|
37
|
-
: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."}},
|
|
37
|
+
: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|insure)\z/i, :message => "should look like an email address."}},
|
|
38
38
|
: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},
|
|
39
39
|
:phone_extension => {:numericality => {:greater_than_or_equal_to => 0, :less_than => 100000000, :message => 'accepts only numbers (0-9)'}, :has_if? => true},
|
|
40
40
|
: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