simple_spark 1.0.9 → 1.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff21cc319280b3aa91e376df4209c374f097f8ce3a60bf4535b88de8dc58ba66
4
- data.tar.gz: a73d02452feeebf2be58c31a4a4b459203dd008cb1c60febfe9549235e1dc78e
3
+ metadata.gz: 32a13cdd78561b5a2f7baaffbd7b0da8bfff979922f02fb267b63edff1b41c3d
4
+ data.tar.gz: 2eead38fe60a07bf6afadf1934e2b27345707721cb64f4d1468c6ea4f3b1dae9
5
5
  SHA512:
6
- metadata.gz: a08557569f6794eabe52b57ce37063192aedc2ea84604dcdcf5e7032ed0ea50b2030092cd173675d647e146eac5ea9b3406e98ab3202405888dba0dc2f11c6cf
7
- data.tar.gz: d8a533270b9fcc2c01768a60a27260ecf11bb5a079607df40d4cd96ebf1f663851cc5265da6ef929552f118e1b09ac8574c8810821bafbd32c063f95257e1cea
6
+ metadata.gz: a026c0f9704d54796170f8ace279292ae2693061c7f0898d64bde1cb0620129aeb62e8a5b51c0f7d65addc07a8b9ecd0a2c1a5522fbd410c8869879c87385804
7
+ data.tar.gz: 8720d54997bcb0872f88a8d7858ea80685114aefa9b744bd407182efc5ad89290c96c2d1c1513c32993c6face9ea958dac9cdd60c472b63fcd95eafc38055937
data/README.md CHANGED
@@ -312,8 +312,10 @@ properties = {
312
312
  reply_to: 'Sales <sales@yourdomain.com>',
313
313
  headers: { 'X-Customer-CampaignID' => 'christmas_campaign' },
314
314
  text: 'Hi from {{sender}} ... this is a test, and here is your address {{address}}',
315
- html: '<p>Hi from {{sender}}</p<p>This is a test</p>'
315
+ html: '<p>Hi from {{sender}}</p><p>This is a test</p>'
316
316
  }
317
+ # Or to use a template, change the content key to be:
318
+ # content: { template_id: 'first-template-id' }
317
319
  }
318
320
 
319
321
  simple_spark.transmissions.create(properties)
@@ -32,9 +32,12 @@ module SimpleSpark
32
32
  # reply_to: 'Sales <sales@yourdomain.com>',
33
33
  # headers: { 'X-Customer-CampaignID' => 'christmas_campaign' },
34
34
  # text: 'Hi from {{sender}} ... this is a test, and here is your address {{address}}',
35
- # html: '<p>Hi from {{sender}}</p<p>This is a test</p>'
35
+ # html: '<p>Hi from {{sender}}</p><p>This is a test</p>'
36
36
  # }
37
37
  # }
38
+ #
39
+ # Or to use a template, change the content key to be:
40
+ # content: { template_id: 'first-template-id' }
38
41
  def create(values, num_rcpt_errors = nil)
39
42
  query_params = num_rcpt_errors.nil? ? {} : { num_rcpt_errors: num_rcpt_errors }
40
43
  @client.call(method: :post, path: 'transmissions', body_values: values, query_values: query_params)
@@ -52,7 +55,7 @@ module SimpleSpark
52
55
  query_params[:template_id] = template_id if template_id
53
56
  @client.call(method: :get, path: 'transmissions', query_values: query_params)
54
57
  end
55
-
58
+
56
59
  # Deletes all transmissions for a given campaign
57
60
  # @param campaign_id [String] specifies the campaign to delete transmissions for
58
61
  # @returns empty string
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_spark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jak Charlton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -105,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.7.7
108
+ rubygems_version: 3.0.4
110
109
  signing_key:
111
110
  specification_version: 4
112
111
  summary: A library for accessing the SparkPost REST API http://www.sparkpost.com