emaildirect 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +3 -0
- data/lib/emaildirect/import.rb +5 -5
- data/lib/emaildirect/list.rb +2 -2
- data/lib/emaildirect/publication.rb +2 -2
- data/lib/emaildirect/source.rb +1 -1
- data/lib/emaildirect/suppression_list.rb +4 -4
- data/lib/emaildirect/version.rb +1 -1
- data/lib/emaildirect/workflow.rb +2 -2
- metadata +18 -29
data/HISTORY.md
CHANGED
data/lib/emaildirect/import.rb
CHANGED
@@ -6,31 +6,31 @@ module EmailDirect
|
|
6
6
|
class Import
|
7
7
|
class << self
|
8
8
|
def add(subscribers)
|
9
|
-
options = { :Subscribers => subscribers
|
9
|
+
options = { :Subscribers => Array(subscribers) }
|
10
10
|
response = EmailDirect.post uri_for('Subscribers'), :body => options.to_json
|
11
11
|
Hashie::Mash.new(response)
|
12
12
|
end
|
13
13
|
|
14
14
|
def update(subscribers)
|
15
|
-
options = { :Subscribers => subscribers
|
15
|
+
options = { :Subscribers => Array(subscribers) }
|
16
16
|
response = EmailDirect.put uri_for('Subscribers'), :body => options.to_json
|
17
17
|
Hashie::Mash.new(response)
|
18
18
|
end
|
19
19
|
|
20
20
|
def add_or_update(subscribers)
|
21
|
-
options = { :Subscribers => subscribers
|
21
|
+
options = { :Subscribers => Array(subscribers) }
|
22
22
|
response = EmailDirect.post uri_for('AddOrUpdate'), :body => options.to_json
|
23
23
|
Hashie::Mash.new(response)
|
24
24
|
end
|
25
25
|
|
26
26
|
def remove(email_addresses)
|
27
|
-
options = { :EmailAddresses => email_addresses
|
27
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
28
28
|
response = EmailDirect.post uri_for('Remove'), :body => options.to_json
|
29
29
|
Hashie::Mash.new(response)
|
30
30
|
end
|
31
31
|
|
32
32
|
def delete(email_addresses)
|
33
|
-
options = { :EmailAddresses => email_addresses
|
33
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
34
34
|
response = EmailDirect.post uri_for('Delete'), :body => options.to_json
|
35
35
|
Hashie::Mash.new(response)
|
36
36
|
end
|
data/lib/emaildirect/list.rb
CHANGED
@@ -45,13 +45,13 @@ module EmailDirect
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def add_emails(email_addresses)
|
48
|
-
options = { :EmailAddresses => email_addresses
|
48
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
49
49
|
response = post 'AddEmails', :body => options.to_json
|
50
50
|
Hashie::Mash.new(response)
|
51
51
|
end
|
52
52
|
|
53
53
|
def remove_emails(email_addresses)
|
54
|
-
options = { :EmailAddresses => email_addresses
|
54
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
55
55
|
response = post 'RemoveEmails', :body => options.to_json
|
56
56
|
Hashie::Mash.new(response)
|
57
57
|
end
|
@@ -50,13 +50,13 @@ module EmailDirect
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def add_emails(email_addresses)
|
53
|
-
options = { :EmailAddresses => email_addresses
|
53
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
54
54
|
response = post 'AddEmails', :body => options.to_json
|
55
55
|
Hashie::Mash.new(response)
|
56
56
|
end
|
57
57
|
|
58
58
|
def remove_emails(email_addresses)
|
59
|
-
options = { :EmailAddresses => email_addresses
|
59
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
60
60
|
response = post 'RemoveEmails', :body => options.to_json
|
61
61
|
Hashie::Mash.new(response)
|
62
62
|
end
|
data/lib/emaildirect/source.rb
CHANGED
@@ -45,7 +45,7 @@ module EmailDirect
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def add_emails(email_addresses)
|
48
|
-
options = { :EmailAddresses => email_addresses
|
48
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
49
49
|
response = EmailDirect.post uri_for('AddEmails'), :body => options.to_json
|
50
50
|
Hashie::Mash.new(response)
|
51
51
|
end
|
@@ -48,25 +48,25 @@ module EmailDirect
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def add_emails(email_addresses)
|
51
|
-
options = { :EmailAddresses => email_addresses
|
51
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
52
52
|
response = post 'AddEmails', :body => options.to_json
|
53
53
|
Hashie::Mash.new(response)
|
54
54
|
end
|
55
55
|
|
56
56
|
def remove_emails(email_addresses)
|
57
|
-
options = { :EmailAddresses => email_addresses
|
57
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
58
58
|
response = post 'RemoveEmails', :body => options.to_json
|
59
59
|
Hashie::Mash.new(response)
|
60
60
|
end
|
61
61
|
|
62
62
|
def add_domains(domain_addresses)
|
63
|
-
options = { :DomainNames => domain_addresses
|
63
|
+
options = { :DomainNames => Array(domain_addresses) }
|
64
64
|
response = post 'AddDomains', :body => options.to_json
|
65
65
|
Hashie::Mash.new(response)
|
66
66
|
end
|
67
67
|
|
68
68
|
def remove_domains(domain_addresses)
|
69
|
-
options = { :DomainNames => domain_addresses
|
69
|
+
options = { :DomainNames => Array(domain_addresses) }
|
70
70
|
response = post 'RemoveDomains', :body => options.to_json
|
71
71
|
Hashie::Mash.new(response)
|
72
72
|
end
|
data/lib/emaildirect/version.rb
CHANGED
data/lib/emaildirect/workflow.rb
CHANGED
@@ -58,13 +58,13 @@ module EmailDirect
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def add_emails(email_addresses)
|
61
|
-
options = { :EmailAddresses => email_addresses
|
61
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
62
62
|
response = post 'AddEmails', :body => options.to_json
|
63
63
|
Hashie::Mash.new(response)
|
64
64
|
end
|
65
65
|
|
66
66
|
def remove_emails(email_addresses)
|
67
|
-
options = { :EmailAddresses => email_addresses
|
67
|
+
options = { :EmailAddresses => Array(email_addresses) }
|
68
68
|
response = post 'RemoveEmails', :body => options.to_json
|
69
69
|
Hashie::Mash.new(response)
|
70
70
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emaildirect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 1.3.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jason Rust
|
@@ -15,51 +14,45 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2012-
|
17
|
+
date: 2012-02-08 00:00:00 -08:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
22
|
requirements:
|
26
23
|
- - ">="
|
27
24
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
25
|
segments:
|
30
26
|
- 0
|
31
27
|
version: "0"
|
32
|
-
type: :runtime
|
33
28
|
name: json
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
29
|
prerelease: false
|
37
|
-
requirement:
|
38
|
-
|
30
|
+
requirement: *id001
|
31
|
+
type: :runtime
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
34
|
requirements:
|
40
35
|
- - ">="
|
41
36
|
- !ruby/object:Gem::Version
|
42
|
-
hash: 3
|
43
37
|
segments:
|
44
38
|
- 0
|
45
39
|
version: "0"
|
46
|
-
type: :runtime
|
47
40
|
name: hashie
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
41
|
prerelease: false
|
51
|
-
requirement:
|
52
|
-
|
42
|
+
requirement: *id002
|
43
|
+
type: :runtime
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
53
46
|
requirements:
|
54
47
|
- - ">="
|
55
48
|
- !ruby/object:Gem::Version
|
56
|
-
hash: 3
|
57
49
|
segments:
|
58
50
|
- 0
|
59
51
|
version: "0"
|
60
|
-
type: :runtime
|
61
52
|
name: httparty
|
62
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: *id003
|
55
|
+
type: :runtime
|
63
56
|
description: Implements the complete functionality of the email direct REST API.
|
64
57
|
email:
|
65
58
|
- rustyparts@gmail.com
|
@@ -111,20 +104,16 @@ rdoc_options: []
|
|
111
104
|
require_paths:
|
112
105
|
- lib
|
113
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
107
|
requirements:
|
116
108
|
- - ">="
|
117
109
|
- !ruby/object:Gem::Version
|
118
|
-
hash: 3
|
119
110
|
segments:
|
120
111
|
- 0
|
121
112
|
version: "0"
|
122
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
114
|
requirements:
|
125
115
|
- - ">="
|
126
116
|
- !ruby/object:Gem::Version
|
127
|
-
hash: 23
|
128
117
|
segments:
|
129
118
|
- 1
|
130
119
|
- 3
|
@@ -133,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
122
|
requirements: []
|
134
123
|
|
135
124
|
rubyforge_project:
|
136
|
-
rubygems_version: 1.
|
125
|
+
rubygems_version: 1.3.6
|
137
126
|
signing_key:
|
138
127
|
specification_version: 3
|
139
128
|
summary: A library which implements the complete functionality of of the emaildirect REST API (v5).
|