devise_campaignable 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -3
- data/devise_campaignable.gemspec +1 -0
- data/lib/devise_campaignable/adapters/mailchimp.rb +2 -2
- data/lib/devise_campaignable/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 751ee1ed0076c925f82fc139434f15fa1009fa62
|
4
|
+
data.tar.gz: db5d81fd9147d2433af34592eb97f6e1c7aa3f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ece3bc3f9d0838d1773031451ca057490e1555db1493f0d80ac045e4ed89c3f56da4014b857e240ede1fe9408f289995e10c11c7212ab19dc75ac8e2eda467a
|
7
|
+
data.tar.gz: 997614ebdc35e6f71e78116244210c1029fc9db83544d8e62b932f47c570f72c6b86c9001cfd00a01a52e06c70b525b2c4b528d528afb47fc4c472ee12514f24
|
data/.travis.yml
CHANGED
data/devise_campaignable.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rack", "~> 1.6.0"
|
22
23
|
spec.add_development_dependency "rake"
|
23
24
|
spec.add_development_dependency "rspec"
|
24
25
|
spec.add_development_dependency "activemodel"
|
@@ -31,7 +31,7 @@ module Devise
|
|
31
31
|
api.lists(@campaignable_list_id).members(subscriber_hash(email)).update(body: { status: "unsubscribed" })
|
32
32
|
rescue Gibbon::MailChimpError => e
|
33
33
|
raise unless e.status_code == 404
|
34
|
-
Rails.logger.warn "unsubscribe: User #{
|
34
|
+
Rails.logger.warn "unsubscribe: User #{email} not found!"
|
35
35
|
end
|
36
36
|
|
37
37
|
# Subscribe all users as a batch.
|
@@ -97,4 +97,4 @@ module Devise
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|
100
|
-
end
|
100
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_campaignable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Rawlins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.6.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.6.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|