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 +4 -4
- data/app/models/effective/mailchimp_api.rb +2 -2
- data/lib/effective_mailchimp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e966f558a31774e2f2f1abc592ff6ebffa82a3efabe6aaad788e1542f17dec
|
4
|
+
data.tar.gz: 989488ef3d77922963d03875421008c25a1b81f0013b008d82ebfc78d894b554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
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.
|
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-
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|