simple_spark 1.0.2 → 1.0.3
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/.travis.yml +1 -2
- data/README.md +5 -0
- data/lib/simple_spark/client.rb +1 -1
- data/lib/simple_spark/endpoints/inbound_domains.rb +1 -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: 987fbf9d3e51b544aa33eae28f83e65708b36a33
|
4
|
+
data.tar.gz: 38f6a9f0ca695c79904a72cb5d2cdd8dc007d8c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0589adda9275e41f1781ba27c1c6ec774ea8a6e0ad27ee469b9134bfece252e6f79117b744f69468b9df89a9e7ea7e3a301bbdc32e9d270f2f3eb9878fc7f9
|
7
|
+
data.tar.gz: afab1c06b5387fde2cb2646e6a588b2f28629f897374a641b9870035b876d44034496e2b52946ed1abaf97028f48953e904c411d05f7990b149dd3669fd4673a
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -715,6 +715,11 @@ simple_spark.templates.delete(yourtemplateid)
|
|
715
715
|
|
716
716
|
## Changelog
|
717
717
|
|
718
|
+
### 1.0.3
|
719
|
+
|
720
|
+
Using JSON.generate instead of .to_json (https://github.com/leadmachineapp/simple_spark/pull/11)
|
721
|
+
Fixing inbound domains bug (https://github.com/leadmachineapp/simple_spark/pull/9)
|
722
|
+
|
718
723
|
### 1.0.2
|
719
724
|
|
720
725
|
Add sparkpost error code into exception message to allow more specific error handling
|
data/lib/simple_spark/client.rb
CHANGED
@@ -42,7 +42,7 @@ module SimpleSpark
|
|
42
42
|
|
43
43
|
path = "#{@base_path}#{path}"
|
44
44
|
params = { path: path, headers: headers }
|
45
|
-
params[:body] = body_values
|
45
|
+
params[:body] = JSON.generate(body_values) unless body_values.empty?
|
46
46
|
params[:query] = query_params unless query_params.empty?
|
47
47
|
|
48
48
|
if @debug
|
@@ -20,7 +20,7 @@ module SimpleSpark
|
|
20
20
|
# @param domain_name [String] the domain name to create
|
21
21
|
# @note See: https://developers.sparkpost.com/api/#/reference/inbound-domains/create-and-list
|
22
22
|
def create(domain_name)
|
23
|
-
@client.call(method: :post, path: 'inbound-domains',
|
23
|
+
@client.call(method: :post, path: 'inbound-domains', body_values: { domain: domain_name })
|
24
24
|
end
|
25
25
|
|
26
26
|
# Retrieve an inbound domain
|
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.3
|
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-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|