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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72b37f9b4554f88fa7478e36d3fc38acbc30cf1ce68369c6a108b917f1844822
4
- data.tar.gz: f13dcaedfc52b5481abc779e3d37442d3051af3afeb1df6d1692077f2200a658
3
+ metadata.gz: 25f611a980b22b7214b5a76a9ca1d0f8a9c0f1c6b4d485b3525b26b4985f4035
4
+ data.tar.gz: 0fcd8251ad8f2483ec63d403edb1afb6a72b848b864898518f8864de3389c1c2
5
5
  SHA512:
6
- metadata.gz: 229ef06d0c3af5cb4d4265e72fdc93f852ef0786c2263db5ea804053ad4b3ae2cda934c0eeb9f91239865679b9cafa072bb4ec7231a83d6d14f702442e543f21
7
- data.tar.gz: bc084fcc284a36269bf847b321ad4889d43ccd9275db62f4195d1431a19bd3d2d7e665573b2db986d9bfce17b0ea0cb99ff317f46cbb5a591b3b197e7f5dfc56
6
+ metadata.gz: 5de26eb17bc292f2dadd4d5e4b40eca204b3a0fc05eb7d8105c56d1437e43631a2ba04a20e2e8eb1d72721a2f899e6e1d1956a83ffaf4be801674f8a88253408
7
+ data.tar.gz: 909abda7efcf9de11a1605b35a199b4796e09531d051fd562aa7efb990c9f60845dbbd1671b1fc58384b754683770507aee82df5752dfdd4e47f95fdc6785935
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.7.2)
4
+ intacctrb (0.8)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -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, object: response, data: data})
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.error_code = error.at("//errorno").content
110
- data.error_description = error.at("//description2").content
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
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.7.2"
2
+ VERSION = "0.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.7.2
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-04-04 00:00:00.000000000 Z
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.3
221
+ rubygems_version: 2.7.6
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Ruby Intacct API Client