intacct_ruby 1.6.3 → 1.7.0
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/lib/intacct_ruby/function.rb +23 -3
- 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: 9ca274310bbba02e3f4b67129889e3f4637f8e3b
|
4
|
+
data.tar.gz: 7ded8a9810638848329bb04915d737f6f651a5bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78356517fa12e7491017be5e2edc1fbadf997e412c3c10db258309ce4c607ad03b2cd70bb3e6795a300b88fc8b1ecc97f493b683ed21cee0d087d5c0921520a7
|
7
|
+
data.tar.gz: 287d025755f77bdff9e7e624158cecec13598dfe24acac78e6b7da66dadd286bfd9ad55aa561069cd5cb0f9cd185f33dc14f6bf8e224ce47a2fee860456fe6f1
|
@@ -52,10 +52,30 @@ module IntacctRuby
|
|
52
52
|
arguments_to_convert.each do |key, value|
|
53
53
|
argument_key = key.to_s.upcase
|
54
54
|
|
55
|
-
|
56
|
-
|
55
|
+
xml.tag!(argument_key) do
|
56
|
+
xml << argument_value_as_xml(value)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
xml.target!
|
61
|
+
end
|
62
|
+
|
63
|
+
def argument_value_as_xml(value)
|
64
|
+
case value
|
65
|
+
when Hash
|
66
|
+
argument_xml(value) # recursive case
|
67
|
+
when Array
|
68
|
+
argument_value_list_xml(value) # recursive case
|
69
|
+
else
|
70
|
+
value.to_s # end case
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def argument_value_list_xml(array_of_hashes)
|
75
|
+
xml = Builder::XmlMarkup.new
|
57
76
|
|
58
|
-
|
77
|
+
array_of_hashes.each do |argument_hash|
|
78
|
+
xml << argument_xml(argument_hash)
|
59
79
|
end
|
60
80
|
|
61
81
|
xml.target!
|
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.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Zornow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|