mad_mimi_two 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mad_mimi_two/mad_mimi_mailer.rb +8 -5
- metadata +3 -3
@@ -57,11 +57,14 @@ module MadMimiTwo
|
|
57
57
|
# get a hash of promotion names on mad mimi. Not certain why mad mimi returns mailing details in this call but we throw it away.
|
58
58
|
def get_promotions
|
59
59
|
xml_list=get_promotions_xml
|
60
|
-
res={}
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
60
|
+
res={'select promotion'=>'select promotion'}
|
61
|
+
# puts "xml_list is #{xml_list}"
|
62
|
+
if !xml_list.nil? && xml_list != 'problem retrieving status: nil' then
|
63
|
+
reader = Nokogiri::XML::Reader(xml_list)
|
64
|
+
reader.each do |node|
|
65
|
+
res=res.merge({ node.attribute('name') => node.attribute('name') }) if node.name=='promotion' # eventually will want hash
|
66
|
+
end
|
67
|
+
end
|
65
68
|
res
|
66
69
|
end
|
67
70
|
def get_lists
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mad_mimi_two
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- scott sproule
|