correios-cep 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bc4441b5d3c6ff969685804ab53390e48c24c05b3ade2bcc4d7043a8fd9618f
4
- data.tar.gz: c3808af26318064d5c106144d0125b5a9c1d6d093dfd95255bc0022d5f9d80df
3
+ metadata.gz: 2e4c8378bcd592532a37c92841ae2656eb703da7f4d4692a7491a3800ca84f21
4
+ data.tar.gz: ced0ad3e46a2ecafb7d42f57867a2e4a05a5a67c758b0ffd396271c38ba9e137
5
5
  SHA512:
6
- metadata.gz: 86bb93944da8b5b54733453dc5364f5a4c57adc2d7cc20050b888c0c3310d12f9ece84c495940334208433d2de2ec0efafebc121877d11f7f29c6ba4448ff63d
7
- data.tar.gz: beccb5b5349378ee389d84d3e0f2c2e7b62f8f9bd73c054699123f12cdeac1d8959d2a68be88a4b4307a0dbf4c0076ae3b26d16087ca61bff7e68a919cf3b1e0
6
+ metadata.gz: bc2924d1d79a954793358f46841ceb40fe70e5e709b5269c8d7eee57a2eed275936075aadf7e5a696d51ecdad523653f1ab5a254822e8e1ab8ac2973d2e5f646
7
+ data.tar.gz: 68932d624083d07f83a6b6e98f57f0c57bdfae6dc88422e5d898b086642ec649960d1f0a01d1ac0ca1493cd83164caeb9af1a0a4472bd2c4e53041b0d50d56f8
@@ -1,5 +1,6 @@
1
1
  | Version | Changes |
2
2
  | ------- | ------- |
3
+ | 0.6.8 | Fix parsing bug when Correios API omits "complemento" XML node in response. |
3
4
  | 0.6.7 | Update Ox gem version to `2.9`. |
4
5
  | 0.6.6 | Update Ox gem version to `2.8.4`. |
5
6
  | 0.6.5 | Update Ox gem version to `2.8.2`. [PR #17](https://github.com/prodis/correios-cep/pull/17) |
@@ -44,6 +44,7 @@ module Correios
44
44
  end
45
45
 
46
46
  def join_complements(address)
47
+ address[:complement] = "" if address[:complement].nil?
47
48
  address[:complement] += " #{address.delete(:complement2)}"
48
49
  address[:complement].strip!
49
50
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Correios
3
3
  module CEP
4
- VERSION = '0.6.7'
4
+ VERSION = '0.6.8'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correios-cep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prodis a.k.a. Fernando Hamasaki de Amorim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-19 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log-me
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.7.3
176
+ rubygems_version: 2.7.7
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Correios CEP gem finds updated Brazilian addresses by zipcode, directly from