validates-correios-cep 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -0
- data/lib/validates-correios-cep/activemodel.rb +1 -1
- data/lib/validates-correios-cep/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 294608a8516eec45e8556f9be41888da4f37798219a1dca990a3474d2911bcf9
|
4
|
+
data.tar.gz: 7377ebdb01bfd864510d5028e88314a9b0da4959d90da77a67ecb72ff538dc68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 522b2f10ed388add4c547954a28b8fa515ad47cb945c7f0c9dafe46c774beeb032bb81e7e72b1b9f54d8cdb298e80a61f03d67afe36d16b3bac259bd487043dc
|
7
|
+
data.tar.gz: e25e8d5c7824e841c738408ac839c9c2a94f103eff5efe39dcf01e61d15d65cda237e94febcce159d4ef587c85ad1733a742cade8b2d1a88dffc88b18882f437
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/validates-correios-cep.svg)](https://badge.fury.io/rb/validates-correios-cep)
|
4
4
|
[![Gem](https://img.shields.io/gem/dt/validates-correios-cep.svg)]()
|
5
|
+
[![Build Status](https://travis-ci.org/pedrofurtado/validates-correios-cep.svg?branch=master)](https://travis-ci.org/pedrofurtado/validates-correios-cep)
|
5
6
|
[![license](https://img.shields.io/github/license/pedrofurtado/validates-correios-cep.svg)]()
|
6
7
|
|
7
8
|
## Installation
|
@@ -17,7 +17,7 @@ module ActiveModel
|
|
17
17
|
"#{CORREIOS_CEP_I18N_SCOPE}.timeouted"
|
18
18
|
end
|
19
19
|
|
20
|
-
record.errors.add(attribute, error_message_scope, zipcode: value) if error_message_scope.present?
|
20
|
+
record.errors.add(attribute, I18n.t(error_message_scope, zipcode: value)) if error_message_scope.present?
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates-correios-cep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Furtado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.5.1
|
126
|
+
rubygems_version: 3.1.2
|
128
127
|
signing_key:
|
129
128
|
specification_version: 4
|
130
129
|
summary: Brazilian zipcode validations for ActiveRecord, integrated with correios-cep
|