send_with_us 1.11.3 → 1.11.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: 79ac0aca6c99298e6c95599da2722be08d43aa9c
4
- data.tar.gz: e320bf865200f57906863e546bde2204f872839c
3
+ metadata.gz: a778d5a9ab417bc59a0d28cfca768ae2d2b7e302
4
+ data.tar.gz: 62955b70d06e0290e345f2722221c96c4b01e08f
5
5
  SHA512:
6
- metadata.gz: 5262a406852d0b71f8f82a1adb757148e982b53600a1798d061e3709b55cf067f781dd6e8d31f46b2442c2b9048121eeb3600eaf6377f4068da306717ff746a8
7
- data.tar.gz: cb63cd9f71b5d967b8912e4114c06751f33f20cf749e1c9defe78a0cb1126c40bcbc7a1b8763dd327fd69d7d0b33a024ea9a7f43d1ea19b5432fb887c33be716
6
+ metadata.gz: 7e07c1dbbb70084f7643cf6d8950334e9cad0e183605c315bac4b3f3f6ef77fa01c9cc06281a0836924467fc65707d03c3a8a2df014277dfc857f70ef68f17c7
7
+ data.tar.gz: 4f97e49ab2e8be40a8b63c990f3eb802c87078a2d3831fa5a79ce176800422d7b22478dc919f22220df08de5fad5c07d3a741a8b6cf19e202899eef0852aa64c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,4 @@
1
+ 1.11.4 - added optional parameters to customer_create
1
2
  1.11.3 - fix bug in customer remove method where arguments were empty
2
3
  1.11.2 - fix bug in logs method where options weren't being respected
3
4
  1.11.1 - fix typo in group method
@@ -245,12 +245,12 @@ module SendWithUs
245
245
  SendWithUs::ApiRequest.new(@configuration).post(endpoint, payload)
246
246
  end
247
247
 
248
- def customer_create(email, data = {})
248
+ def customer_create(email, data = {}, locale = nil, groups = [])
249
249
  payload = {email: email}
250
250
 
251
- if data && data.any?
252
- payload[:data] = data
253
- end
251
+ payload[:data] = data if data && data.any?
252
+ payload[:locale] = locale if locale
253
+ payload[:groups] = groups if groups && groups.any?
254
254
 
255
255
  payload = payload.to_json
256
256
  endpoint = "customers"
@@ -1,3 +1,3 @@
1
1
  module SendWithUs
2
- VERSION = '1.11.3'
2
+ VERSION = '1.11.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: send_with_us
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.3
4
+ version: 1.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Harris
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-21 00:00:00.000000000 Z
13
+ date: 2016-01-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.4.6
106
+ rubygems_version: 2.4.5
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: SendWithUs.com Ruby Client