simple_spark 0.0.12 → 0.0.13

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: f87ee5fe9498908dc32dd7a09ced5f3a0ce8489a
4
- data.tar.gz: 5293b713ba02aba0161d508b5388d9037c0bbe23
3
+ metadata.gz: 5e9c2da122d2d41c900d00bb0d1587fe65e3ab49
4
+ data.tar.gz: c843abe4ba0470e26e8d39ebaa2baae5ae6b8cbe
5
5
  SHA512:
6
- metadata.gz: 57ed9e829c4b562e5426474899a8b7a3a46cb2885dcd04adc5423d47f537c0d9300a2aa15d15ecd7295012275862c65b6b8a547a79c1339b2ad7bb0a52912acd
7
- data.tar.gz: 1aba81eba9d112f59449a9a3cf687eba29f2d8c0d13b52f82e7e5cba12df8b687cbaffe6df0567be0ff2741036d25f468d589b8d1cf1bb731952d2c0bb72ff2c
6
+ metadata.gz: af10decced5302a6f9157a302078e902ba050d9c25b0f4b0c023bc268d0e64d3e372557777b0a191caada9267ad4668a8bb8f645fdaad9577401eb057e5bd56a
7
+ data.tar.gz: 8be7810f707c5cd4a1bc3f7c807859f88911444587c91b5207b2862e39d9d4171c5712ff31d12c423cc2d189cf5dce2758fcd172dd737eb0ecee457dc8108efd
data/README.md CHANGED
@@ -711,6 +711,10 @@ simple_spark.templates.delete(yourtemplateid)
711
711
 
712
712
  ## Changelog
713
713
 
714
+ ### 0.013
715
+
716
+ Adding status error code to message as SparkPost uses a wide range of status codes
717
+
714
718
  ### 0.012
715
719
 
716
720
  Check :progname before assigning
@@ -16,7 +16,7 @@ module SimpleSpark
16
16
 
17
17
  def self.fail_with_exception_for_status(status, errors)
18
18
  exception = status_codes[status.to_s] || status_codes['default']
19
- fail exception.new(errors), errors.map { |e| "#{e['message']}" + (e['description'] ? ": #{e['description']}" : '') }.join(', ')
19
+ fail exception.new(errors), errors.map { |e| "#{e['message']} #{status} " + (e['description'] ? ": #{e['description']}" : '') }.join(', ')
20
20
  end
21
21
 
22
22
  def self.status_codes
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
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: 0.0.12
4
+ version: 0.0.13
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-02 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json