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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d4e19d9f812d2398ecefc363dc47ec23f47c73032b8b1cefa0a6c1315eef6b0
4
- data.tar.gz: 4633dc926482dc271c874c5c49605da4654924368a008a3a47f0ba80bd0d40cf
3
+ metadata.gz: b405d92d79c9b5dee14663151b0c59cceab240418c23405329ca66f42fb10753
4
+ data.tar.gz: 9a408b47580eef6076499cc1c4d33b52f3e826dc849d031cae29e70c26ed1d25
5
5
  SHA512:
6
- metadata.gz: 0eccba7d30ebcbbfd4952ff4d92f7ba5fbd10a23fc4bd3a2612ecb0431a47a3c81acde2ca8d942ce301f06db7777d33bf64b783932bbbf5ec46dc0c3f2c09262
7
- data.tar.gz: d8bd2f6d5c721b810df42c2429a9e65389c8b68af23e1397ab8daceadb6e69cccacd4bbcef97ad6a955b794adfa565441ea6cb601d275e44bf1d53a2258148e9
6
+ metadata.gz: 52007882371e6c439fd8a8256136d146706e97ca8c5cda667f286bad0e66e617b5d615c71901498d2f9859c010cdbb8ca8649d7debf8b4e58e67cffc0215ca2b
7
+ data.tar.gz: 5ae85eca72904fa79f206ec62f8f8aca4ad9f1c9266abca5275ae3339e24db79027b1021feeba67b99aaef18acd74eb91b81661635e8bde17da5c6b0b46a69b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.7)
4
+ intacctrb (0.7.1)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.7"
2
+ VERSION = "0.7.1"
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.7'
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 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri