prodis / correios-cep

Find Brazilian addresses by zipcode, directly from Correios database. No HTML parsers.
Apache License 2.0
168 stars 33 forks source link

Adicionado correção para quando não existe "complemento" na resposta do Correios #21

Closed qw3 closed 6 years ago

qw3 commented 6 years ago

Criar o complemento para evitar erro no Parser. Correios não está enviando mais o campo "complemento", o que causa erro nas funções do Parser.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 5f4fe6518d199d24326a1614dd6758fa3bb08fba on qw3:master into 2668a7d76e1dbdcbb4dadc30cb29c37e4aa4f338 on prodis:master.

prodis commented 6 years ago

@qw3 Thanks for sending this bug fix! 👍 It was released with version 0.6.8.

I will review the parsing implementation to be more defensive since we cannot trust on the integrity of Correios API responses.

prodis commented 6 years ago

http://www.rubyflow.com/p/h500wb-correios-cep-bug-fix-released