effective_addresses 1.0.1 → 1.0.2
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: 7ee055f205c393e2696760339044b2a22fb528de
|
4
|
+
data.tar.gz: d54ee12d55465e5e744bcc11809211b86ad2bcc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1db155e4237759d00a1b2eba93f8a994e1f8fcdfa5984730c91237e765995e6648f0385092985bd9ea971232f4020dea6957acf2e26d6bbcdad125c5aca4346
|
7
|
+
data.tar.gz: 205466113aace3c3ffbe2cec7d5665f6f82cc70a6cf400fa9d7b6f4e6b2d60dbe552b53ee8b1edde053b513637db0b4d935dd5cfb28b17532f9bd633ab61cc6a
|
@@ -123,17 +123,17 @@ module Effective
|
|
123
123
|
|
124
124
|
def to_s
|
125
125
|
output = ''
|
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,
|
130
|
-
output +=
|
131
|
-
output +=
|
126
|
+
output += "#{full_name.upcase}\n" if full_name.present?
|
127
|
+
output += "#{address1.upcase}\n" if address1.present?
|
128
|
+
output += "#{address2.upcase}\n" if address2.present?
|
129
|
+
output += [city.try(:upcase).presence, state_code.try(:upcase).presence, ' ' + postal_code.presence].compact.join(' ')
|
130
|
+
output += "\n"
|
131
|
+
output += country.try(:upcase).to_s
|
132
132
|
output
|
133
133
|
end
|
134
134
|
|
135
135
|
def to_html
|
136
|
-
to_s.gsub(/\n/, '<br>').html_safe
|
136
|
+
to_s.gsub(/\n/, '<br>').gsub(' ', ' ').html_safe
|
137
137
|
end
|
138
138
|
end
|
139
139
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
- if address.full_name.present?
|
2
|
-
= address.full_name
|
2
|
+
= address.full_name.upcase
|
3
3
|
%br
|
4
|
-
= address.address1
|
4
|
+
= address.address1.upcase
|
5
5
|
%br
|
6
6
|
- if address.address2.present?
|
7
|
-
= address.address2
|
7
|
+
= address.address2.upcase
|
8
8
|
%br
|
9
|
-
= [address.city.presence, address.
|
9
|
+
= [address.city.try(:upcase).presence, address.state_code.try(:upcase).presence, ' ' + address.postal_code.presence].compact.join(' ').html_safe
|
10
10
|
%br
|
11
|
-
=
|
11
|
+
= address.country.try(:upcase).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.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: 2014-12-
|
11
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|