lib/cep.rb in cep-0.0.4 vs lib/cep.rb in cep-0.0.5

- old
+ new

@@ -6,10 +6,10 @@ class Cep URL = 'http://m.correios.com.br/movel/buscaCepConfirma.do' def search(term) - response = query({cepEntrada: term, metodo: :buscarCep}) + response = query({cepEntrada: term.parameterize(' '), metodo: :buscarCep}) Correios::AddressSearchResponse.new(response.body).addresses end alias_method :address, :search def cep(cep) \ No newline at end of file