send_with_us 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/README.md +3 -18
- data/lib/send_with_us/version.rb +1 -1
- data/test/lib/send_with_us/api_test.rb +4 -4
- data/test/test_helper.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b4f011c520b1ac7dad2bdcdcec37d6ff1f2f28ed9fa37f769fe2a007f018bb8b
|
4
|
+
data.tar.gz: 6b4dcaa033c8d5664266295611b6d9f806a246cb8a9effeda0d9b017ca3ecc68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b3e38cdbdf61aca2c9a67eccdc3702dfcd506ed913215bf5f239165bd7f223dd2d521debf9fbfabdf88392a830f1ef4422e38e8521dd3d9ab61df73aa33a51
|
7
|
+
data.tar.gz: 9a116f73ce870f583a9999175fce0b054bb8c4ca102f1954ac3d5e2cc8e0bd745631119330745901dee84deb881e86475c3aade6afc0337eb9717fcdbe985ef6
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# Sendwithus Ruby Client
|
2
2
|
|
3
|
-
Ruby bindings for sending email via the
|
3
|
+
Ruby bindings for sending email via the [Sendwithus API](https://support.sendwithus.com/api/).
|
4
4
|
|
5
5
|
[sendwithus.com](http://sendwithus.com)
|
6
6
|
|
@@ -214,7 +214,7 @@ rescue => e
|
|
214
214
|
end
|
215
215
|
```
|
216
216
|
|
217
|
-
### Remove Customer from Drip
|
217
|
+
### Remove Customer from All Drip Campaigns
|
218
218
|
|
219
219
|
```ruby
|
220
220
|
require 'rubygems'
|
@@ -277,7 +277,6 @@ customer = obj.customer_get("visha@example.com")
|
|
277
277
|
### Create/Update a Customer
|
278
278
|
|
279
279
|
```ruby
|
280
|
-
customer_data = {:FirstName => "Visha"}
|
281
280
|
result = obj.customer_create("visha@example.com")
|
282
281
|
```
|
283
282
|
|
@@ -418,17 +417,3 @@ If you're receiving an error in the 400 response range follow these steps:
|
|
418
417
|
- Double check the data and ID's getting passed to Sendwithus
|
419
418
|
- Ensure your API key is correct
|
420
419
|
- Log and check the body of the response
|
421
|
-
|
422
|
-
|
423
|
-
## Internal
|
424
|
-
Build gem with
|
425
|
-
|
426
|
-
```bash
|
427
|
-
gem build send_with_us.gemspec
|
428
|
-
```
|
429
|
-
|
430
|
-
Publish gem with
|
431
|
-
|
432
|
-
```bash
|
433
|
-
gem push send_with_us-VERSION.gem
|
434
|
-
```
|
data/lib/send_with_us/version.rb
CHANGED
@@ -9,7 +9,7 @@ describe SendWithUs::Api do
|
|
9
9
|
SendWithUs::Api.configure { |config| config.api_key = @initializer_api_key }
|
10
10
|
end
|
11
11
|
|
12
|
-
it('configs') { SendWithUs::Api.new.configuration.api_key.must_equal @initializer_api_key }
|
12
|
+
it('configs') { _(SendWithUs::Api.new.configuration.api_key).must_equal @initializer_api_key }
|
13
13
|
end
|
14
14
|
|
15
15
|
describe '.configuration with custom' do
|
@@ -19,7 +19,7 @@ describe SendWithUs::Api do
|
|
19
19
|
SendWithUs::Api.configure { |config| config.api_key = @initializer_api_key }
|
20
20
|
end
|
21
21
|
|
22
|
-
it('configs') { SendWithUs::Api.new( api_key: @custom_api_key ).configuration.api_key.must_equal @custom_api_key }
|
22
|
+
it('configs') { _(SendWithUs::Api.new( api_key: @custom_api_key ).configuration.api_key).must_equal @custom_api_key }
|
23
23
|
end
|
24
24
|
|
25
25
|
describe '#customer_email_log' do
|
@@ -48,7 +48,7 @@ describe SendWithUs::Api do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
describe 'without log_id' do
|
51
|
-
it {
|
51
|
+
it { expect { subject.log }.must_raise ArgumentError }
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -61,7 +61,7 @@ describe SendWithUs::Api do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
describe 'without log_id' do
|
64
|
-
it {
|
64
|
+
it { expect { subject.log }.must_raise ArgumentError }
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
data/test/test_helper.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: 4.2.
|
4
|
+
version: 4.2.1
|
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:
|
15
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -109,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
|
113
|
-
rubygems_version: 2.4.5
|
112
|
+
rubygems_version: 3.0.6
|
114
113
|
signing_key:
|
115
114
|
specification_version: 4
|
116
115
|
summary: SendWithUs.com Ruby Client
|