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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c761c309029c68a341e56752666b57328813b3d1
4
- data.tar.gz: 2c738c7475c92be1b079b0dfa793eb2b0332551c
3
+ metadata.gz: f1e02e143cad7f92001777d15e1df4eeef861ba1
4
+ data.tar.gz: 0008c7ac7272a08a93f9aeb50ec50883ff72c3da
5
5
  SHA512:
6
- metadata.gz: f9584b22066a04733b72b7152bf5376b651b14edb8a73d500ee515447e57cd99dbad0d3b9eef4cb34da58c3fc08afba2d553f7780252ff04991a669f6e745ea9
7
- data.tar.gz: 9032cd2eb87d20c991ce5e7d74ac63397bd7d35e8aa6829b1184f8c197b57715a24276d7a7852320b840e5e3100065bc0b0574992f5382253dfe04280bff07a2
6
+ metadata.gz: 4995ad830393b1bdf470e0299b58649dcd01b5a606c7ce00c9c3c0869a2154358ab5e1fb67d2a77b6b840fedd3c731bd750d3b0a2e699fa48a430bf8fa023a7f
7
+ data.tar.gz: 717be739f18ecd4f1829fad88a8b37af08327db87179e0b0965915f2c22d39c165bcc87c96210b12fc6b1aa9f8469990a0d9c139042c8b1cddc52522c9290fb5
data/.gitignore CHANGED
@@ -10,4 +10,5 @@ log
10
10
  .gitconfig
11
11
  bin/*
12
12
  .rbenv-version
13
- .rbenv-gemsets
13
+ .rbenv-gemsets
14
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -1,2 +1,2 @@
1
- rvm: "2.1.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
@@ -1,3 +1,3 @@
1
1
  module HasValidatedAttributes
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Ginavan