simple_spark 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 16ba8873c00d42cecd527635b7f551c03e357080
4
- data.tar.gz: 5c2d0465090b9d068ed1761879b05a46871722f5
3
+ metadata.gz: 033a53e16f648e2adb8f809ba21ddc399240c41c
4
+ data.tar.gz: 0ff0164603265675973fc625caeeb55d64c9cc3f
5
5
  SHA512:
6
- metadata.gz: 639c9ad49a6277585ce70ccb4dd19b5369d2c5f98cc2872539348305c3c0e1160586c0df18c09b26bd6789a6e0f01fdbbbd34cfb8f6fd1cbf38b065ffff367c5
7
- data.tar.gz: 9864262d473c0a460a85fe8580160060feeb2a8bb382d50b142268b7490c62b491219f2527761aca101edbed9c51588104a5c05ea444ba6dce1d6f0bce64b35e
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 is somewhat lacking in functionality, though with the demise of Mandrill it seems SparkPost may have decided to restart development on it.
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
- The official gem currently only supports the send_message (create) method of /transmissions and it does it with a limited argument set. As it uses method parameters for each of the arguments it supports, it is not possible to use all the functionality the SparkPost API has. This gem will allow passing the parameters as hashes, allowing you to directly copy an API example into code and take full advantage of all the API functions.
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
- ## Contributing
510
+ ## Changelog
511
+
512
+ ### 0.0.4
513
+
514
+ - Merged pull request to fix Rails development check for debug
510
515
 
511
- Not right now, but in time ...
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`)
@@ -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 = !(defined?(Rails) && Rails.env.development?).nil?
19
+ rails_development = true & defined?(Rails) && Rails.env.development?
20
20
 
21
21
  @debug = options[:debug].nil? ? rails_development : options[:debug]
22
22
 
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
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: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jak Charlton