madmimi 1.0.10 → 1.0.11
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 +1 -1
- data/lib/madmimi.rb +8 -0
- data/madmimi.gemspec +2 -2
- data/test/test_madmimi.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.11
|
data/lib/madmimi.rb
CHANGED
@@ -128,6 +128,14 @@ class MadMimi
|
|
128
128
|
do_request(MAILER_PATH, :post, options, true)
|
129
129
|
end
|
130
130
|
end
|
131
|
+
|
132
|
+
# Not the most elegant, but it works for now. :)
|
133
|
+
def add_users_to_list(list_name, arr)
|
134
|
+
arr.each do |a|
|
135
|
+
a[:add_list] = list_name
|
136
|
+
add_user(a)
|
137
|
+
end
|
138
|
+
end
|
131
139
|
|
132
140
|
def send_html(opt, html)
|
133
141
|
options = opt.dup
|
data/madmimi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{madmimi}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nicholas Young", "Marc Heiligers"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-17}
|
13
13
|
s.description = %q{Send emails, track statistics, and manage your subscriber base with ease.}
|
14
14
|
s.email = %q{nicholas@madmimi.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/test_madmimi.rb
CHANGED
@@ -9,7 +9,7 @@ class TestMadmimi < Test::Unit::TestCase
|
|
9
9
|
should "retrieve a hash of promotions" do
|
10
10
|
stub_get('/promotions.xml', 'promotions.xml')
|
11
11
|
response = @mimi.promotions
|
12
|
-
flunk unless response.kind_of?(Hash) || !response.empty?
|
12
|
+
flunk "I couldn't find any promotions." unless response.kind_of?(Hash) || !response.empty?
|
13
13
|
end
|
14
14
|
|
15
15
|
should "retrieve a hash of lists" do
|
@@ -21,7 +21,7 @@ class TestMadmimi < Test::Unit::TestCase
|
|
21
21
|
should "retrieve a hash of users found with the search term nicholas" do
|
22
22
|
stub_get('/audience_members/search.xml?query=nicholas', 'search.xml')
|
23
23
|
response = @mimi.audience_search('nicholas')
|
24
|
-
flunk "No users found" unless response.kind_of?(Hash) || !response.empty?
|
24
|
+
flunk "No users found." unless response.kind_of?(Hash) || !response.empty?
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madmimi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 11
|
10
|
+
version: 1.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nicholas Young
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-06-17 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|