effective_addresses 1.0.2 → 1.0.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50028100c4073747ae75621caf1d3c9444561463
|
4
|
+
data.tar.gz: 4e114a6eb11c77a11a88ff17ae44e722c475bbcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd87802a3482b0d75106e9bec1ed20f4545cd9a1c6ad04a76885b03f4d75b66e23c12f8a6667cabbd14a0638665adfd8b9ba034a7e8900f369de7e36921a1c5
|
7
|
+
data.tar.gz: 12a4561f24bd980cca8b9085f9346434c9d1d6aa8deb5f04b877ff0c71fa6b613a22f400390a597a7a3af2916ae2498d17f3ba90eaa72a415071b24794e2c801
|
@@ -123,12 +123,12 @@ module Effective
|
|
123
123
|
|
124
124
|
def to_s
|
125
125
|
output = ''
|
126
|
-
output += "#{full_name
|
127
|
-
output += "#{address1
|
128
|
-
output += "#{address2
|
129
|
-
output += [city.
|
126
|
+
output += "#{full_name}\n" if full_name.present?
|
127
|
+
output += "#{address1}\n" if address1.present?
|
128
|
+
output += "#{address2}\n" if address2.present?
|
129
|
+
output += [city.presence, state_code.presence, ' ' + postal_code.presence].compact.join(' ')
|
130
130
|
output += "\n"
|
131
|
-
output += country.
|
131
|
+
output += country.to_s
|
132
132
|
output
|
133
133
|
end
|
134
134
|
|
@@ -1,11 +1,16 @@
|
|
1
1
|
- if address.full_name.present?
|
2
|
-
= address.full_name
|
2
|
+
= address.full_name
|
3
3
|
%br
|
4
|
-
|
4
|
+
|
5
|
+
- if defined?(email) && email.present?
|
6
|
+
= mail_to(email)
|
7
|
+
%br
|
8
|
+
|
9
|
+
= address.address1
|
5
10
|
%br
|
6
11
|
- if address.address2.present?
|
7
|
-
= address.address2
|
12
|
+
= address.address2
|
8
13
|
%br
|
9
|
-
= [address.city.
|
14
|
+
= [address.city.presence, address.state_code.presence, ' ' + address.postal_code.presence].compact.join(' ').html_safe
|
10
15
|
%br
|
11
|
-
= address.country.
|
16
|
+
= address.country.to_s
|
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.0.
|
4
|
+
version: 1.0.3
|
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: 2014-12-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|