cep 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cep.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cb17e06f2e8155fbc862db1ade693ae3b06840e
|
4
|
+
data.tar.gz: df23ec0bbbb57d168ace1d2c8009967a81ef39bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a612801ab331237367002f8acf1145f64cfd2bd81c1abf2f0c6115cb713451cb6b66ae0a9b0ce5fd8d1accbbb5b166a3caa14bc8e89600cb7a9cf0c2321905de
|
7
|
+
data.tar.gz: b468ca9f88adaefb9fd3816994f6f4900433716cd0581a4c2357e0dd6b71aa5665a9618bc1ac2601e7673f8b26f122b565275a3935262bb673830d715df7b6bd
|
data/lib/cep.rb
CHANGED
@@ -8,7 +8,7 @@ class Cep
|
|
8
8
|
URL = 'http://m.correios.com.br/movel/buscaCepConfirma.do'
|
9
9
|
|
10
10
|
def search(term)
|
11
|
-
response = query({cepEntrada: term, metodo: :buscarCep})
|
11
|
+
response = query({cepEntrada: term.parameterize(' '), metodo: :buscarCep})
|
12
12
|
Correios::AddressSearchResponse.new(response.body).addresses
|
13
13
|
end
|
14
14
|
alias_method :address, :search
|