intacctrb 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/intacctrb/contact.rb +2 -2
- data/lib/intacctrb/employee.rb +8 -8
- data/lib/intacctrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b405d92d79c9b5dee14663151b0c59cceab240418c23405329ca66f42fb10753
|
4
|
+
data.tar.gz: 9a408b47580eef6076499cc1c4d33b52f3e826dc849d031cae29e70c26ed1d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52007882371e6c439fd8a8256136d146706e97ca8c5cda667f286bad0e66e617b5d615c71901498d2f9859c010cdbb8ca8649d7debf8b4e58e67cffc0215ca2b
|
7
|
+
data.tar.gz: 5ae85eca72904fa79f206ec62f8f8aca4ad9f1c9266abca5275ae3339e24db79027b1021feeba67b99aaef18acd74eb91b81661635e8bde17da5c6b0b46a69b8
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/contact.rb
CHANGED
@@ -60,8 +60,8 @@ module IntacctRB
|
|
60
60
|
|
61
61
|
if successful?
|
62
62
|
data = OpenStruct.new({
|
63
|
-
id: response.at("//contact/RECORDNO").content,
|
64
|
-
name: response.at("//contact/CONTACTNAME").content
|
63
|
+
id: response.at("//contact/RECORDNO").try(:content),
|
64
|
+
name: response.at("//contact/CONTACTNAME").try(:content)
|
65
65
|
})
|
66
66
|
end
|
67
67
|
|
data/lib/intacctrb/employee.rb
CHANGED
@@ -32,10 +32,10 @@ module IntacctRB
|
|
32
32
|
|
33
33
|
if successful?
|
34
34
|
data = OpenStruct.new({
|
35
|
-
id: response.at("//EMPLOYEE/RECORDNO").content,
|
36
|
-
name: response.at("//EMPLOYEE/PERSONALINFO/CONTACTNAME").content,
|
37
|
-
contact_id: response.at("//EMPLOYEE/CONTACTKEY").content,
|
38
|
-
employee_id: response.at("//EMPLOYEE/EMPLOYEEID").content
|
35
|
+
id: response.at("//EMPLOYEE/RECORDNO").try(:content),
|
36
|
+
name: response.at("//EMPLOYEE/PERSONALINFO/CONTACTNAME").try(:content),
|
37
|
+
contact_id: response.at("//EMPLOYEE/CONTACTKEY").try(:content),
|
38
|
+
employee_id: response.at("//EMPLOYEE/EMPLOYEEID").try(:content)
|
39
39
|
})
|
40
40
|
end
|
41
41
|
|
@@ -62,10 +62,10 @@ module IntacctRB
|
|
62
62
|
|
63
63
|
if successful?
|
64
64
|
data = OpenStruct.new({
|
65
|
-
id: response.at("//EMPLOYEE/RECORDNO").content,
|
66
|
-
name: response.at("//EMPLOYEE/PERSONALINFO/CONTACTNAME").content,
|
67
|
-
contact_id: response.at("//EMPLOYEE/CONTACTKEY").content,
|
68
|
-
employee_id: response.at("//EMPLOYEE/EMPLOYEEID").content
|
65
|
+
id: response.at("//EMPLOYEE/RECORDNO").try(:content),
|
66
|
+
name: response.at("//EMPLOYEE/PERSONALINFO/CONTACTNAME").try(:content),
|
67
|
+
contact_id: response.at("//EMPLOYEE/CONTACTKEY").try(:content),
|
68
|
+
employee_id: response.at("//EMPLOYEE/EMPLOYEEID").try(:content)
|
69
69
|
})
|
70
70
|
end
|
71
71
|
|
data/lib/intacctrb/version.rb
CHANGED
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:
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Hale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|