custom_validations 1.0.0 → 1.0.1
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.
data/lib/custom_validations.rb
CHANGED
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"pt-BR":
|
2
|
+
errors:
|
3
|
+
# Os valores :model, :attribute e :value estão disponíveis para interpolação
|
4
|
+
# O valor :count está disponível quando aplicável. Pode ser usado para pluralização.
|
5
|
+
messages:
|
6
|
+
br_cpf: "não é um CPF válido"
|
7
|
+
br_cnpj: "não é um CNPJ válido"
|
8
|
+
br_postal_code: "não é um CEP válido"
|
9
|
+
email: "não é um endereço de email"
|
10
|
+
url: "é uma url inválida"
|
11
|
+
url_as_host: "é uma url inválida (informe apenas o domínio, sem http e /)"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,8 @@ files:
|
|
58
58
|
- lib/custom_validations/client_side_validations_midleware/url.rb
|
59
59
|
- lib/custom_validations/email_validator.rb
|
60
60
|
- lib/custom_validations/engine.rb
|
61
|
-
- lib/custom_validations/
|
61
|
+
- lib/custom_validations/locales/en.yml
|
62
|
+
- lib/custom_validations/locales/pt-br.yml
|
62
63
|
- lib/custom_validations/url_validator.rb
|
63
64
|
- lib/custom_validations/version.rb
|
64
65
|
- vendor/assets/javascripts/rails.custom_validations.js
|
@@ -76,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
77
|
version: '0'
|
77
78
|
segments:
|
78
79
|
- 0
|
79
|
-
hash:
|
80
|
+
hash: -2337276664310494744
|
80
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
82
|
none: false
|
82
83
|
requirements:
|
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
86
|
version: '0'
|
86
87
|
segments:
|
87
88
|
- 0
|
88
|
-
hash:
|
89
|
+
hash: -2337276664310494744
|
89
90
|
requirements: []
|
90
91
|
rubyforge_project:
|
91
92
|
rubygems_version: 1.8.24
|