intacctrb 0.9.4 → 0.9.6

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: ad999b30a2be475fd79922ae8bcadf92d000ef9f5cac7faeda43a9dfa4a02f5f
4
+ data.tar.gz: 6135bb824bb01c3b99f525265789eaa7740860ee6a0645c1554287a2c35ef81c
5
5
  SHA512:
6
- metadata.gz: c9d8af949e4133e1a6c298fe34217a6bf1eac163a1851c73417b09715f7276fe710238510281b4f7924d7db5aedf70a642940d7f15510ddfe532f5ad5373c02f
7
- data.tar.gz: facde3642d6d0e2ae4e212fd006f419bb40c71f8c7fdd90261e164776390e472c930326a9b0baa8d2c82a93c1a5d380f05ff5d6429054c513502de832f0f75b7
6
+ metadata.gz: 13592ba5969f410f705572d22e84d0fa248b79631636c2a11bd03c3e193c922598b84d8a591ab134bde57b8ba7c5f3d79fbe3e378c745ada9bab374d38d64bb9
7
+ data.tar.gz: 0e0f9b6d26844a6765274de37871e05ecf3a1f95995b45f801e28a205872cb654e148a03bd9a34741de0a5179cc23a5c1b11cd926d76ca8cc4a899ff8108d24e
@@ -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?
@@ -92,7 +92,7 @@ module IntacctRB
92
92
 
93
93
  response = send_xml('get_list') do |xml|
94
94
  xml.function(controlid: "f4") {
95
- xml.get_list(object: "employee", maxitems: "10", showprivate:"false") {
95
+ xml.get_list(object: "employee", maxitems: "2000", showprivate:"false") {
96
96
  # xml.fields {
97
97
  # fields.each do |field|
98
98
  # xml.field field.to_s
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.6"
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -202,7 +202,7 @@ files:
202
202
  homepage: https://github.com/apexdp/intacctrb
203
203
  licenses: []
204
204
  metadata: {}
205
- post_install_message:
205
+ post_install_message:
206
206
  rdoc_options: []
207
207
  require_paths:
208
208
  - lib
@@ -217,9 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubyforge_project:
221
- rubygems_version: 2.7.9
222
- signing_key:
220
+ rubygems_version: 3.1.6
221
+ signing_key:
223
222
  specification_version: 4
224
223
  summary: Ruby Intacct API Client
225
224
  test_files: