madmimi 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ pkg
2
+ *.gem
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
@@ -179,13 +179,21 @@ class MadMimi
179
179
 
180
180
  def send_mail(opt, yaml_body)
181
181
  opt['body'] = yaml_body.to_yaml
182
- do_request('/mailer', :post, opt.merge(default_opt), true)
182
+ if opt['list_name']
183
+ do_request('/mailer/to_list', :post, opt.merge(default_opt), true)
184
+ else
185
+ do_request('/mailer', :post, opt.merge(default_opt), true)
186
+ end
183
187
  end
184
188
 
185
189
  def send_html(opt, html)
186
190
  if html.include?('[[tracking_beacon]]') || html.include?('[[peek_image]]')
187
191
  opt['raw_html'] = html
188
- do_request('/mailer', :post, opt.merge(default_opt), true)
192
+ if opt['list_name']
193
+ do_request('/mailer/to_list', :post, opt.merge(default_opt), true)
194
+ else
195
+ do_request('/mailer', :post, opt.merge(default_opt), true)
196
+ end
189
197
  else
190
198
  raise StandardError, "You'll need to include either the [[tracking_beacon]] or [[peek_image]] tag in your HTML before sending."
191
199
  end
@@ -194,7 +202,11 @@ class MadMimi
194
202
  def send_plaintext(opt, plaintext)
195
203
  if plaintext.include?('[[unsubscribe]]')
196
204
  opt['raw_plain_text'] = plaintext
197
- do_request('/mailer', :post, opt.merge(default_opt), true)
205
+ if opt['list_name']
206
+ do_request('/mailer/to_list', :post, opt.merge(default_opt), true)
207
+ else
208
+ do_request('/mailer', :post, opt.merge(default_opt), true)
209
+ end
198
210
  else
199
211
  raise StandardError, "You'll need to include either the [[unsubscribe]] tag in your text before sending."
200
212
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{madmimi}
8
- s.version = "1.0.5"
8
+ s.version = "1.0.6"
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-05-06}
12
+ s.date = %q{2010-05-08}
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 = [
@@ -17,15 +17,13 @@ Gem::Specification.new do |s|
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- "LICENSE",
20
+ ".gitignore",
21
+ "LICENSE",
21
22
  "README.rdoc",
22
23
  "Rakefile",
23
24
  "VERSION",
24
25
  "lib/madmimi.rb",
25
26
  "madmimi.gemspec",
26
- "pkg/madmimi-1.0.0.gem",
27
- "pkg/madmimi-1.0.1.gem",
28
- "pkg/madmimi-1.0.3.gem",
29
27
  "test/helper.rb",
30
28
  "test/test_madmimi.rb"
31
29
  ]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 5
9
- version: 1.0.5
8
+ - 6
9
+ version: 1.0.6
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-05-06 00:00:00 -05:00
17
+ date: 2010-05-08 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -41,15 +41,13 @@ extra_rdoc_files:
41
41
  - LICENSE
42
42
  - README.rdoc
43
43
  files:
44
+ - .gitignore
44
45
  - LICENSE
45
46
  - README.rdoc
46
47
  - Rakefile
47
48
  - VERSION
48
49
  - lib/madmimi.rb
49
50
  - madmimi.gemspec
50
- - pkg/madmimi-1.0.0.gem
51
- - pkg/madmimi-1.0.1.gem
52
- - pkg/madmimi-1.0.3.gem
53
51
  - test/helper.rb
54
52
  - test/test_madmimi.rb
55
53
  has_rdoc: true
Binary file
Binary file
Binary file