sendgrid4r 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.example +4 -1
- data/.travis.yml +1 -1
- data/lib/client.rb +0 -2
- data/lib/sendgrid4r/rest/api.rb +4 -0
- data/lib/sendgrid4r/rest/api_keys/api_keys.rb +4 -10
- data/lib/sendgrid4r/rest/asm/global_suppressions.rb +9 -16
- data/lib/sendgrid4r/rest/asm/groups.rb +3 -7
- data/lib/sendgrid4r/rest/asm/suppressions.rb +25 -18
- data/lib/sendgrid4r/rest/categories/categories.rb +1 -3
- data/lib/sendgrid4r/rest/contacts/custom_fields.rb +1 -1
- data/lib/sendgrid4r/rest/contacts/lists.rb +15 -37
- data/lib/sendgrid4r/rest/contacts/recipients.rb +19 -44
- data/lib/sendgrid4r/rest/contacts/reserved_fields.rb +1 -5
- data/lib/sendgrid4r/rest/contacts/segments.rb +9 -16
- data/lib/sendgrid4r/rest/email_activity/email_activity.rb +84 -0
- data/lib/sendgrid4r/rest/ips/addresses.rb +9 -18
- data/lib/sendgrid4r/rest/ips/pools.rb +7 -12
- data/lib/sendgrid4r/rest/ips/warmup.rb +7 -17
- data/lib/sendgrid4r/rest/request.rb +7 -1
- data/lib/sendgrid4r/rest/settings/enforced_tls.rb +5 -12
- data/lib/sendgrid4r/rest/stats/advanced.rb +10 -32
- data/lib/sendgrid4r/rest/stats/category.rb +4 -11
- data/lib/sendgrid4r/rest/stats/global.rb +3 -2
- data/lib/sendgrid4r/rest/stats/parse.rb +4 -6
- data/lib/sendgrid4r/rest/stats/subuser.rb +4 -11
- data/lib/sendgrid4r/rest/subusers/subusers.rb +83 -0
- data/lib/sendgrid4r/rest/templates/templates.rb +1 -1
- data/lib/sendgrid4r/rest/templates/versions.rb +3 -2
- data/lib/sendgrid4r/version.rb +1 -1
- data/spec/client_spec.rb +17 -4
- data/spec/factory/condition_factory_spec.rb +1 -1
- data/spec/factory/segment_factory_spec.rb +1 -1
- data/spec/factory/version_factory_spec.rb +1 -1
- data/spec/{api_keys → rest/api_keys}/api_keys_spec.rb +52 -18
- data/spec/{asm → rest/asm}/asm_spec.rb +23 -17
- data/spec/{asm → rest/asm}/global_suppressions_spec.rb +45 -2
- data/spec/{asm → rest/asm}/groups_spec.rb +76 -7
- data/spec/{asm → rest/asm}/suppressions_spec.rb +95 -20
- data/spec/{categories → rest/categories}/categories_spec.rb +27 -7
- data/spec/{contacts → rest/contacts}/custom_fields_spec.rb +49 -15
- data/spec/{contacts → rest/contacts}/lists_spec.rb +138 -15
- data/spec/{contacts → rest/contacts}/recipients_spec.rb +141 -26
- data/spec/{contacts → rest/contacts}/reserved_fields_spec.rb +29 -13
- data/spec/{contacts → rest/contacts}/segments_spec.rb +108 -31
- data/spec/rest/email_activity/email_activity_spec.rb +192 -0
- data/spec/{ips → rest/ips}/addresses_spec.rb +58 -18
- data/spec/{ips → rest/ips}/pools_spec.rb +80 -45
- data/spec/{ips → rest/ips}/warmup_spec.rb +50 -7
- data/spec/{settings → rest/settings}/enforced_tls_spec.rb +32 -7
- data/spec/{stats → rest/stats}/advanced_spec.rb +2 -2
- data/spec/{stats → rest/stats}/category_spec.rb +2 -2
- data/spec/{stats → rest/stats}/global_spec.rb +2 -2
- data/spec/{stats → rest/stats}/parse_spec.rb +2 -2
- data/spec/{stats → rest/stats}/stats_spec.rb +2 -2
- data/spec/{stats → rest/stats}/subuser_spec.rb +2 -2
- data/spec/rest/subusers/subusers_spec.rb +246 -0
- data/spec/{templates → rest/templates}/templates_spec.rb +55 -15
- data/spec/{templates → rest/templates}/versions_spec.rb +44 -7
- metadata +54 -48
@@ -0,0 +1,246 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
3
|
+
|
4
|
+
describe SendGrid4r::REST::Subusers do
|
5
|
+
describe 'integration test', :it do
|
6
|
+
before do
|
7
|
+
begin
|
8
|
+
Dotenv.load
|
9
|
+
@client = SendGrid4r::Client.new(
|
10
|
+
username: ENV['SILVER_SENDGRID_USERNAME'],
|
11
|
+
password: ENV['SILVER_SENDGRID_PASSWORD'])
|
12
|
+
@username1 = ENV['SUBUSER1']
|
13
|
+
@username2 = ENV['SILVER_SUBUSER']
|
14
|
+
@username3 = ENV['SILVER_SUBUSER2']
|
15
|
+
@email1 = ENV['SUBMAIL1']
|
16
|
+
@password1 = ENV['SUBPASS1']
|
17
|
+
|
18
|
+
@ip = @client.get_ips[0].ip
|
19
|
+
# celan up test env
|
20
|
+
rescue => e
|
21
|
+
puts e.inspect
|
22
|
+
raise e
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'without block call' do
|
27
|
+
it '#get_subusers' do
|
28
|
+
begin
|
29
|
+
subusers = @client.get_subusers(limit: 100, offset: 0)
|
30
|
+
expect(subusers).to be_a(Array)
|
31
|
+
subusers.each do |subuser|
|
32
|
+
expect(subuser).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
33
|
+
end
|
34
|
+
rescue => e
|
35
|
+
puts e.inspect
|
36
|
+
raise e
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
it '#post_subuser' do
|
41
|
+
begin
|
42
|
+
pending 'got RestClient::Forbidden:'
|
43
|
+
subuser2 = @client.post_subuser(
|
44
|
+
username: @username2,
|
45
|
+
email: @email2,
|
46
|
+
password: @password2,
|
47
|
+
ips: [@ip]
|
48
|
+
)
|
49
|
+
expect(subuser2).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
50
|
+
expect(subuser2.username).to eq(@username2)
|
51
|
+
expect(subuser2.email).to eq(@email2)
|
52
|
+
expect(subuser2.password).to eq(@password2)
|
53
|
+
expect(subuser2.ips).to be_a(Array)
|
54
|
+
rescue => e
|
55
|
+
puts e.inspect
|
56
|
+
raise e
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
it '#get_subuser_reputation' do
|
61
|
+
begin
|
62
|
+
params = []
|
63
|
+
params.push(@username2)
|
64
|
+
params.push(@username3)
|
65
|
+
subusers = @client.get_subuser_reputation(usernames: params)
|
66
|
+
expect(subusers).to be_a(Array)
|
67
|
+
subusers.each do |subuser|
|
68
|
+
expect(subuser).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
69
|
+
end
|
70
|
+
rescue => e
|
71
|
+
puts e.inspect
|
72
|
+
raise e
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
it '#put_subuser_assigned_ips' do
|
77
|
+
begin
|
78
|
+
pending 'Invalid JSON'
|
79
|
+
subuser = @client.put_subuser_assigned_ips(username: @username2)
|
80
|
+
expect(subuser.ips).to be_a(Array)
|
81
|
+
subuser.ips.each do |ip|
|
82
|
+
expect(ip).to be_a(String)
|
83
|
+
end
|
84
|
+
rescue => e
|
85
|
+
puts e.inspect
|
86
|
+
raise e
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
context 'with block call' do
|
92
|
+
it '#get_subusers' do
|
93
|
+
@client.get_subusers(limit: 100, offset: 0) do |resp, req, res|
|
94
|
+
resp =
|
95
|
+
SendGrid4r::REST::Subusers.create_subusers(JSON.parse(resp))
|
96
|
+
expect(resp).to be_a(Array)
|
97
|
+
expect(req).to be_a(RestClient::Request)
|
98
|
+
expect(res).to be_a(Net::HTTPOK)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
it '#post_subuser' do
|
103
|
+
pending 'got RestClient::Forbidden:'
|
104
|
+
@client.post_subuser(
|
105
|
+
username: @username2,
|
106
|
+
email: @email2,
|
107
|
+
password: @password2,
|
108
|
+
ips: [@ip]
|
109
|
+
) do |resp, req, res|
|
110
|
+
resp =
|
111
|
+
SendGrid4r::REST::Subusers.create_subuser(JSON.parse(resp))
|
112
|
+
expect(resp).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
113
|
+
expect(req).to be_a(RestClient::Request)
|
114
|
+
expect(res).to be_a(Net::HTTPCreated)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
it '#get_subuser_reputation' do
|
119
|
+
@client.get_subuser_reputation(
|
120
|
+
usernames: [@username2]
|
121
|
+
) do |resp, req, res|
|
122
|
+
resp =
|
123
|
+
SendGrid4r::REST::Subusers.create_subusers(JSON.parse(resp))
|
124
|
+
expect(resp).to be_a(Array)
|
125
|
+
expect(req).to be_a(RestClient::Request)
|
126
|
+
expect(res).to be_a(Net::HTTPOK)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
it '#put_subuser_assigned_ips' do
|
131
|
+
pending 'Invalid JSON'
|
132
|
+
@client.put_subuser_assigned_ips(
|
133
|
+
username: @username2
|
134
|
+
) do |resp, req, res|
|
135
|
+
resp =
|
136
|
+
SendGrid4r::REST::Subusers.create_subuser(JSON.parse(resp))
|
137
|
+
expect(resp).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
138
|
+
expect(req).to be_a(RestClient::Request)
|
139
|
+
expect(res).to be_a(Net::HTTPOK)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe 'unit test', :ut do
|
146
|
+
let(:client) do
|
147
|
+
SendGrid4r::Client.new(api_key: '')
|
148
|
+
end
|
149
|
+
|
150
|
+
let(:subusers) do
|
151
|
+
JSON.parse(
|
152
|
+
'['\
|
153
|
+
'{'\
|
154
|
+
'"id": 1,'\
|
155
|
+
'"username": "Test@example.com",'\
|
156
|
+
'"email": "Test@example.com"'\
|
157
|
+
'},'\
|
158
|
+
'{'\
|
159
|
+
'"id": 2,'\
|
160
|
+
'"username": "John@example.com",'\
|
161
|
+
'"email": "John@example.com"'\
|
162
|
+
'}'\
|
163
|
+
']'
|
164
|
+
)
|
165
|
+
end
|
166
|
+
|
167
|
+
let(:subuser) do
|
168
|
+
JSON.parse(
|
169
|
+
'{'\
|
170
|
+
'"username": "John@example.com",'\
|
171
|
+
'"email": "John@example.com",'\
|
172
|
+
'"password": "johns_password",'\
|
173
|
+
'"ips": ['\
|
174
|
+
'"1.1.1.1",'\
|
175
|
+
'"2.2.2.2"'\
|
176
|
+
'],'\
|
177
|
+
'"disabled": false'\
|
178
|
+
'}'
|
179
|
+
)
|
180
|
+
end
|
181
|
+
|
182
|
+
let(:ips) do
|
183
|
+
JSON.parse(
|
184
|
+
'{'\
|
185
|
+
'"ips": ['\
|
186
|
+
'"127.0.0.1",'\
|
187
|
+
'"127.0.0.2"'\
|
188
|
+
']'\
|
189
|
+
'}'
|
190
|
+
)
|
191
|
+
end
|
192
|
+
|
193
|
+
it '#get_subusers' do
|
194
|
+
allow(client).to receive(:execute).and_return(subusers)
|
195
|
+
actual = client.get_subusers(limit: 0, offset: 0, username: 'aaa')
|
196
|
+
expect(actual).to be_a(Array)
|
197
|
+
actual.each do |subuser|
|
198
|
+
expect(subuser).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
it '#post_subuser' do
|
203
|
+
allow(client).to receive(:execute).and_return(subuser)
|
204
|
+
actual = client.post_subuser(
|
205
|
+
username: '', email: '', password: '', ips: []
|
206
|
+
)
|
207
|
+
expect(actual).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
208
|
+
end
|
209
|
+
|
210
|
+
it '#get_subuser_reputation' do
|
211
|
+
allow(client).to receive(:execute).and_return(subusers)
|
212
|
+
actual = client.get_subuser_reputation(usernames: [])
|
213
|
+
expect(actual).to be_a(Array)
|
214
|
+
actual.each do |subuser|
|
215
|
+
expect(subuser).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
it '#put_subuser_assigned_ips' do
|
220
|
+
pending 'waiting for sendgrid documentation update'
|
221
|
+
allow(client).to receive(:execute).and_return(subuser)
|
222
|
+
actual = client.put_subuser_assigned_ips('', [])
|
223
|
+
expect(actual).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
224
|
+
end
|
225
|
+
|
226
|
+
it 'creates subusers instance' do
|
227
|
+
actual = SendGrid4r::REST::Subusers.create_subusers(subusers)
|
228
|
+
expect(actual).to be_a(Array)
|
229
|
+
actual.each do |subuser|
|
230
|
+
expect(subuser).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
it 'creates subuser instance' do
|
235
|
+
actual = SendGrid4r::REST::Subusers.create_subuser(subuser)
|
236
|
+
expect(actual).to be_a(SendGrid4r::REST::Subusers::Subuser)
|
237
|
+
expect(actual.username).to eq('John@example.com')
|
238
|
+
expect(actual.email).to eq('John@example.com')
|
239
|
+
expect(actual.password).to eq('johns_password')
|
240
|
+
actual.ips do |ip|
|
241
|
+
expect(ip).to be_a(String)
|
242
|
+
end
|
243
|
+
expect(actual.disabled).to eq(false)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
require File.dirname(__FILE__) + '
|
2
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
3
3
|
|
4
4
|
describe SendGrid4r::REST::Templates do
|
5
|
-
describe 'integration test' do
|
5
|
+
describe 'integration test', :it do
|
6
6
|
before do
|
7
7
|
begin
|
8
8
|
Dotenv.load
|
@@ -163,24 +163,23 @@ describe SendGrid4r::REST::Templates do
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
-
describe 'unit test' do
|
167
|
-
|
168
|
-
|
166
|
+
describe 'unit test', :ut do
|
167
|
+
let(:client) do
|
168
|
+
SendGrid4r::Client.new(api_key: '')
|
169
|
+
end
|
170
|
+
|
171
|
+
let(:template) do
|
172
|
+
JSON.parse(
|
169
173
|
'{'\
|
170
174
|
'"id": "733ba07f-ead1-41fc-933a-3976baa23716",'\
|
171
175
|
'"name": "example_name",'\
|
172
176
|
'"versions": []'\
|
173
177
|
'}'
|
174
|
-
|
175
|
-
actual = SendGrid4r::REST::Templates.create_template(hash)
|
176
|
-
expect(actual).to be_a(SendGrid4r::REST::Templates::Template)
|
177
|
-
expect(actual.id).to eq('733ba07f-ead1-41fc-933a-3976baa23716')
|
178
|
-
expect(actual.name).to eq('example_name')
|
179
|
-
expect(actual.versions).to be_a(Array)
|
178
|
+
)
|
180
179
|
end
|
181
180
|
|
182
|
-
|
183
|
-
|
181
|
+
let(:templates) do
|
182
|
+
JSON.parse(
|
184
183
|
'{'\
|
185
184
|
'"templates": ['\
|
186
185
|
'{'\
|
@@ -202,8 +201,49 @@ describe SendGrid4r::REST::Templates do
|
|
202
201
|
'}'\
|
203
202
|
']'\
|
204
203
|
'}'
|
205
|
-
|
206
|
-
|
204
|
+
)
|
205
|
+
end
|
206
|
+
|
207
|
+
it '#post_template' do
|
208
|
+
allow(client).to receive(:execute).and_return(template)
|
209
|
+
actual = client.post_template('')
|
210
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Template)
|
211
|
+
end
|
212
|
+
|
213
|
+
it '#get_templates' do
|
214
|
+
allow(client).to receive(:execute).and_return(templates)
|
215
|
+
actual = client.get_templates
|
216
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Templates)
|
217
|
+
end
|
218
|
+
|
219
|
+
it '#patch_template' do
|
220
|
+
allow(client).to receive(:execute).and_return(template)
|
221
|
+
actual = client.patch_template('', '')
|
222
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Template)
|
223
|
+
end
|
224
|
+
|
225
|
+
it '#get_template' do
|
226
|
+
allow(client).to receive(:execute).and_return(template)
|
227
|
+
actual = client.get_template('')
|
228
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Template)
|
229
|
+
end
|
230
|
+
|
231
|
+
it '#delete_template' do
|
232
|
+
allow(client).to receive(:execute).and_return('')
|
233
|
+
actual = client.delete_template('')
|
234
|
+
expect(actual).to eq('')
|
235
|
+
end
|
236
|
+
|
237
|
+
it 'creates template instance' do
|
238
|
+
actual = SendGrid4r::REST::Templates.create_template(template)
|
239
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Template)
|
240
|
+
expect(actual.id).to eq('733ba07f-ead1-41fc-933a-3976baa23716')
|
241
|
+
expect(actual.name).to eq('example_name')
|
242
|
+
expect(actual.versions).to be_a(Array)
|
243
|
+
end
|
244
|
+
|
245
|
+
it 'creates templates instance' do
|
246
|
+
actual = SendGrid4r::REST::Templates.create_templates(templates)
|
207
247
|
expect(actual).to be_a(SendGrid4r::REST::Templates::Templates)
|
208
248
|
expect(actual.templates).to be_a(Array)
|
209
249
|
actual.templates.each do |template|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
require File.dirname(__FILE__) + '
|
2
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
3
3
|
|
4
4
|
describe SendGrid4r::REST::Templates::Versions do
|
5
|
-
describe 'integration test' do
|
5
|
+
describe 'integration test', :it do
|
6
6
|
before do
|
7
7
|
begin
|
8
8
|
Dotenv.load
|
@@ -164,9 +164,13 @@ describe SendGrid4r::REST::Templates::Versions do
|
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
167
|
-
describe 'unit test' do
|
168
|
-
|
169
|
-
|
167
|
+
describe 'unit test', :ut do
|
168
|
+
let(:client) do
|
169
|
+
SendGrid4r::Client.new(api_key: '')
|
170
|
+
end
|
171
|
+
|
172
|
+
let(:version) do
|
173
|
+
JSON.parse(
|
170
174
|
'{'\
|
171
175
|
'"id": "8aefe0ee-f12b-4575-b5b7-c97e21cb36f3",'\
|
172
176
|
'"template_id": "ddb96bbc-9b92-425e-8979-99464621b543",'\
|
@@ -177,8 +181,41 @@ describe SendGrid4r::REST::Templates::Versions do
|
|
177
181
|
'"subject": "<%subject%>",'\
|
178
182
|
'"updated_at": "2014-03-19 18:56:33"'\
|
179
183
|
'}'
|
180
|
-
|
181
|
-
|
184
|
+
)
|
185
|
+
end
|
186
|
+
|
187
|
+
it '#post_version' do
|
188
|
+
allow(client).to receive(:execute).and_return(version)
|
189
|
+
actual = client.post_version('', nil)
|
190
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Versions::Version)
|
191
|
+
end
|
192
|
+
|
193
|
+
it '#activate_version' do
|
194
|
+
allow(client).to receive(:execute).and_return(version)
|
195
|
+
actual = client.activate_version('', '')
|
196
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Versions::Version)
|
197
|
+
end
|
198
|
+
|
199
|
+
it '#get_version' do
|
200
|
+
allow(client).to receive(:execute).and_return(version)
|
201
|
+
actual = client.get_version('', '')
|
202
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Versions::Version)
|
203
|
+
end
|
204
|
+
|
205
|
+
it '#patch_version' do
|
206
|
+
allow(client).to receive(:execute).and_return(version)
|
207
|
+
actual = client.patch_version('', '', nil)
|
208
|
+
expect(actual).to be_a(SendGrid4r::REST::Templates::Versions::Version)
|
209
|
+
end
|
210
|
+
|
211
|
+
it '#delete_version' do
|
212
|
+
allow(client).to receive(:execute).and_return('')
|
213
|
+
actual = client.delete_version('', '')
|
214
|
+
expect(actual).to eq('')
|
215
|
+
end
|
216
|
+
|
217
|
+
it 'creates version instance' do
|
218
|
+
actual = SendGrid4r::REST::Templates::Versions.create_version(version)
|
182
219
|
expect(actual).to be_a(SendGrid4r::REST::Templates::Versions::Version)
|
183
220
|
expect(actual.id).to eq('8aefe0ee-f12b-4575-b5b7-c97e21cb36f3')
|
184
221
|
expect(actual.template_id).to eq('ddb96bbc-9b92-425e-8979-99464621b543')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- awwa500@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/sendgrid4r/rest/contacts/recipients.rb
|
132
132
|
- lib/sendgrid4r/rest/contacts/reserved_fields.rb
|
133
133
|
- lib/sendgrid4r/rest/contacts/segments.rb
|
134
|
+
- lib/sendgrid4r/rest/email_activity/email_activity.rb
|
134
135
|
- lib/sendgrid4r/rest/ips/addresses.rb
|
135
136
|
- lib/sendgrid4r/rest/ips/pools.rb
|
136
137
|
- lib/sendgrid4r/rest/ips/warmup.rb
|
@@ -142,38 +143,41 @@ files:
|
|
142
143
|
- lib/sendgrid4r/rest/stats/parse.rb
|
143
144
|
- lib/sendgrid4r/rest/stats/stats.rb
|
144
145
|
- lib/sendgrid4r/rest/stats/subuser.rb
|
146
|
+
- lib/sendgrid4r/rest/subusers/subusers.rb
|
145
147
|
- lib/sendgrid4r/rest/templates/templates.rb
|
146
148
|
- lib/sendgrid4r/rest/templates/versions.rb
|
147
149
|
- lib/sendgrid4r/version.rb
|
148
150
|
- sendgrid4r.gemspec
|
149
|
-
- spec/api_keys/api_keys_spec.rb
|
150
|
-
- spec/asm/asm_spec.rb
|
151
|
-
- spec/asm/global_suppressions_spec.rb
|
152
|
-
- spec/asm/groups_spec.rb
|
153
|
-
- spec/asm/suppressions_spec.rb
|
154
|
-
- spec/categories/categories_spec.rb
|
155
151
|
- spec/client_spec.rb
|
156
|
-
- spec/contacts/custom_fields_spec.rb
|
157
|
-
- spec/contacts/lists_spec.rb
|
158
|
-
- spec/contacts/recipients_spec.rb
|
159
|
-
- spec/contacts/reserved_fields_spec.rb
|
160
|
-
- spec/contacts/segments_spec.rb
|
161
152
|
- spec/factory/condition_factory_spec.rb
|
162
153
|
- spec/factory/segment_factory_spec.rb
|
163
154
|
- spec/factory/version_factory_spec.rb
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
167
|
-
- spec/
|
155
|
+
- spec/rest/api_keys/api_keys_spec.rb
|
156
|
+
- spec/rest/asm/asm_spec.rb
|
157
|
+
- spec/rest/asm/global_suppressions_spec.rb
|
158
|
+
- spec/rest/asm/groups_spec.rb
|
159
|
+
- spec/rest/asm/suppressions_spec.rb
|
160
|
+
- spec/rest/categories/categories_spec.rb
|
161
|
+
- spec/rest/contacts/custom_fields_spec.rb
|
162
|
+
- spec/rest/contacts/lists_spec.rb
|
163
|
+
- spec/rest/contacts/recipients_spec.rb
|
164
|
+
- spec/rest/contacts/reserved_fields_spec.rb
|
165
|
+
- spec/rest/contacts/segments_spec.rb
|
166
|
+
- spec/rest/email_activity/email_activity_spec.rb
|
167
|
+
- spec/rest/ips/addresses_spec.rb
|
168
|
+
- spec/rest/ips/pools_spec.rb
|
169
|
+
- spec/rest/ips/warmup_spec.rb
|
170
|
+
- spec/rest/settings/enforced_tls_spec.rb
|
171
|
+
- spec/rest/stats/advanced_spec.rb
|
172
|
+
- spec/rest/stats/category_spec.rb
|
173
|
+
- spec/rest/stats/global_spec.rb
|
174
|
+
- spec/rest/stats/parse_spec.rb
|
175
|
+
- spec/rest/stats/stats_spec.rb
|
176
|
+
- spec/rest/stats/subuser_spec.rb
|
177
|
+
- spec/rest/subusers/subusers_spec.rb
|
178
|
+
- spec/rest/templates/templates_spec.rb
|
179
|
+
- spec/rest/templates/versions_spec.rb
|
168
180
|
- spec/spec_helper.rb
|
169
|
-
- spec/stats/advanced_spec.rb
|
170
|
-
- spec/stats/category_spec.rb
|
171
|
-
- spec/stats/global_spec.rb
|
172
|
-
- spec/stats/parse_spec.rb
|
173
|
-
- spec/stats/stats_spec.rb
|
174
|
-
- spec/stats/subuser_spec.rb
|
175
|
-
- spec/templates/templates_spec.rb
|
176
|
-
- spec/templates/versions_spec.rb
|
177
181
|
homepage: ''
|
178
182
|
licenses:
|
179
183
|
- MIT
|
@@ -199,32 +203,34 @@ signing_key:
|
|
199
203
|
specification_version: 4
|
200
204
|
summary: SendGrid Web API v3 module
|
201
205
|
test_files:
|
202
|
-
- spec/api_keys/api_keys_spec.rb
|
203
|
-
- spec/asm/asm_spec.rb
|
204
|
-
- spec/asm/global_suppressions_spec.rb
|
205
|
-
- spec/asm/groups_spec.rb
|
206
|
-
- spec/asm/suppressions_spec.rb
|
207
|
-
- spec/categories/categories_spec.rb
|
208
206
|
- spec/client_spec.rb
|
209
|
-
- spec/contacts/custom_fields_spec.rb
|
210
|
-
- spec/contacts/lists_spec.rb
|
211
|
-
- spec/contacts/recipients_spec.rb
|
212
|
-
- spec/contacts/reserved_fields_spec.rb
|
213
|
-
- spec/contacts/segments_spec.rb
|
214
207
|
- spec/factory/condition_factory_spec.rb
|
215
208
|
- spec/factory/segment_factory_spec.rb
|
216
209
|
- spec/factory/version_factory_spec.rb
|
217
|
-
- spec/
|
218
|
-
- spec/
|
219
|
-
- spec/
|
220
|
-
- spec/
|
210
|
+
- spec/rest/api_keys/api_keys_spec.rb
|
211
|
+
- spec/rest/asm/asm_spec.rb
|
212
|
+
- spec/rest/asm/global_suppressions_spec.rb
|
213
|
+
- spec/rest/asm/groups_spec.rb
|
214
|
+
- spec/rest/asm/suppressions_spec.rb
|
215
|
+
- spec/rest/categories/categories_spec.rb
|
216
|
+
- spec/rest/contacts/custom_fields_spec.rb
|
217
|
+
- spec/rest/contacts/lists_spec.rb
|
218
|
+
- spec/rest/contacts/recipients_spec.rb
|
219
|
+
- spec/rest/contacts/reserved_fields_spec.rb
|
220
|
+
- spec/rest/contacts/segments_spec.rb
|
221
|
+
- spec/rest/email_activity/email_activity_spec.rb
|
222
|
+
- spec/rest/ips/addresses_spec.rb
|
223
|
+
- spec/rest/ips/pools_spec.rb
|
224
|
+
- spec/rest/ips/warmup_spec.rb
|
225
|
+
- spec/rest/settings/enforced_tls_spec.rb
|
226
|
+
- spec/rest/stats/advanced_spec.rb
|
227
|
+
- spec/rest/stats/category_spec.rb
|
228
|
+
- spec/rest/stats/global_spec.rb
|
229
|
+
- spec/rest/stats/parse_spec.rb
|
230
|
+
- spec/rest/stats/stats_spec.rb
|
231
|
+
- spec/rest/stats/subuser_spec.rb
|
232
|
+
- spec/rest/subusers/subusers_spec.rb
|
233
|
+
- spec/rest/templates/templates_spec.rb
|
234
|
+
- spec/rest/templates/versions_spec.rb
|
221
235
|
- spec/spec_helper.rb
|
222
|
-
- spec/stats/advanced_spec.rb
|
223
|
-
- spec/stats/category_spec.rb
|
224
|
-
- spec/stats/global_spec.rb
|
225
|
-
- spec/stats/parse_spec.rb
|
226
|
-
- spec/stats/stats_spec.rb
|
227
|
-
- spec/stats/subuser_spec.rb
|
228
|
-
- spec/templates/templates_spec.rb
|
229
|
-
- spec/templates/versions_spec.rb
|
230
236
|
has_rdoc:
|