catarse_monkeymail 0.0.2 → 0.1.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8c10b2d656c25d1a87740a6a1db89f0626edcc5
|
|
4
|
+
data.tar.gz: 5c8c04851d06667855487dd077dd94c44855c3b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9b053d4cc053855fe2fc62d2b0234574af004d29c9c1abf7523fdc75f9abc3e939619ebaa57bba3651148a11ced6e23517149bff89f555bdf625d23502d59ce
|
|
7
|
+
data.tar.gz: 61dd7f826f713639ca2f6119861c882fcf216b2898dff898d87d3319f1d7d3bf470e8ce1a10d20376692ee23b4f77147951f6e3ecb8ebd92d2ba90c833284878
|
data/Gemfile.lock
CHANGED
|
@@ -17,7 +17,7 @@ module CatarseMonkeymail::ProjectConcern
|
|
|
17
17
|
private
|
|
18
18
|
|
|
19
19
|
def subscribe_to_list list_id
|
|
20
|
-
mailchimp.
|
|
20
|
+
mailchimp.lists.subscribe list_id, { email: self.user.email }, subscriber_args
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def subscriber_args
|
|
@@ -23,11 +23,11 @@ module CatarseMonkeymail::UserConcern
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def subscribe_to_newsletter_list
|
|
26
|
-
mailchimp.
|
|
26
|
+
mailchimp.lists.subscribe ::CatarseSettings[:mailchimp_list_id], { email: self.email }, { name: self.name }
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def unsubscribe_from_newsletter_list email_arg = self.email
|
|
30
|
-
mailchimp.
|
|
30
|
+
mailchimp.lists.unsubscribe ::CatarseMonkeymail[:mailchimp_list_id], { email: email_arg }
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
end
|