maropost 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3258b53e5af5d8dc512b9b30d8fe8c4c6f381f78
4
- data.tar.gz: df61638ea93ddf1e7ce167aed6c9a906cf7af366
3
+ metadata.gz: 959764ab2655a270baa41118e055d4aa0dbf3793
4
+ data.tar.gz: 6ab1aa5bade2a4a01811d0a0c404f04e1734d5a3
5
5
  SHA512:
6
- metadata.gz: 8e176a897b019355b2e6298b905341af01c145f9edba9f7e00f432eece08b8056cf0d4f92c723b94011896508ed4d1baa0c1845833cda8326348a41d09e28dd4
7
- data.tar.gz: 103fa089e43fb08452caad4d3dc1c53a18b0ca8e5c3958f94fee3e925c669aecb1ba4d40feb8386eab8c9621c39ce02dcc64b88fe7137a205dcb1bb7fb5b4e1e
6
+ metadata.gz: a7a86cd7b151395ca9a03342879058ebd048bc40377c6237c32307cf0c68420917c7a790f1da8d4c930eecf13263eaef07ad92b6943af1d2573ae12ac1e448b1
7
+ data.tar.gz: 4a60abc715f41ebb41c66927e6a5a3b930c14859c37210df40eef4814fe57e7391cdf9e70e54cd23214ed11c423daf456a684fee8c43df0c618e70aa13f1b114
data/lib/maropost/api.rb CHANGED
@@ -57,7 +57,8 @@ module Maropost
57
57
  contact = find(old_email)
58
58
 
59
59
  if contact.present?
60
- contact = update(Maropost::Contact.new(id: contact.id, email: new_email))
60
+ contact.email = new_email
61
+ contact = update(contact)
61
62
  end
62
63
 
63
64
  contact
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Maropost
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
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.8.0
4
+ version: 0.8.1
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-11-08 00:00:00.000000000 Z
22
+ date: 2017-11-09 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: rest-client