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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a96b51fcc2cf29e3e393dee5c3e94b577add066b
4
- data.tar.gz: e66ccd7a68abf57ad2e6e790884ef7f0278c2807
3
+ metadata.gz: 3258b53e5af5d8dc512b9b30d8fe8c4c6f381f78
4
+ data.tar.gz: df61638ea93ddf1e7ce167aed6c9a906cf7af366
5
5
  SHA512:
6
- metadata.gz: 64d0a1efc1f82d8ba7ad4df2bb8cf6338c3f2d122bc9ebb4317c81e01af3fd1ae74ecda850c01f9863839a4849e37410e4b696dddc73d1130b63d25cd5d03cf7
7
- data.tar.gz: d4c377258d87e1af223709719538b1fcd5b24eaa618d944d799d7b29ab35952f09a3eff21a6a2177d28d29ddba569c43fb7d1eca74086161d5b142322e3e7f3d
6
+ metadata.gz: 8e176a897b019355b2e6298b905341af01c145f9edba9f7e00f432eece08b8056cf0d4f92c723b94011896508ed4d1baa0c1845833cda8326348a41d09e28dd4
7
+ data.tar.gz: 103fa089e43fb08452caad4d3dc1c53a18b0ca8e5c3958f94fee3e925c669aecb1ba4d40feb8386eab8c9621c39ce02dcc64b88fe7137a205dcb1bb7fb5b4e1e
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Maropost
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
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.7.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-10-20 00:00:00.000000000 Z
22
+ date: 2017-11-08 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: rest-client