madmimi 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/madmimi.rb +5 -0
  3. data/madmimi.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.11
1
+ 1.0.12
data/lib/madmimi.rb CHANGED
@@ -42,6 +42,7 @@ class MadMimi
42
42
  AUDIENCE_LISTS_PATH = '/audience_lists/lists.xml'
43
43
  MEMBERSHIPS_PATH = '/audience_members/%email%/lists.xml'
44
44
  SUPPRESSED_SINCE_PATH = '/audience_members/suppressed_since/%timestamp%.txt'
45
+ SUPPRESS_USER_PATH = ' /audience_members/%email%/suppress_email'
45
46
  PROMOTIONS_PATH = '/promotions.xml'
46
47
  MAILING_STATS_PATH = '/promotions/%promotion_id%/mailings/%mailing_id%.xml'
47
48
  SEARCH_PATH = '/audience_members/search.xml'
@@ -102,6 +103,10 @@ class MadMimi
102
103
  def suppressed_since(timestamp)
103
104
  do_request(SUPPRESSED_SINCE_PATH.gsub('%timestamp%', timestamp), :get)
104
105
  end
106
+
107
+ def suppress(email)
108
+ do_request(SUPPRESS_USER_PATH.gsub('%email%', email), :post)
109
+ end
105
110
 
106
111
  def promotions
107
112
  request = do_request(PROMOTIONS_PATH, :get)
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.11"
8
+ s.version = "1.0.12"
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-06-17}
12
+ s.date = %q{2010-07-20}
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madmimi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 11
10
- version: 1.0.11
9
+ - 12
10
+ version: 1.0.12
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-06-17 00:00:00 -05:00
19
+ date: 2010-07-20 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency