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 +4 -4
- data/README.md +13 -9
- data/lib/simple_spark/client.rb +4 -1
- data/lib/simple_spark/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94e0ab142551cdc61a74cba587efde10c76ab7ad
|
|
4
|
+
data.tar.gz: fb6d87c9ddd7a35d1b70c9437d544b13b19aed7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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'`)
|
data/lib/simple_spark/client.rb
CHANGED
|
@@ -25,7 +25,10 @@ module SimpleSpark
|
|
|
25
25
|
|
|
26
26
|
@debug = opts[:debug].nil? ? rails_development : opts[:debug]
|
|
27
27
|
|
|
28
|
-
|
|
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)
|
data/lib/simple_spark/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|