simple_spark 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -8
- data/lib/simple_spark/endpoints/templates.rb +1 -1
- data/lib/simple_spark/endpoints/transmissions.rb +3 -3
- data/lib/simple_spark/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff63289c1d42723d828b53b42418946341486987e3bd09d83392a5d6d93ea9fa
|
4
|
+
data.tar.gz: 077c4983bcb3f7dd7de0d34c7618612b7ff6676a97a37ac50e64c08be112e612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e304b07a4c3e29f76470a6e6c0e091790d7bd3ee3dca93ec7dd1a4b144f470cef4c41c4375c98c28c652fb430171d551b1026ad09df2ba53db8bea0a0f6988ac
|
7
|
+
data.tar.gz: 3e68974d701b05bde6302835be911b84b70a70ce87f28286ce4009fa14319cb5d7bb30af9943dee4b08fa7a170eda1fc49cfb601d700921d6dc992a6d0b926ec
|
data/README.md
CHANGED
@@ -2,13 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/leadmachineapp/simple_spark.png?branch=master)](https://travis-ci.org/leadmachineapp/simple_spark) [![Gem Version](https://badge.fury.io/rb/simple_spark.svg)](https://badge.fury.io/rb/simple_spark)
|
4
4
|
|
5
|
-
##
|
5
|
+
## What?
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
> Due to incredible support and contributions from the community, we will be discontinuing support of the official SparkPost ruby client library as of May 17, 2016.
|
10
|
-
|
11
|
-
As SparkPost have now stopped development on their own gem, and have recommended this one as being a better alternative, bumping version to 1.0.0 - the code has been running in production for a while now and seems stable and near feature complete.
|
7
|
+
The simplest and cleanest way to access the SparkPost API from Ruby or from Rails.
|
12
8
|
|
13
9
|
## Installation
|
14
10
|
|
@@ -34,7 +30,7 @@ $ gem install simple_spark
|
|
34
30
|
|
35
31
|
### Why?
|
36
32
|
|
37
|
-
The official gem was somewhat lacking in functionality, though with the demise of Mandrill it seems SparkPost decided to restart development on it, they
|
33
|
+
The official gem was somewhat lacking in functionality, though with the demise of Mandrill it seems SparkPost decided to restart development on it, they abandoned that as of 17th May 2016
|
38
34
|
|
39
35
|
As we would have to write wrappers around all the functions we would need for our app to use SparkPost anyway, it seemed much easier to write the wrapper as a gem and allow others to use it too.
|
40
36
|
|
@@ -298,7 +294,7 @@ Create a new Transmission
|
|
298
294
|
properties = {
|
299
295
|
options: { open_tracking: true, click_tracking: true },
|
300
296
|
campaign_id: 'christmas_campaign',
|
301
|
-
return_path: 'bounces-christmas-campaign@sp.
|
297
|
+
return_path: 'bounces-christmas-campaign@sp.yourdomain.com',
|
302
298
|
metadata: {user_type: 'students'},
|
303
299
|
substitution_data: { sender: 'Big Store Team' },
|
304
300
|
recipients: [
|
@@ -902,6 +898,7 @@ simple_spark.recipient_lists.delete(your_list_id)
|
|
902
898
|
|
903
899
|
## Changelog
|
904
900
|
|
901
|
+
### 1.0.10 / 1.0.11 Minor documentation updates
|
905
902
|
|
906
903
|
### 1.0.9
|
907
904
|
|
@@ -5,7 +5,7 @@ module SimpleSpark
|
|
5
5
|
# @note Sample Template
|
6
6
|
# { "id"=>"102293692714480130", "name"=>"Summer Sale!", "description"=>"", "published"=>false, "options"=>{},
|
7
7
|
# "last_update_time"=>"2016-03-02T22:49:23+00:00",
|
8
|
-
# "content"=>{"from"=>"marketing@
|
8
|
+
# "content"=>{"from"=>"marketing@yourdomain.com", "subject"=>"Summer deals", "html"=>"<b>Check out these deals!</b>"} }
|
9
9
|
class Templates
|
10
10
|
attr_accessor :client
|
11
11
|
|
@@ -18,7 +18,7 @@ module SimpleSpark
|
|
18
18
|
# properties = {
|
19
19
|
# options: { open_tracking: true, click_tracking: true },
|
20
20
|
# campaign_id: 'christmas_campaign',
|
21
|
-
# return_path: 'bounces-christmas-campaign@sp.
|
21
|
+
# return_path: 'bounces-christmas-campaign@sp.yourdomain.com',
|
22
22
|
# metadata: {user_type: 'students'},
|
23
23
|
# substitution_data: { sender: 'Big Store Team' },
|
24
24
|
# recipients: [
|
@@ -36,8 +36,8 @@ module SimpleSpark
|
|
36
36
|
# }
|
37
37
|
# }
|
38
38
|
#
|
39
|
-
#
|
40
|
-
#
|
39
|
+
# Or to use a template, change the content key to be:
|
40
|
+
# content: { template_id: 'first-template-id' }
|
41
41
|
def create(values, num_rcpt_errors = nil)
|
42
42
|
query_params = num_rcpt_errors.nil? ? {} : { num_rcpt_errors: num_rcpt_errors }
|
43
43
|
@client.call(method: :post, path: 'transmissions', body_values: values, query_values: query_params)
|
data/lib/simple_spark/version.rb
CHANGED