email_vision 0.1.3 → 0.1.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/email_vision.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{email_vision}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
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
- {:entry => {:key => k, :value => v}}
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser