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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32a13cdd78561b5a2f7baaffbd7b0da8bfff979922f02fb267b63edff1b41c3d
4
- data.tar.gz: 2eead38fe60a07bf6afadf1934e2b27345707721cb64f4d1468c6ea4f3b1dae9
3
+ metadata.gz: ff63289c1d42723d828b53b42418946341486987e3bd09d83392a5d6d93ea9fa
4
+ data.tar.gz: 077c4983bcb3f7dd7de0d34c7618612b7ff6676a97a37ac50e64c08be112e612
5
5
  SHA512:
6
- metadata.gz: a026c0f9704d54796170f8ace279292ae2693061c7f0898d64bde1cb0620129aeb62e8a5b51c0f7d65addc07a8b9ecd0a2c1a5522fbd410c8869879c87385804
7
- data.tar.gz: 8720d54997bcb0872f88a8d7858ea80685114aefa9b744bd407182efc5ad89290c96c2d1c1513c32993c6face9ea958dac9cdd60c472b63fcd95eafc38055937
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
- ## Update from SparkPost
5
+ ## What?
6
6
 
7
- Posted in the SparkPost Announcements channel on 17th May 2016
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 have now abandoned that as of 17th May 2016
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.neekme.com',
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@neekme.com", "subject"=>"Summer deals", "html"=>"<b>Check out these deals!</b>"} }
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.neekme.com',
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
- # Or to use a template, change the content key to be:
40
- # content: { template_id: 'first-template-id' }
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)
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '1.0.10'
2
+ VERSION = '1.0.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_spark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jak Charlton