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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56caa6a3804ed54f997cb2a732022cb077c37ec186f2a42476b2433b59f80bab
4
- data.tar.gz: 51a5b095d91881d957c227c6f13155d78d3a9178aa3703982cf2fd4b8d92cd37
3
+ metadata.gz: 5cf2d88e8b2f00becc08815e465620acf595af2f94b2f4e17b181fdf3b31ab8c
4
+ data.tar.gz: '09e182375468981d4011eb7719ab31fd958eec207b6d233aff869395d6b63c3c'
5
5
  SHA512:
6
- metadata.gz: 246b57c7659cbb154db572309d4a886132cef6cdf9d1bd09e4cafd37fd15dfc2d109375a2c179173bf710c478fb71306b1dc69a0c57587a6d66c4286edf6b446
7
- data.tar.gz: 578e421f5e538bc705fcc0a4ab8290cd0adc4fae51388ddf941f934bbd4ea2c069eb13530d96c789ed4c8110d2e4ca5960a8274a1ae154e58cc30971a8722f3f
6
+ metadata.gz: afd8bd97b2234900b447c395ddb6cef941b08b1bc3c611151732d6fd60ceedcb3741c7ac1452f05be4ac5293e81d31c017422285bb79980e9b6a68dbd6ecf9d0
7
+ data.tar.gz: 14e816947972b23155640a57844d2e58a285208f0c013a40805f08ca5f9cce960ddd9b807300bcc874d8326e703f8eee3f05760e78fcbc8dd40b00a7d4d80c10
@@ -1,3 +1,3 @@
1
1
  module EffectiveMailchimp
2
- VERSION = '0.8.0'.freeze
2
+ VERSION = '0.8.1'.freeze
3
3
  end
@@ -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.0
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-07-09 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails