effective_addresses 1.2.1 → 1.2.2

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: 17e378e4865984f94eda8717f7b340f1252be831
4
- data.tar.gz: 3c4a62c3a27ad8cd290eeaabbaaba1bce7ca2481
3
+ metadata.gz: d3bdde4dd11218e6890613c288a17c1ef6680122
4
+ data.tar.gz: 3f2659be249f58ce10829cbc395adb4a16aee988
5
5
  SHA512:
6
- metadata.gz: 0eca45f5717436d5e38b270442d7e5b4756a13cc8d4d66ad7df7af8daa46bc24f0b40d19a5a11662c31610aa4fdf9b0c241bceaa686ef66c16c00ac25a6951f8
7
- data.tar.gz: e3d76cf9ea4fe20908b413f2e5d4c0fb6b57d69d1b26b27b8125a39e53e5bbcea1974adc69fea09a7e33e045ae8da469aebe381b70d86f8f7bfd91b7d175ecd0
6
+ metadata.gz: 62c2795ce6a6e15779a9f01098c326b3e36f88439a50e46303284629f1bf6d0c3282f25db1436465388b0bba37ece00c765d87282d50d84f17b8ee93c834bd97
7
+ data.tar.gz: 9eb210a1bbda86a012cf3a9ec26bc12975c3be1ca5ed8a162b1052637a8ef6028f054cfefe336c31560f57f2c3db0a62e41a879a55742ce1600ec3c9e0867e46
@@ -126,7 +126,7 @@ module Effective
126
126
  output += "#{full_name}\n" if full_name.present?
127
127
  output += "#{address1}\n" if address1.present?
128
128
  output += "#{address2}\n" if address2.present?
129
- output += [city.presence, state_code.presence, ' ' + postal_code.presence].compact.join(' ')
129
+ output += [city.presence, state_code.presence, " #{postal_code.presence}"].compact.join(' ')
130
130
  output += "\n"
131
131
  output += country.to_s
132
132
  output
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.2'.freeze
3
3
  end
@@ -48,4 +48,10 @@ describe Effective::Address do
48
48
  address.state.should eq 'New York'
49
49
  end
50
50
 
51
+ describe '#to_s' do
52
+ it 'works without a postal code' do
53
+ address.postal_code = nil
54
+ expect(address.to_s).to be_a(String)
55
+ end
56
+ end
51
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails