intacctrb 0.4.7 → 0.4.8

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: 7ef5155cd2bd13fe128803e21f938e9e4137f215
4
- data.tar.gz: 842c50af8d19e306362a25e27d720edeeece7753
3
+ metadata.gz: 2017665225305238de205e6786f788420b508b80
4
+ data.tar.gz: 4c7fbe3dbc3598d4191a414c0a889076a3cca28b
5
5
  SHA512:
6
- metadata.gz: e5ea8dbae460a74b576a95f3a90804643311023d2e6d2ca4ad4f063bcf9a6893d176e7f900f16d8e8e7b85418397c646e3f103ff3748b7944db5e6f46750de79
7
- data.tar.gz: 730c66086be73706326de4b617b33dc32401013b2a5925a5df4d812a70508c16142f432752c15a51269fa20a762a7e4a1c63bba7c40ccbb72e97ff69bf69097d
6
+ metadata.gz: 53e89d15fb06c62a5c39bdf27c12e29e46339309839243a7bf027b6900033413376368d3de9699afa222a8d7290026b76c74d19d1c9c23356da224d23a5de2bc
7
+ data.tar.gz: 6252d53d199677b77f98608bde1e596ef8d794e2ae450ec2a4df13e757d059744523e2724441779192200acdf8c21476d2039290fcd200a93763bffca8b6f7ca
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.4.7)
4
+ intacctrb (0.4.8)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -117,25 +117,27 @@ module IntacctRB
117
117
  end
118
118
 
119
119
  def contact_xml xml, contact_object
120
- xml.contact {
121
- xml.contactname contact_object.contact_name
122
- xml.printas contact_object.print_as
123
- xml.companyname contact_object.company_name
124
- xml.firstname contact_object.first_name
125
- xml.lastname contact_object.last_name
126
- xml.phone1 contact_object.business_phone
127
- xml.cellphone contact_object.cell_phone
128
- xml.email1 contact_object.email
129
- if contact_object.mailing_address.present?
130
- xml.mailaddress {
131
- xml.address1 contact_object.mailing_address.address_1
132
- xml.address2 contact_object.mailing_address.address_2
133
- xml.city contact_object.mailing_address.city
134
- xml.state contact_object.mailing_address.state
135
- xml.zip contact_object.mailing_address.zip
136
- }
137
- end
138
- }
120
+ if contact_object.present?
121
+ xml.contact {
122
+ xml.contactname contact_object.contact_name
123
+ xml.printas contact_object.print_as
124
+ xml.companyname contact_object.company_name
125
+ xml.firstname contact_object.first_name
126
+ xml.lastname contact_object.last_name
127
+ xml.phone1 contact_object.business_phone
128
+ xml.cellphone contact_object.cell_phone
129
+ xml.email1 contact_object.email
130
+ if contact_object.mailing_address.present?
131
+ xml.mailaddress {
132
+ xml.address1 contact_object.mailing_address.address_1
133
+ xml.address2 contact_object.mailing_address.address_2
134
+ xml.city contact_object.mailing_address.city
135
+ xml.state contact_object.mailing_address.state
136
+ xml.zip contact_object.mailing_address.zip
137
+ }
138
+ end
139
+ }
140
+ end
139
141
  end
140
142
  end
141
143
  end
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacctrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri