intacctrb 0.9.4 → 0.9.5
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 +9 -3
- data/lib/intacctrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e591adca1cac0a9a3e2453c4d810f2b2c03095333be959b00f834ab221c7fd8a
|
4
|
+
data.tar.gz: 5c66983fbbae2aea6e13daba36e5a85024cae72a58909bce412f9fc8488f480c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b03bd732fe496517a78f5a78eb700f9675613fb02960563d1e8ce462e51f3291f45578a2cded8cb5d4314fc42861517a90952c691a22e06e251cb5c6b3315b9
|
7
|
+
data.tar.gz: fd78a3f53094c9a0310957164ccc7572972ab53f1189b1175d4c9ef2dfd2f130ef1025744d8900b43350a9f93ffaa803bf59fedb9d86084b2765ed062ab3f8be
|
data/lib/intacctrb/base.rb
CHANGED
@@ -66,9 +66,15 @@ module IntacctRB
|
|
66
66
|
url = "https://www.intacct.com/ia/xml/xmlgw.phtml"
|
67
67
|
uri = URI(url)
|
68
68
|
retry_count += 1
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
|
70
|
+
post_request = Net::HTTP::Post.new(uri.request_uri)
|
71
|
+
post_request.set_form_data('xmlrequest' => xml)
|
72
|
+
|
73
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
74
|
+
http.use_ssl = true
|
75
|
+
http.read_timeout = 300
|
76
|
+
res = http.request(post_request)
|
77
|
+
|
72
78
|
@response = Nokogiri::XML(res.body)
|
73
79
|
IntacctRB.logger.debug res.body
|
74
80
|
if successful?
|
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.5
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|