maropost 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maropost/api.rb +10 -0
- data/lib/maropost/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3258b53e5af5d8dc512b9b30d8fe8c4c6f381f78
|
4
|
+
data.tar.gz: df61638ea93ddf1e7ce167aed6c9a906cf7af366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e176a897b019355b2e6298b905341af01c145f9edba9f7e00f432eece08b8056cf0d4f92c723b94011896508ed4d1baa0c1845833cda8326348a41d09e28dd4
|
7
|
+
data.tar.gz: 103fa089e43fb08452caad4d3dc1c53a18b0ca8e5c3958f94fee3e925c669aecb1ba4d40feb8386eab8c9621c39ce02dcc64b88fe7137a205dcb1bb7fb5b4e1e
|
data/lib/maropost/api.rb
CHANGED
@@ -53,6 +53,16 @@ module Maropost
|
|
53
53
|
contact
|
54
54
|
end
|
55
55
|
|
56
|
+
def change_email(old_email, new_email)
|
57
|
+
contact = find(old_email)
|
58
|
+
|
59
|
+
if contact.present?
|
60
|
+
contact = update(Maropost::Contact.new(id: contact.id, email: new_email))
|
61
|
+
end
|
62
|
+
|
63
|
+
contact
|
64
|
+
end
|
65
|
+
|
56
66
|
private
|
57
67
|
|
58
68
|
def create_or_update_payload(contact)
|
data/lib/maropost/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maropost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -19,7 +19,7 @@ authors:
|
|
19
19
|
autorequire:
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
|
-
date: 2017-
|
22
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: rest-client
|