send_with_us 1.11.3 → 1.11.4
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/CHANGELOG.md +1 -0
- data/lib/send_with_us/api.rb +4 -4
- data/lib/send_with_us/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a778d5a9ab417bc59a0d28cfca768ae2d2b7e302
|
|
4
|
+
data.tar.gz: 62955b70d06e0290e345f2722221c96c4b01e08f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e07c1dbbb70084f7643cf6d8950334e9cad0e183605c315bac4b3f3f6ef77fa01c9cc06281a0836924467fc65707d03c3a8a2df014277dfc857f70ef68f17c7
|
|
7
|
+
data.tar.gz: 4f97e49ab2e8be40a8b63c990f3eb802c87078a2d3831fa5a79ce176800422d7b22478dc919f22220df08de5fad5c07d3a741a8b6cf19e202899eef0852aa64c
|
data/CHANGELOG.md
CHANGED
data/lib/send_with_us/api.rb
CHANGED
|
@@ -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
|
-
|
|
253
|
-
|
|
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"
|
data/lib/send_with_us/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
106
|
+
rubygems_version: 2.4.5
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: SendWithUs.com Ruby Client
|