teamforge 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teamforge/ctfsoap.rb +10 -6
- data/lib/teamforge/version.rb +1 -1
- metadata +3 -3
data/lib/teamforge/ctfsoap.rb
CHANGED
@@ -63,11 +63,7 @@ module TeamForge
|
|
63
63
|
message = Hash[req_msg.each_pair.to_a]
|
64
64
|
|
65
65
|
message.each do |key, value|
|
66
|
-
|
67
|
-
message[key] = Hash[value.each_pair.to_a]
|
68
|
-
else
|
69
|
-
message[key] = value #rep_blank_with_nil(value)
|
70
|
-
end
|
66
|
+
message[key] = hash_recursive(value)
|
71
67
|
end
|
72
68
|
end
|
73
69
|
|
@@ -193,7 +189,15 @@ module TeamForge
|
|
193
189
|
return value
|
194
190
|
end #def
|
195
191
|
|
196
|
-
|
192
|
+
def self.hash_recursive(msg)
|
193
|
+
return msg unless msg.kind_of? Struct
|
194
|
+
|
195
|
+
struct_param = Hash[msg.each_pair.to_a]
|
196
|
+
struct_param.each do |k, v|
|
197
|
+
struct_param[k] = hash_recursive(v)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
197
201
|
|
198
202
|
#end
|
199
203
|
|
data/lib/teamforge/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-04-16 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153065100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153065100
|
25
25
|
description: A Ruby SOAP wrapper to communicate with TeamForge WebServices
|
26
26
|
email: pwolf@collab.net
|
27
27
|
executables: []
|