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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d57439a5bdcac3e0a4f4a8c7d487f12ee610e8e2
4
- data.tar.gz: 935797ad6188c4c2248bf6085d54f917e09e327d
3
+ metadata.gz: 44b8778accd86a1bd4e85d52a864b3cd174b0e2b
4
+ data.tar.gz: cae2e36a005a6075290c799bd3187ce9f57fd8a3
5
5
  SHA512:
6
- metadata.gz: 393bc34ff895f6c1a53b35dbebc23d382344e01588be065b137c521968b7b50742da0a78e97fb2f3cf5a5aa2b11bd1900d71e228e62a283b764e04d661f8d2ce
7
- data.tar.gz: 356624b416db37b025b1892e5d070a8af82e40662ef244a7e5427141975c209094e9effc05a9f2044931a1ce22515dbf1bb9d3deb780138c93853711dba7bd61
6
+ metadata.gz: f5193bde2f53f86d86684edfdb7cb74e8509f263135f7b0b6027071808e82641b5c58f19ed48aa99dba558efd5b188c509fd1148c78a156a127906dce79932f0
7
+ data.tar.gz: fcb3dd82b04778557bdd7b941a1cc016bebba9cb3d5679e2f91a9b448a094b4e4c0077ef4d4eba70e4e988c8dbe40533df51873a7754c8ef5e2fbc90319e9e72
@@ -1,3 +1,3 @@
1
1
  module HasValidatedAttributes
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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-\/\.]+/, :message => "should look like a domain name."}, :has_if? => true},
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},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_validated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Ginavan