README.markdown in mask_validator-0.2 vs README.markdown in mask_validator-0.2.1

- old
+ new

@@ -6,16 +6,22 @@ The gem works getting the value before type cast and comparing with a regexp from the mask pattern. ## Installation -`gem "mask_validator"` +Use the github version until a really stable version be released. +`gem "mask_validator", :git => "git://github.com/MarceloCajueiro/mask_validator.git"` + ## Usage: `validates :phone, mask: "(99) 9999-9999"` `validates :acronym, mask: "***"` + +`validates :acronym, mask: :custom_method` + +`validates :acronym, mask: Proc.new{|o| o.custom_method}` * a - Represents an alpha character (A-Z,a-z) * 9 - Represents a numeric character (0-9) * * - Represents an alphanumeric character (A-Z,a-z,0-9)