effective_addresses 1.0.2 → 1.0.3

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: 7ee055f205c393e2696760339044b2a22fb528de
4
- data.tar.gz: d54ee12d55465e5e744bcc11809211b86ad2bcc8
3
+ metadata.gz: 50028100c4073747ae75621caf1d3c9444561463
4
+ data.tar.gz: 4e114a6eb11c77a11a88ff17ae44e722c475bbcc
5
5
  SHA512:
6
- metadata.gz: c1db155e4237759d00a1b2eba93f8a994e1f8fcdfa5984730c91237e765995e6648f0385092985bd9ea971232f4020dea6957acf2e26d6bbcdad125c5aca4346
7
- data.tar.gz: 205466113aace3c3ffbe2cec7d5665f6f82cc70a6cf400fa9d7b6f4e6b2d60dbe552b53ee8b1edde053b513637db0b4d935dd5cfb28b17532f9bd633ab61cc6a
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.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(' ')
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.try(:upcase).to_s
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.upcase
2
+ = address.full_name
3
3
  %br
4
- = address.address1.upcase
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.upcase
12
+ = address.address2
8
13
  %br
9
- = [address.city.try(:upcase).presence, address.state_code.try(:upcase).presence, ' ' + address.postal_code.presence].compact.join(' ').html_safe
14
+ = [address.city.presence, address.state_code.presence, ' ' + address.postal_code.presence].compact.join(' ').html_safe
10
15
  %br
11
- = address.country.try(:upcase).to_s
16
+ = address.country.to_s
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  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.0.2
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-12 00:00:00.000000000 Z
11
+ date: 2014-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails