simple_spark 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: cd6a304f9cf62e7b3e31cc081edc78ef6483c87e
4
- data.tar.gz: fd46ee68b9632bd09c4a010430062e4d3d484cbf
3
+ metadata.gz: 94e0ab142551cdc61a74cba587efde10c76ab7ad
4
+ data.tar.gz: fb6d87c9ddd7a35d1b70c9437d544b13b19aed7f
5
5
  SHA512:
6
- metadata.gz: 2b9c0c82b7d4fb44ae26e84dfc7c64e098d86234fd184d7effb8b117bf5e9e58a8a479d2e70ef93da50aa5ff63f97e64723bf30114ae5ac3d36454cad1e909cf
7
- data.tar.gz: 6801e27cd690e052efb30e77e7947008d4850e44cc31ebad219cf4544ae9f828b0eab88d47843cdd0205de9bcd3f799011145f61f481539f688ccf0705ed274e
6
+ metadata.gz: 7417207ecb402bf9a479f010fbb58619f086d022951ac30e0b2eb6b8aee7559d7fa40f7e61eebde6ebf7d0c4984fd202b399214aea093eabef98ef3acf6367c6
7
+ data.tar.gz: ad4fab404d329aeb17979174aba4fd7cc933ad8f611d80609763aa788df354af9c7813c5e37fda7511209d205bbe3a7597ef6cb507e3dc1b94286201f50b9d7f
data/README.md CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  ## Update from SparkPost
6
6
 
7
- 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.
8
-
9
7
  Posted in the SparkPost Announcements channel on 17th May 2016
10
8
 
11
- > 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. If you’re looking for an alternative, take a look at some of these repositories: https://github.com/search?l=Ruby&q=sparkpost&type=Repositories&utf8=%E2%9C%93, including ​*simple_spark*​ by @jakcharlton
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.
12
12
 
13
13
  ## Installation
14
14
 
@@ -34,11 +34,9 @@ $ gem install simple_spark
34
34
 
35
35
  ### Why?
36
36
 
37
- The official gem was somewhat lacking in functionality, though with the demise of Mandrill it seems SparkPost has decided to restart development on it.
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
38
38
 
39
- But, not being in a mood to wait, and as we would have to write wrappers around all the functions we would need anyway, it seemed much easier to write the wrapper as a gem and allow others to use it too.
40
-
41
- Development on the offical gem steams ahead, but I still prefer the more 'ruby-like' nature of this approach and the lack of such tight depenedency on the Sparkpost API
39
+ 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.
42
40
 
43
41
  ### Status
44
42
 
@@ -717,15 +715,19 @@ simple_spark.templates.delete(yourtemplateid)
717
715
 
718
716
  ## Changelog
719
717
 
718
+ ### 1.0.1
719
+
720
+ Suppress Excon warning for using :debug parameter
721
+
720
722
  ### 1.0.0
721
723
 
722
724
  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.
723
725
 
724
- ### 0.013
726
+ ### 0.0.13
725
727
 
726
728
  Adding status error code to message as SparkPost uses a wide range of status codes
727
729
 
728
- ### 0.012
730
+ ### 0.0.12
729
731
 
730
732
  Check :progname before assigning
731
733
 
@@ -771,6 +773,8 @@ Check :progname before assigning
771
773
 
772
774
  ## Contributing
773
775
 
776
+ Passing tests are encouraged going forwards, and generally code should follow most of the standard rules that Rubocop checks for.
777
+
774
778
  1. Fork it ( https://github.com/leadmachineapp/simple_spark/fork )
775
779
  2. Create your feature branch (`git checkout -b my-new-feature`)
776
780
  3. Commit your changes (`git commit -am 'Add some feature'`)
@@ -25,7 +25,10 @@ module SimpleSpark
25
25
 
26
26
  @debug = opts[:debug].nil? ? rails_development : opts[:debug]
27
27
 
28
- @session = Excon.new(@api_host, debug: @debug)
28
+ # switch debug params, allow for old and new parameters and supress Excon warning
29
+ debug_options = Excon::VALID_REQUEST_KEYS.any? { |k| k == :debug } ? { debug: @debug } : { debug_request: @debug, debug_response: @debug }
30
+
31
+ @session = Excon.new(@api_host, debug_options)
29
32
  end
30
33
 
31
34
  def call(opts)
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jak Charlton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json