email_vision 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/email_vision.gemspec +1 -1
- data/lib/email_vision.rb +2 -13
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/email_vision.gemspec
CHANGED
data/lib/email_vision.rb
CHANGED
@@ -108,11 +108,10 @@ class EmailVision
|
|
108
108
|
existing_email = attributes.delete(:email_was) || attributes[:email]
|
109
109
|
entries = attributes.map do |k,v|
|
110
110
|
v = v.strftime('%Y-%m-%d %H:%M:%S') if v.is_a?(Time)
|
111
|
-
{:
|
111
|
+
{:key => k, :value => v}
|
112
112
|
end
|
113
|
-
entries = flatten_array_to_soap_xml(entries)
|
114
113
|
|
115
|
-
execute(method, :member => {:email => existing_email, :dynContent => entries})
|
114
|
+
execute(method, :member => {:email => existing_email, :dynContent => {:entry => entries}})
|
116
115
|
end
|
117
116
|
|
118
117
|
def execute(method, options={})
|
@@ -126,14 +125,4 @@ class EmailVision
|
|
126
125
|
hash
|
127
126
|
end
|
128
127
|
end
|
129
|
-
|
130
|
-
def flatten_array_to_soap_xml(array)
|
131
|
-
return array unless array
|
132
|
-
array = array.map{|v| v.to_soap_xml }.join()
|
133
|
-
# hack the string so it does not get escaped
|
134
|
-
def array.to_soap_value
|
135
|
-
self
|
136
|
-
end
|
137
|
-
array
|
138
|
-
end
|
139
128
|
end
|