intacct_ruby 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e89fb4f74bf4278b738c56efa3f508ccf2c4f23
4
- data.tar.gz: 3ad8978c6d2c94a0098715e3259ebb075d3e1767
3
+ metadata.gz: 9401cfe3ebceac0d987f583317b7b04768d335f6
4
+ data.tar.gz: 73f9317a4d6a0e33a4ab2fa5a927d41ca93f2c43
5
5
  SHA512:
6
- metadata.gz: 8da0580591b5ba7e8e77c511d5fbde1488f0d6ccd02e9f87631592f7007d076a532dbd2b3c200413abf72e96aaba1ac4c52b6a2d1452844439fe4e707e801481
7
- data.tar.gz: 64e451c9687c06a0e9d4eed885e18a62a3176ac23dc5e73fbcecdc1c612845a399edd34510fa1b22f3f19836b37db66fbeade311c21bb5f9781b0733210e9a94
6
+ metadata.gz: d4fb23f7ea378c6bab86b1779a1bbfb626e71e6fa9a17f18bb57d7adcaf4e3960c56bc56eae2acb84b86f00268ebd30960a3d676876f42306da92d00137365e5
7
+ data.tar.gz: ef4dd4440e388f809fa31bf455197e5449ec30f99af8dd6f2ac7607799ab3840aeb9ed4111d0c721bdd503a3269a2b74dafc412e3514f2b3747541bff1cf9f52
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.8.2 (March 20, 2018)
2
+
3
+ * Fixup object_type nil bug for read requests ([@bezoar17](https://github.com/bezoar17) in [#16](https://github.com/privateprep/intacct-ruby/pull/16))
4
+
1
5
  # 1.8.1 (March 19, 2018)
2
6
 
3
7
  * Escape XML strings for requests as default ([@bezoar17](https://github.com/bezoar17) in [#17](https://github.com/privateprep/intacct-ruby/pull/17))
@@ -15,6 +15,8 @@ module IntacctRuby
15
15
  delete
16
16
  ).freeze
17
17
 
18
+ CU_TYPES = %w(create update).freeze
19
+
18
20
  def initialize(function_type, object_type, arguments = {})
19
21
  @function_type = function_type.to_s
20
22
  @object_type = object_type.to_s
@@ -28,7 +30,11 @@ module IntacctRuby
28
30
 
29
31
  xml.function controlid: controlid do
30
32
  xml.tag!(@function_type) do
31
- xml.tag!(@object_type) do
33
+ if CU_TYPES.include?(@function_type)
34
+ xml.tag!(@object_type) do
35
+ xml << argument_xml(@arguments)
36
+ end
37
+ else
32
38
  xml << argument_xml(@arguments)
33
39
  end
34
40
  end
@@ -90,4 +96,4 @@ module IntacctRuby
90
96
  end
91
97
  end
92
98
  end
93
- end
99
+ end
@@ -1,3 +1,3 @@
1
1
  module IntacctRuby
2
- VERSION = '1.8.1'.freeze
2
+ VERSION = '1.8.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacct_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Zornow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-19 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler