mailbuild 1.1.1 → 1.1.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.
- data/lib/mailbuild/mailbuild.rb +7 -4
- metadata +2 -2
data/lib/mailbuild/mailbuild.rb
CHANGED
@@ -159,11 +159,14 @@ class Mailbuild
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def self.parse_custom_fields(subscriber)
|
162
|
-
if subscriber.respond_to?(:customFields) && subscriber.customFields.respond_to?(:subscriberCustomField)
|
163
|
-
|
164
|
-
|
165
|
-
|
162
|
+
if subscriber.respond_to?(:customFields) && subscriber.customFields.respond_to?(:subscriberCustomField)
|
163
|
+
debugger
|
164
|
+
test_val = (subscriber.customFields.subscriberCustomField.is_a?(Array)) ? subscriber.customFields.subscriberCustomField.first : subscriber.customFields.subscriberCustomField
|
165
|
+
unless test_val.value.is_a?(SOAP::Mapping::Object)
|
166
|
+
return subscriber.customFields.subscriberCustomField.to_a
|
167
|
+
end
|
166
168
|
end
|
169
|
+
return nil
|
167
170
|
end
|
168
171
|
|
169
172
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Yule
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-10 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|