madmimi 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Nicholas Young
1
+ Copyright (c) 2010 Nicholas Young <nicholas@madmimi.com>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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.2
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.2"
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-04-30}
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
- - 2
9
- version: 1.0.2
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-04-30 00:00:00 -05:00
17
+ date: 2010-05-01 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency