cep 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cep.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7f73612ee1110ee8ace40b70cf0b21737f121db
4
- data.tar.gz: b939df23cb6d4a99a7fd8b2f8d688b1b23843dd7
3
+ metadata.gz: 7cb17e06f2e8155fbc862db1ade693ae3b06840e
4
+ data.tar.gz: df23ec0bbbb57d168ace1d2c8009967a81ef39bd
5
5
  SHA512:
6
- metadata.gz: 57d6debd7b057ae6ba6ce6b57e8714d72ed4b3980c5a75f36a0ac6b6cfa833ed1f42aca58b111061f193780b7e51cf65e67fdaed152c9472fb385a3917a14bda
7
- data.tar.gz: 6fd94ef37f79990613b4d82f6cc35ed8646f1227e36cae2878b786efc6a1f9feefdb5884f521da3b9678cdd6d6489f051939c836ec62792b68f23c498db86ebe
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus