cordial 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e7441c7be3b8d40d55e6bf5f9530d500e0ab45d
4
- data.tar.gz: af24dd2b9a7a9bea319fe0c2d3b7ea861f17c22c
3
+ metadata.gz: 173005820b79f9ce0a13a682ef3f18d1b1f741c5
4
+ data.tar.gz: df7a0d035bae3b43e2da586830dd0df8a587417b
5
5
  SHA512:
6
- metadata.gz: 5f8e5b68a67299f151f92d14388e6aa41b727e288631963329028b4c81b0a67e17f8adec52d71958b90d983a7e11a9354fae5a98f1e6edd3ff9f2f2a21a92d4c
7
- data.tar.gz: fb9101700b2f314d385f3a82e919e455cf36320bd004017c552fbdcc929a09675dd56eb9e053206139f62e95d88bd9dbb3c569a8897568fdd9fe14a77f0d8639
6
+ metadata.gz: a8e0cb1a93f75cc315c8e3d2a841ac3080d6cfd7132eeecdf98943fc86d60259527d2c7933e69b0752a1aef06b83bde105f26e86c407d7fb7dfe4f7479ef1a1d
7
+ data.tar.gz: 3d8f8441b4096efab3cae880ae532ef2d004fa7b819ad17df8d7c58a16e7189f36666eefbdb25f8189fed823867eb29ded1faec8aaec15249174554c3acbc445
@@ -54,7 +54,7 @@ module Cordial
54
54
  #
55
55
  # @example Response when orderID already exist on cordial.
56
56
  # {"error"=>true, "messages"=>"ID must be unique"}
57
- def self.create(id:, email:, purchase_date:, items:, link_id: '', mc_id: '')
57
+ def self.create(id:, email:, purchase_date:, items:, link_id: nil, mc_id: nil)
58
58
  body = {
59
59
  orderID: id,
60
60
  email: email,
@@ -62,8 +62,8 @@ module Cordial
62
62
  items: items
63
63
  }
64
64
 
65
- body[:linkID] = link_id unless link_id.empty?
66
- body[:mcID] = mc_id unless mc_id.empty?
65
+ body[:linkID] = link_id unless link_id.nil?
66
+ body[:mcID] = mc_id unless mc_id.nil?
67
67
 
68
68
  client.post('/orders', body: body.to_json)
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module Cordial
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cordial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty