Readme.md in activemodel-validators-2.0.0 vs Readme.md in activemodel-validators-3.0.0

- old
+ new

@@ -1,9 +1,9 @@ ActiveModel Validators ======================= -A collection of Rails 3 ActiveModel Validators +A collection of Rails ActiveModel Validators Example Usage ------------- ```ruby @@ -33,11 +33,10 @@ validates :total_profit, sum_of: { attr_names: (1..4).map {|quarter| :"total_profit_q#{quarter}" } } validates :end_date, date: {required: true} validates :graduation_year, year: true - validates :phone, phone: true validates :address_postal_code, postal_code: true validates :address_state, address_state: true end ``` @@ -57,11 +56,10 @@ * [SumOfValidator](activemodel-validators/blob/master/lib/activemodel-validators/sum_of_validator.rb) * [DateValidator](activemodel-validators/blob/master/lib/activemodel-validators/date_validator.rb) * [YearValidator](activemodel-validators/blob/master/lib/activemodel-validators/year_validator.rb) -* [PhoneValidator](activemodel-validators/blob/master/lib/activemodel-validators/phone_validator.rb) * [PostalCodeValidator](activemodel-validators/blob/master/lib/activemodel-validators/postal_code_validator.rb) * [AddressStateValidator](activemodel-validators/blob/master/lib/activemodel-validators/address_state_validator.rb) Installation ============ @@ -115,9 +113,11 @@ * https://github.com/aurels/extra_validators Specialized validators that stand on their own: ----------------------------------------------- +* https://github.com/daddyz/phonelib (`phone: true`) +* https://github.com/perfectline/validates_url * https://github.com/balexand/email_validator To do =====