sendgrid_ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -20
- data/lib/sendgrid_ruby/email.rb +2 -2
- data/lib/sendgrid_ruby/version.rb +1 -1
- data/test/sendgrid_ruby.rb +1 -1
- data/test/sendgrid_ruby/email.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06364480aba5e82ae0833a519cc500d938c431d2
|
4
|
+
data.tar.gz: baf6a86beea26f8575978331675f6acd12330327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a4bfa2d38e5e1420cf6ff6160197a190a46017b78007873e6316e755b2ec0228870cccece9affdc7f13a50f2be80d22d6f6dd7203a51b848c68c0886cf98e05
|
7
|
+
data.tar.gz: aaf851f1f5ea295b1105e8fe5cc8559187acbb4bf4f2a6cb8eee62e627f6c81e61d301282a7ae7cbae2556987e05be87e7bec80787918c96e2f605d95ff23e29
|
data/README.md
CHANGED
@@ -268,26 +268,6 @@ mail.add_to('foo@bar.com')
|
|
268
268
|
.add_filter("footer", "text/html", "<p style='color:red;'>Here is an HTML footer</p>")
|
269
269
|
```
|
270
270
|
|
271
|
-
### Scheduled send ###
|
272
|
-
|
273
|
-
You can specify delay to send. There are 2 parameters for delay sending.
|
274
|
-
|
275
|
-
#### send_all ####
|
276
|
-
```Ruby
|
277
|
-
mail = SendgridRuby::Email.new
|
278
|
-
localtime = Time.local(2014, 8, 29, 17, 56, 35)
|
279
|
-
mail.set_send_all(localtime)
|
280
|
-
```
|
281
|
-
|
282
|
-
#### send_each_at ####
|
283
|
-
```Ruby
|
284
|
-
mail = SendgridRuby::Email.new
|
285
|
-
localtime1 = Time.local(2014, 8, 29, 17, 56, 35)
|
286
|
-
localtime2 = Time.local(2013, 12, 31, 0, 0, 0)
|
287
|
-
localtime3 = Time.local(2015, 9, 1, 4, 5, 6)
|
288
|
-
mail.set_send_each_at([localtime1, localtime2, localtime3])
|
289
|
-
```
|
290
|
-
|
291
271
|
### Headers ###
|
292
272
|
|
293
273
|
You can add standard email message headers as necessary.
|
data/lib/sendgrid_ruby/email.rb
CHANGED
@@ -257,8 +257,8 @@ module SendgridRuby
|
|
257
257
|
@smtpapi.add_filter(filter_name, parameter_name, parameter_value)
|
258
258
|
end
|
259
259
|
|
260
|
-
def
|
261
|
-
@smtpapi.
|
260
|
+
def set_send_at(send_at)
|
261
|
+
@smtpapi.set_send_at(send_at)
|
262
262
|
end
|
263
263
|
|
264
264
|
def set_send_each_at(send_each_at)
|
data/test/sendgrid_ruby.rb
CHANGED
data/test/sendgrid_ruby/email.rb
CHANGED
@@ -357,13 +357,13 @@ class EmailTest < Test::Unit::TestCase
|
|
357
357
|
assert_equal('{"unique_args":{"sub_1":["val_1.1","val_1.2","val_1.3"],"sub_2":["val_2.1","val_2.2"],"sub_3":["val_3.1","val_3.2","val_3.3","val_3.4"],"sub_4":["val_4.1","val_4.2","val_4.3"],"uncle":"bob"}}', email.smtpapi.json_string)
|
358
358
|
end
|
359
359
|
|
360
|
-
def
|
360
|
+
def test_send_at
|
361
361
|
email = SendgridRuby::Email.new
|
362
362
|
|
363
363
|
localtime = Time.local(2014, 8, 29, 17, 56, 35)
|
364
|
-
email.
|
364
|
+
email.set_send_at(localtime)
|
365
365
|
|
366
|
-
assert_equal("{\"
|
366
|
+
assert_equal("{\"send_at\":\"#{localtime.to_i}\"}", email.smtpapi.json_string)
|
367
367
|
end
|
368
368
|
|
369
369
|
def test_send_each_at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wataru Sato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: smtpapi
|