effective_mailchimp 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_mailchimp/version.rb +1 -1
- data/lib/effective_mailchimp.rb +8 -0
- 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: 5cf2d88e8b2f00becc08815e465620acf595af2f94b2f4e17b181fdf3b31ab8c
|
4
|
+
data.tar.gz: '09e182375468981d4011eb7719ab31fd958eec207b6d233aff869395d6b63c3c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afd8bd97b2234900b447c395ddb6cef941b08b1bc3c611151732d6fd60ceedcb3741c7ac1452f05be4ac5293e81d31c017422285bb79980e9b6a68dbd6ecf9d0
|
7
|
+
data.tar.gz: 14e816947972b23155640a57844d2e58a285208f0c013a40805f08ca5f9cce960ddd9b807300bcc874d8326e703f8eee3f05760e78fcbc8dd40b00a7d4d80c10
|
data/lib/effective_mailchimp.rb
CHANGED
@@ -31,6 +31,14 @@ module EffectiveMailchimp
|
|
31
31
|
api_key.blank?
|
32
32
|
end
|
33
33
|
|
34
|
+
def self.lists_present?
|
35
|
+
Effective::MailchimpList.all.count > 0
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.lists_blank?
|
39
|
+
Effective::MailchimpList.all.count == 0
|
40
|
+
end
|
41
|
+
|
34
42
|
def self.User
|
35
43
|
klass = user_class_name.constantize if user_class_name.present?
|
36
44
|
klass ||= Tenant.User if defined?(Tenant)
|
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.8.
|
4
|
+
version: 0.8.1
|
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: 2024-
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|