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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2822e1d9f8088444667948b69ce987f4a6a80843
4
- data.tar.gz: 1aefbb9b4bcf043b5edaa2efefcf3d9fd5c8cb3f
3
+ metadata.gz: 06364480aba5e82ae0833a519cc500d938c431d2
4
+ data.tar.gz: baf6a86beea26f8575978331675f6acd12330327
5
5
  SHA512:
6
- metadata.gz: 77e3c9cc65020b32798bd9aaa8df4b0e63888e12e62a0a8c0892e1f2865375bf05fdb770537a5cf7ec7b5c0801c38eb334055d30cc7c3848b0b528d25fca5dc1
7
- data.tar.gz: 320fc0652276780bef07dd8a4dcc81678da3dd3de20eb3e66203c1afe13f8d1226fde7ebac17a58de27d618fc7120e3599cff381673ec81d59a572d89690cbe5
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.
@@ -257,8 +257,8 @@ module SendgridRuby
257
257
  @smtpapi.add_filter(filter_name, parameter_name, parameter_value)
258
258
  end
259
259
 
260
- def set_send_all(send_all)
261
- @smtpapi.set_send_all(send_all)
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)
@@ -1,3 +1,3 @@
1
1
  module SendgridRuby
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -16,7 +16,7 @@ class SendgridRubyTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_version
19
- assert_equal("0.0.4", SendgridRuby::VERSION)
19
+ assert_equal("0.0.5", SendgridRuby::VERSION)
20
20
  end
21
21
 
22
22
  def test_initialize
@@ -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 test_send_all
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.set_send_all(localtime)
364
+ email.set_send_at(localtime)
365
365
 
366
- assert_equal("{\"send_all\":\"#{localtime.to_i}\"}", email.smtpapi.json_string)
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
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-03 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smtpapi