config/locales/en.yml in flash_validators-0.0.1 vs config/locales/en.yml in flash_validators-1.0.0
- old
+ new
@@ -1,9 +1,12 @@
en:
errors:
messages:
+ alpha: "is not a valid alpha characters"
+ alpha_numeric: "is not a valid alpha-numeric characters"
boolean: "is not a valid boolean"
+ credit_card: "is not a valid credit card"
currency: "is not a valid currency"
email: "is not a valid email"
equality: "is not %{operator} %{attr}"
hex: "is not a valid hex color"
imei: "is not a valid IMEI"
@@ -18,12 +21,21 @@
ssn: "is not a valid social security number"
url: "is not a valid URL"
username: "is not a valid username"
flash_validators:
matchers:
+ ensure_valid_alpha_format_of:
+ failure_message_for_should: "#{model} should ensure valid alpha format of attribute #{attr}"
+ failure_message_for_should_not: "#{model} should not ensure valid alpha format of attribute #{attr}"
+ ensure_valid_alpha_numeric_format_of:
+ failure_message_for_should: "#{model} should ensure valid alpha numeric format of attribute #{attr}"
+ failure_message_for_should_not: "#{model} should not ensure valid alpha numeric format of attribute #{attr}"
ensure_valid_boolean_format_of:
failure_message_for_should: "#{model} should ensure valid boolean format of attribute #{attr}"
failure_message_for_should_not: "#{model} should not ensure valid boolean format of attribute #{attr}"
+ ensure_valid_credit_card_format_of:
+ failure_message_for_should: "#{model} should ensure valid credit card format of attribute #{attr}"
+ failure_message_for_should_not: "#{model} should not ensure valid credit card format of attribute #{attr}"
ensure_valid_currency_format_of:
failure_message_for_should: "#{model} should ensure valid currency format of attribute #{attr}"
failure_message_for_should_not: "#{model} should not ensure valid currency format of attribute #{attr}"
ensure_valid_email_format_of:
failure_message_for_should: "#{model} should ensure valid email format of attribute #{attr}"
\ No newline at end of file