simple_spark 1.0.2 → 1.0.3

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: 87cc7e24b5f20c589dc7622c84ca759a66b130ce
4
- data.tar.gz: 5d5a3e6eb553d94d27db7ddb95dc5d79ff4f1bac
3
+ metadata.gz: 987fbf9d3e51b544aa33eae28f83e65708b36a33
4
+ data.tar.gz: 38f6a9f0ca695c79904a72cb5d2cdd8dc007d8c7
5
5
  SHA512:
6
- metadata.gz: c9af00dcf83ff0cc059499d278b92e822c3e47d78c4c20469db97ad362b4d89c4e790c262db8e3a4a162f0452089241615b6ca3d3fec8d445a19a97a28815a97
7
- data.tar.gz: a2cc037c27a0db41072f920036c65e46d55e25df97c75aeb9a53ce5b3b21282d992dda80d057beb294cbac5d488db939683540ef4da4a6ec061dc9beeb6a2257
6
+ metadata.gz: ef0589adda9275e41f1781ba27c1c6ec774ea8a6e0ad27ee469b9134bfece252e6f79117b744f69468b9df89a9e7ea7e3a301bbdc32e9d270f2f3eb9878fc7f9
7
+ data.tar.gz: afab1c06b5387fde2cb2646e6a588b2f28629f897374a641b9870035b876d44034496e2b52946ed1abaf97028f48953e904c411d05f7990b149dd3669fd4673a
data/.travis.yml CHANGED
@@ -2,8 +2,7 @@ language: ruby
2
2
  cache: bundler
3
3
 
4
4
  rvm:
5
- - jruby
6
- - 2.2.0
5
+ - 2.2.2
7
6
 
8
7
  script: 'bundle exec rake'
9
8
 
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
@@ -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.to_json unless body_values.empty?
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', query_values: { domain: domain_name })
23
+ @client.call(method: :post, path: 'inbound-domains', body_values: { domain: domain_name })
24
24
  end
25
25
 
26
26
  # Retrieve an inbound domain
@@ -1,3 +1,3 @@
1
1
  module SimpleSpark
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
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: 1.0.2
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-05-26 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json