madmimi 1.0.2 → 1.0.3
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/LICENSE +1 -1
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/madmimi.rb +3 -2
- data/madmimi.gemspec +2 -2
- metadata +3 -3
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
The power of Mad Mimi in your Ruby application. Deliver emails, track statistics, and manage your subscriber base with ease.
|
4
4
|
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
gem install madmimi - or if you prefer to live on the edge, just clone this repository and build it from scratch.
|
8
|
+
|
5
9
|
== A brief tutorial
|
6
10
|
|
7
11
|
Dependencies:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/lib/madmimi.rb
CHANGED
@@ -33,7 +33,7 @@ require 'active_support' # I want to find a way to get away from this, yet I lov
|
|
33
33
|
|
34
34
|
class MadMimi
|
35
35
|
|
36
|
-
BASE_URL = "madmimi.com"
|
36
|
+
BASE_URL = "api.madmimi.com"
|
37
37
|
NEW_LISTS_PATH = "/audience_lists"
|
38
38
|
AUDIENCE_MEMBERS_PATH = "/audience_members"
|
39
39
|
AUDIENCE_LISTS_PATH = "/audience_lists/lists.xml"
|
@@ -177,7 +177,8 @@ class MadMimi
|
|
177
177
|
Hash.from_xml(request)
|
178
178
|
end
|
179
179
|
|
180
|
-
def send_mail(opt)
|
180
|
+
def send_mail(opt, yaml_body)
|
181
|
+
opt['body'] = yaml_body.to_yaml
|
181
182
|
do_request('/mailer', :post, opt.merge(default_opt), true)
|
182
183
|
end
|
183
184
|
end
|
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.3"
|
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"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-05-01}
|
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 = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 3
|
9
|
+
version: 1.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nicholas Young
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-01 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|