simple_spark 0.0.3 → 0.0.4
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 +15 -4
- data/lib/simple_spark/client.rb +1 -1
- data/lib/simple_spark/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 033a53e16f648e2adb8f809ba21ddc399240c41c
|
4
|
+
data.tar.gz: 0ff0164603265675973fc625caeeb55d64c9cc3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a19340282526d9e2cbb280d71db1b827f079f7ba935858c9477fb91cd53191329d740f987584bdf570facbca725a5a76e00e88a1ab65aa742916582ea72b25fe
|
7
|
+
data.tar.gz: 9907ad59779cd9b7cf63dbaa388133fa6d2fe795f0261cf501a2fe001632e9ed13522cc3df4ef7b0199c9c4f1834fada0096eb216297381712464cc26072d2eb
|
data/README.md
CHANGED
@@ -23,15 +23,16 @@ Or install it yourself as:
|
|
23
23
|
```
|
24
24
|
$ gem install simple_spark
|
25
25
|
```
|
26
|
+
|
26
27
|
## Usage
|
27
28
|
|
28
29
|
### Why?
|
29
30
|
|
30
|
-
The official gem
|
31
|
+
The official gem was somewhat lacking in functionality, though with the demise of Mandrill it seems SparkPost has decided to restart development on it.
|
31
32
|
|
32
33
|
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.
|
33
34
|
|
34
|
-
|
35
|
+
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
|
35
36
|
|
36
37
|
### Status
|
37
38
|
|
@@ -506,9 +507,19 @@ simple_spark.templates.delete(yourtemplateid)
|
|
506
507
|
|
507
508
|
<a href="https://developers.sparkpost.com/api/#/reference/templates/delete" target="_blank">see SparkPost API Documentation</a>
|
508
509
|
|
509
|
-
##
|
510
|
+
## Changelog
|
511
|
+
|
512
|
+
### 0.0.4
|
513
|
+
|
514
|
+
- Merged pull request to fix Rails development check for debug
|
510
515
|
|
511
|
-
|
516
|
+
### 0.0.3
|
517
|
+
|
518
|
+
- Breaking change: client paramaters are now a hash of options instead of ordered params
|
519
|
+
- Added Subaccount support to client
|
520
|
+
- Added Headers support to client
|
521
|
+
|
522
|
+
## Contributing
|
512
523
|
|
513
524
|
1. Fork it ( https://github.com/leadmachineapp/simple_spark/fork )
|
514
525
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/lib/simple_spark/client.rb
CHANGED
@@ -16,7 +16,7 @@ module SimpleSpark
|
|
16
16
|
fail Exceptions::InvalidConfiguration.new, 'You must provide a SparkPost base path' unless @base_path # this should never occur unless the default above is changed
|
17
17
|
fail Exceptions::InvalidConfiguration.new, 'The headers options provided must be a valid Hash' if @headers && !@headers.is_a?(Hash)
|
18
18
|
|
19
|
-
rails_development =
|
19
|
+
rails_development = true & defined?(Rails) && Rails.env.development?
|
20
20
|
|
21
21
|
@debug = options[:debug].nil? ? rails_development : options[:debug]
|
22
22
|
|
data/lib/simple_spark/version.rb
CHANGED