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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dae230fa89a525eb227a9ff0ba0d1f44a119f1bc8cd9f41a8ded69ebd4e38ee9
4
- data.tar.gz: b4a4935e7ba04f635e82088dadf86b688ada33777131d79c893c9236371589a2
3
+ metadata.gz: e591adca1cac0a9a3e2453c4d810f2b2c03095333be959b00f834ab221c7fd8a
4
+ data.tar.gz: 5c66983fbbae2aea6e13daba36e5a85024cae72a58909bce412f9fc8488f480c
5
5
  SHA512:
6
- metadata.gz: c9d8af949e4133e1a6c298fe34217a6bf1eac163a1851c73417b09715f7276fe710238510281b4f7924d7db5aedf70a642940d7f15510ddfe532f5ad5373c02f
7
- data.tar.gz: facde3642d6d0e2ae4e212fd006f419bb40c71f8c7fdd90261e164776390e472c930326a9b0baa8d2c82a93c1a5d380f05ff5d6429054c513502de832f0f75b7
6
+ metadata.gz: 6b03bd732fe496517a78f5a78eb700f9675613fb02960563d1e8ce462e51f3291f45578a2cded8cb5d4314fc42861517a90952c691a22e06e251cb5c6b3315b9
7
+ data.tar.gz: fd78a3f53094c9a0310957164ccc7572972ab53f1189b1175d4c9ef2dfd2f130ef1025744d8900b43350a9f93ffaa803bf59fedb9d86084b2765ed062ab3f8be
@@ -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
- conn = Net::HTTP.new(uri)
70
- conn.read_timeout = 300
71
- res = conn.post_form(uri, 'xmlrequest' => xml)
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?
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
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.4
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-21 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri