local_postal 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed2600f0a7379186d3ba0141a63a5b21cd8f13d8
4
- data.tar.gz: 95ef6f15bec1d8447d59eb7a3fa0c1bc14b3f468
3
+ metadata.gz: 2d793deb48bd599317eaca59773e4b88bcee889f
4
+ data.tar.gz: 75a7465e126477c02f2d528ed008e287c98af1bf
5
5
  SHA512:
6
- metadata.gz: b34fde1812178871e094be8e554f5cc809e6bd7524957d6853cc32c17b418382ca8927a84719a7399a8261db922305d81e52395e2d53f6618f4d7ae80df794e2
7
- data.tar.gz: cb8a5e216beea4d21be8eb0e0751f467c51993d2d19acc2dc41714fd1a724c8b701fce7a13b5c36c06e1b23e25cd7a88b06a41f6c22bcb5b767593d145f5f817
6
+ metadata.gz: 76a17d15971e425baf2c74bad30d31a290e2fda1e94d98e54207741bb7cb65f9a5585f6c6b872a4fe3c85572b83a7046ab3ab820fb1c41eee9ac12e34a5b6208
7
+ data.tar.gz: dc00db615e4784d8f335758bd96377242842f76596758d410267ee7e420ebf884a7714d4c0dd3dc9221087f8467551c33c426daa2b6c1bdec7cd5706d7fa237a
@@ -29,7 +29,8 @@ class LocalPostal::Address
29
29
  # @return [Array] The address lines.
30
30
  def lines
31
31
  address = format.apply(formatting_values)
32
- address.split("\n").reject {|line| line.strip.empty? } + [country.upcase]
32
+ country_name = Carmen::Country.coded(country_code).name.upcase
33
+ address.split("\n").reject {|line| line.strip.empty? } + [country_name]
33
34
  end
34
35
 
35
36
  # Sets the country and automatically assigns the correct format for that it
@@ -1,3 +1,3 @@
1
1
  module LocalPostal
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_postal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Haynes