intacctrb 0.7.2 → 0.8
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/base.rb +8 -3
- data/lib/intacctrb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25f611a980b22b7214b5a76a9ca1d0f8a9c0f1c6b4d485b3525b26b4985f4035
|
4
|
+
data.tar.gz: 0fcd8251ad8f2483ec63d403edb1afb6a72b848b864898518f8864de3389c1c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5de26eb17bc292f2dadd4d5e4b40eca204b3a0fc05eb7d8105c56d1437e43631a2ba04a20e2e8eb1d72721a2f899e6e1d1956a83ffaf4be801674f8a88253408
|
7
|
+
data.tar.gz: 909abda7efcf9de11a1605b35a199b4796e09531d051fd562aa7efb990c9f60845dbbd1671b1fc58384b754683770507aee82df5752dfdd4e47f95fdc6785935
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/base.rb
CHANGED
@@ -102,12 +102,17 @@ module IntacctRB
|
|
102
102
|
|
103
103
|
def return_result(response, data = nil)
|
104
104
|
if successful?
|
105
|
-
data = OpenStruct.new({result: true,
|
105
|
+
data = OpenStruct.new({result: true, intacct_id: object.intacct_id,
|
106
|
+
object: response, data: data})
|
106
107
|
else
|
107
108
|
data = OpenStruct.new({result: false})
|
109
|
+
data.errors = {}
|
108
110
|
response.xpath("//result/errormessage/error").each do |error|
|
109
|
-
data.
|
110
|
-
|
111
|
+
data.errors << {
|
112
|
+
code: error.at("//errorno").content,
|
113
|
+
title: error.at("//description").content,
|
114
|
+
description: error.at("//description2").content
|
115
|
+
}
|
111
116
|
end
|
112
117
|
end
|
113
118
|
data
|
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: 0.
|
4
|
+
version: '0.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: 2018-
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
220
|
rubyforge_project:
|
221
|
-
rubygems_version: 2.7.
|
221
|
+
rubygems_version: 2.7.6
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Ruby Intacct API Client
|