campaign_monitor_subscriber 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,8 @@ module CampaignMonitorSubscriber
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
|
-
require 'logger'
|
10
|
-
@@log = Logger.new('log/cm_subscriber.log')
|
11
|
-
|
12
9
|
after_create do |record|
|
13
|
-
|
10
|
+
logger.debug "\n* Adding '#{record.cms_email}' to CM"
|
14
11
|
|
15
12
|
begin
|
16
13
|
CreateSend::Subscriber.add(
|
@@ -27,7 +24,7 @@ module CampaignMonitorSubscriber
|
|
27
24
|
|
28
25
|
|
29
26
|
after_destroy do |record|
|
30
|
-
|
27
|
+
logger.debug "\n* Removing '#{record.cms_email}' from CM"
|
31
28
|
|
32
29
|
begin
|
33
30
|
s = CreateSend::Subscriber.new(
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: campaign_monitor_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: createsend
|