send_with_us 1.12.1 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE +7 -0
- data/CHANGELOG.md +10 -8
- data/README.md +6 -0
- data/lib/send_with_us/api.rb +4 -0
- data/lib/send_with_us/version.rb +1 -1
- data/test/lib/send_with_us/api_test.rb +7 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd68ba634d4a5e56d9191ea1d8db8180cf47aa79
|
4
|
+
data.tar.gz: 5cea81fa62102ca3698e846c4ea00aef8d3e1230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6df92e12c6d1d3191fe042d8d18d115c38722084ad7125684e925fd5f4cbccd2eadecbb216a674d5de03a5de80e32e1356d3ce6b739970172fcb8d32d918c14
|
7
|
+
data.tar.gz: 715b5bf40c68b413141012c82b0f70e0ba5333345289cb7aed64c2c4de51a886f158c48d30eb11b98dc6bcc74df57a8a46c4090446a8be31e57b7d1b0c6dcd53
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
-
1.
|
2
|
-
1.
|
3
|
-
1.11.
|
4
|
-
1.11.
|
5
|
-
1.11.
|
6
|
-
1.11.
|
7
|
-
1.
|
8
|
-
1.
|
1
|
+
1.13.0 - Add support to get customer details
|
2
|
+
1.12.0 - Customer logs endpoint added and optional parameters for logs fixed when no options sent
|
3
|
+
1.11.5 - Added tags to drip campaign activations
|
4
|
+
1.11.4 - Added optional parameters to customer_create
|
5
|
+
1.11.3 - Fix bug in customer remove method where arguments were empty
|
6
|
+
1.11.2 - Fix bug in logs method where options weren't being respected
|
7
|
+
1.11.1 - Fix typo in group method
|
8
|
+
1.11.0 - Add template create/update methods as well as group create/update methods
|
9
|
+
1.10.2 - Include render parameter on locale
|
10
|
+
1.10.1 - Tag support, error base class, logs method
|
9
11
|
1.9.0 - Locale support. Introduce send\_email(). Deprecate send\_with().
|
10
12
|
1.8.0 - Tags support for send\_with
|
11
13
|
1.7.0 -
|
data/README.md
CHANGED
data/lib/send_with_us/api.rb
CHANGED
@@ -248,6 +248,10 @@ module SendWithUs
|
|
248
248
|
SendWithUs::ApiRequest.new(@configuration).post(endpoint, payload)
|
249
249
|
end
|
250
250
|
|
251
|
+
def customer_get(email)
|
252
|
+
SendWithUs::ApiRequest.new(@configuration).get("customers/#{email}")
|
253
|
+
end
|
254
|
+
|
251
255
|
def customer_create(email, data = {}, locale = nil, groups = [])
|
252
256
|
payload = {email: email}
|
253
257
|
|
data/lib/send_with_us/version.rb
CHANGED
@@ -94,4 +94,11 @@ describe SendWithUs::Api do
|
|
94
94
|
it { subject.start_on_drip_campaign(email, drip_campaign_id, {}, locale, tags) }
|
95
95
|
end
|
96
96
|
end
|
97
|
+
|
98
|
+
describe '#customer_get' do
|
99
|
+
let(:email) {'customer@example.com'}
|
100
|
+
before { SendWithUs::ApiRequest.any_instance.expects(:get).with("customers/#{email}") }
|
101
|
+
|
102
|
+
it { subject.customer_get(email) }
|
103
|
+
end
|
97
104
|
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.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Harris
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -63,6 +63,7 @@ executables: []
|
|
63
63
|
extensions: []
|
64
64
|
extra_rdoc_files: []
|
65
65
|
files:
|
66
|
+
- ".github/ISSUE_TEMPLATE"
|
66
67
|
- ".gitignore"
|
67
68
|
- ".travis.yml"
|
68
69
|
- CHANGELOG.md
|