intacctrb 0.9.0 → 0.9.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
  SHA1:
3
- metadata.gz: 6498b6d259ccbda28488b170575d0177d6a8f4a0
4
- data.tar.gz: fcc91ed56cb41b028dfe7b41b87e2d4757bc0f82
3
+ metadata.gz: 8679145286457230ac5bdf3e54ab37966419ddb7
4
+ data.tar.gz: dcf1d5ccc69079709170aadd6fb18edc4739da33
5
5
  SHA512:
6
- metadata.gz: 186ed00fa3f3d97347559181799bba79835d0bae4820fb43c42e894d7129537ab453c9d0de539bc3c3eaff77efdd15ba8f2ea25f213622af446f7870012dbe38
7
- data.tar.gz: fe18ee99d3e7a53b4fc428444492e5eb00921fba150f5dae97da858e2099d83c5b3ed4cf43513e1dfe612b080c2463cdd8c40fc3a1c1cab80082a65a7ff261c4
6
+ metadata.gz: 2e1c770d19e4be235ffbd9eaede6c8394a06a7198403041118cc09840277d03f7537663aebe6bb291110618e51ab9c2e6321625dc2b0e266de29b5a5814d1fae
7
+ data.tar.gz: 92b0be0d7130ef14f5953682cdc40e5c536ba71e6fe7425ee3829fbdc14f648f2bc54af6f73c7f3d23ea7f4d8780dca380c1ad8de49fe166ea3463cb4e89779a
@@ -66,7 +66,7 @@ module IntacctRB
66
66
  url = "https://www.intacct.com/ia/xml/xmlgw.phtml"
67
67
  uri = URI(url)
68
68
  retry_count += 1
69
- res = Net::HTTP.post_form(uri, 'xmlrequest' => xml, read_timeout: 60)
69
+ res = Net::HTTP.post_form(uri, 'xmlrequest' => xml, read_timeout: 120)
70
70
  @response = Nokogiri::XML(res.body)
71
71
  IntacctRB.logger.debug res.body
72
72
  if successful?
@@ -88,13 +88,7 @@ module IntacctRB
88
88
  retry
89
89
  else
90
90
  IntacctRB.logger.error "Net::ReadTimeout in IntacctRB; retries exhausted"
91
- @response = {
92
- result: {
93
- errormessage: {
94
- error: [{ description: e }]
95
- }
96
- }
97
- }
91
+ @response = Nokogiri::XML("<result><errormessage><error><errorno></errorno><description>#{e}</description><description2></description2></error></errormessage></result>")
98
92
  end
99
93
  end
100
94
  end
@@ -115,7 +109,7 @@ module IntacctRB
115
109
  data = OpenStruct.new({result: false, intacct_id: object.intacct_id})
116
110
  data.errors = []
117
111
  response.xpath("//result/errormessage/error").each do |error|
118
- data.errors << {
112
+ errors << {
119
113
  code: error.at("//errorno").content,
120
114
  title: error.at("//description").content,
121
115
  description: error.at("//description2").content
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.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.9.0
4
+ version: 0.9.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: 2020-04-09 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -165,7 +165,6 @@ files:
165
165
  - LICENSE.txt
166
166
  - README.md
167
167
  - Rakefile
168
- - intacctrb-0.8.19.gem
169
168
  - intacctrb.gemspec
170
169
  - lib/.DS_Store
171
170
  - lib/intacctrb.rb
Binary file