effective_mailchimp 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: b79356ccea893a1ee2ccc083ed29b747eabace0b22cda9bc78763ac9eff0874f
4
- data.tar.gz: c5d7f907fdb4e8c7e038df057c8e3917a7f6aa85c12570cd81fed6c45b84f31d
3
+ metadata.gz: f5e966f558a31774e2f2f1abc592ff6ebffa82a3efabe6aaad788e1542f17dec
4
+ data.tar.gz: 989488ef3d77922963d03875421008c25a1b81f0013b008d82ebfc78d894b554
5
5
  SHA512:
6
- metadata.gz: b1836f0b24aca7f3e1e46ee820ecf89b5755a892e64ddf96932c6d6098c3179af88ece786f46b7831e3eec8235b98eeb61baeec5d9d79e3c67f25db86a27cacd
7
- data.tar.gz: 40d8c3c96f42ef42ce8876069440f541c38122aa833cbe127251fcc567603e184829b66c81a1582c3a91f949d5a7e270c3fc6e6bbbf2f59a0b5913ceaa4bdfe7
6
+ metadata.gz: 11b18d328c459a1ee781a005ac806fb27336a4105cf169abe09958347d04b7f9b5ab11ec8a2d2e05facb6f5c6759afedb3e05e8e55a2184bc1b89f628ab75663
7
+ data.tar.gz: 3594f9d6d2289be321208181b40cec8602f76d4d63e665e435749c68f3d962221dcbaca355550027f762b1c6d96fa18358584f4a4eaad7699e8da81d2c6c5d0f
@@ -76,7 +76,7 @@ module Effective
76
76
  payload = {
77
77
  email_address: member.user.email,
78
78
  status: (member.subscribed ? 'subscribed' : 'unsubscribed'),
79
- merge_fields: merge_fields
79
+ merge_fields: merge_fields.delete_if { |k, v| v.blank? }
80
80
  }
81
81
 
82
82
  client.lists.add_list_member(member.mailchimp_list.mailchimp_id, payload)
@@ -91,7 +91,7 @@ module Effective
91
91
  payload = {
92
92
  email_address: member.user.email,
93
93
  status: (member.subscribed ? 'subscribed' : 'unsubscribed'),
94
- merge_fields: merge_fields.compact
94
+ merge_fields: merge_fields.delete_if { |k, v| v.blank? }
95
95
  }
96
96
 
97
97
  client.lists.update_list_member(member.mailchimp_list.mailchimp_id, member.email, payload)
@@ -1,3 +1,3 @@
1
1
  module EffectiveMailchimp
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_mailchimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-17 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails