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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/intacct_ruby/function.rb +8 -2
- data/lib/intacct_ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9401cfe3ebceac0d987f583317b7b04768d335f6
|
|
4
|
+
data.tar.gz: 73f9317a4d6a0e33a4ab2fa5a927d41ca93f2c43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/intacct_ruby/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|