mandrill-api 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +12 -3
  2. metadata +5 -25
@@ -259,8 +259,9 @@ module Mandrill
259
259
  @master = master
260
260
  end
261
261
 
262
- # Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results.
262
+ # Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
263
263
  # @param [String] email an optional email address to search by
264
+ # @param [Boolean] include_expired whether to include rejections that have already expired.
264
265
  # @return [Array] Up to 1000 rejection entries
265
266
  # - [Hash] return[] the information for each rejection blacklist entry
266
267
  # - [String] email the email that is blocked
@@ -269,8 +270,8 @@ module Mandrill
269
270
  # - [String] expires_at when the blacklist entry will expire (this may be in the past)
270
271
  # - [Boolean] expired whether the blacklist entry has expired
271
272
  # - [Hash] Sender sender the sender that this blacklist entry applies to, or null if none.
272
- def list(email=nil)
273
- _params = {:email => email}
273
+ def list(email=nil, include_expired=false)
274
+ _params = {:email => email, :include_expired => include_expired}
274
275
  return @master.call 'rejects/list', _params
275
276
  end
276
277
 
@@ -462,6 +463,10 @@ module Mandrill
462
463
  # - [Array] google_analytics_domains an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically.
463
464
  # - [Array, String] google_analytics_campaign optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead.
464
465
  # - [Array] metadata metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.
466
+ # - [Array] recipient_metadata Per-recipient metadata that will override the global values specified in the metadata parameter.
467
+ # - [Hash] recipient_metadata[] metadata for a single recipient
468
+ # - [String] rcpt the email address of the recipient that the metadata is associated with
469
+ # - [Array] values an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used.
465
470
  # - [Array] attachments an array of supported attachments to add to the message
466
471
  # - [Hash] attachments[] a single supported attachment
467
472
  # - [String] type the MIME type of the attachment - allowed types are text/*, image/*, and application/pdf
@@ -514,6 +519,10 @@ module Mandrill
514
519
  # - [Array] google_analytics_domains an array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically.
515
520
  # - [Array, String] google_analytics_campaign optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead.
516
521
  # - [Array] metadata metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.
522
+ # - [Array] recipient_metadata Per-recipient metadata that will override the global values specified in the metadata parameter.
523
+ # - [Hash] recipient_metadata[] metadata for a single recipient
524
+ # - [String] rcpt the email address of the recipient that the metadata is associated with
525
+ # - [Array] values an associated array containing the recipient's unique metadata. If a key exists in both the per-recipient metadata and the global metadata, the per-recipient metadata will be used.
517
526
  # - [Array] attachments an array of supported attachments to add to the message
518
527
  # - [Hash] attachments[] a single supported attachment
519
528
  # - [String] type the MIME type of the attachment - allowed types are text/*, image/*, and application/pdf
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 4
10
- version: 1.0.4
5
+ version: 1.0.6
11
6
  platform: ruby
12
7
  authors:
13
8
  - Mandrill Devs
@@ -15,7 +10,8 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2012-08-01 00:00:00 Z
13
+ date: 2012-09-11 00:00:00 +00:00
14
+ default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: json
@@ -25,11 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ~>
27
23
  - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 1
31
- - 7
32
- - 4
33
24
  version: 1.7.4
34
25
  type: :runtime
35
26
  version_requirements: *id001
@@ -41,11 +32,6 @@ dependencies:
41
32
  requirements:
42
33
  - - ~>
43
34
  - !ruby/object:Gem::Version
44
- hash: 43
45
- segments:
46
- - 0
47
- - 15
48
- - 4
49
35
  version: 0.15.4
50
36
  type: :runtime
51
37
  version_requirements: *id002
@@ -61,6 +47,7 @@ files:
61
47
  - lib/mandrill.rb
62
48
  - lib/mandrill/api.rb
63
49
  - lib/mandrill/errors.rb
50
+ has_rdoc: true
64
51
  homepage: https://bitbucket.org/mailchimp/mandrill-api-ruby/
65
52
  licenses: []
66
53
 
@@ -74,26 +61,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
61
  requirements:
75
62
  - - ">="
76
63
  - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
64
  version: "0"
81
65
  required_rubygems_version: !ruby/object:Gem::Requirement
82
66
  none: false
83
67
  requirements:
84
68
  - - ">="
85
69
  - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
70
  version: "0"
90
71
  requirements: []
91
72
 
92
73
  rubyforge_project:
93
- rubygems_version: 1.8.24
74
+ rubygems_version: 1.6.2
94
75
  signing_key:
95
76
  specification_version: 3
96
77
  summary: A Ruby API library for the Mandrill email as a service platform.
97
78
  test_files: []
98
79
 
99
- has_rdoc: