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 +4 -4
- data/lib/intacctrb/base.rb +3 -9
- data/lib/intacctrb/version.rb +1 -1
- metadata +2 -3
- data/intacctrb-0.8.19.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8679145286457230ac5bdf3e54ab37966419ddb7
|
4
|
+
data.tar.gz: dcf1d5ccc69079709170aadd6fb18edc4739da33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1c770d19e4be235ffbd9eaede6c8394a06a7198403041118cc09840277d03f7537663aebe6bb291110618e51ab9c2e6321625dc2b0e266de29b5a5814d1fae
|
7
|
+
data.tar.gz: 92b0be0d7130ef14f5953682cdc40e5c536ba71e6fe7425ee3829fbdc14f648f2bc54af6f73c7f3d23ea7f4d8780dca380c1ad8de49fe166ea3463cb4e89779a
|
data/lib/intacctrb/base.rb
CHANGED
@@ -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:
|
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
|
-
|
112
|
+
errors << {
|
119
113
|
code: error.at("//errorno").content,
|
120
114
|
title: error.at("//description").content,
|
121
115
|
description: error.at("//description2").content
|
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.9.
|
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-
|
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
|
data/intacctrb-0.8.19.gem
DELETED
Binary file
|