catarse_monkeymail 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module CatarseMonkeymail::ProjectConcern
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def subscribe_to_list(list_id)
|
24
|
-
mailchimp.lists.subscribe
|
24
|
+
mailchimp.lists.subscribe(list_id, { email: self.user.email }, subscriber_args) rescue nil
|
25
25
|
end
|
26
26
|
|
27
27
|
def subscriber_args
|
@@ -22,11 +22,11 @@ module CatarseMonkeymail::UserConcern
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def subscribe_to_newsletter_list
|
25
|
-
mailchimp.lists.subscribe
|
25
|
+
mailchimp.lists.subscribe(monkey_settings.list_id, { email: self.email }, { name: self.name }) rescue nil
|
26
26
|
end
|
27
27
|
|
28
28
|
def unsubscribe_from_newsletter_list email_arg = self.email
|
29
|
-
mailchimp.lists.unsubscribe
|
29
|
+
mailchimp.lists.unsubscribe(monkey_settings.list_id, { email: email_arg }) rescue nil
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
metadata
CHANGED
@@ -1,83 +1,94 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catarse_monkeymail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Antônio Roberto Silva
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 4.0.3
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 4.0.3
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: mailchimp-api
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: 2.0.4
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: 2.0.4
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rails-observers
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rspec-rails
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- -
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- -
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: pg
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- -
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- -
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
description: A new catarse integration with mailchimp
|
@@ -87,9 +98,9 @@ executables: []
|
|
87
98
|
extensions: []
|
88
99
|
extra_rdoc_files: []
|
89
100
|
files:
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
101
|
+
- .gitignore
|
102
|
+
- .gitmodules
|
103
|
+
- .rspec
|
93
104
|
- Gemfile
|
94
105
|
- Gemfile.lock
|
95
106
|
- MIT-LICENSE
|
@@ -151,26 +162,27 @@ files:
|
|
151
162
|
- spec/support/user.rb
|
152
163
|
homepage: http://catarse.me
|
153
164
|
licenses: []
|
154
|
-
metadata: {}
|
155
165
|
post_install_message:
|
156
166
|
rdoc_options: []
|
157
167
|
require_paths:
|
158
168
|
- lib
|
159
169
|
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
160
171
|
requirements:
|
161
|
-
- -
|
172
|
+
- - ! '>='
|
162
173
|
- !ruby/object:Gem::Version
|
163
174
|
version: '0'
|
164
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
none: false
|
165
177
|
requirements:
|
166
|
-
- -
|
178
|
+
- - ! '>='
|
167
179
|
- !ruby/object:Gem::Version
|
168
180
|
version: '0'
|
169
181
|
requirements: []
|
170
182
|
rubyforge_project:
|
171
|
-
rubygems_version:
|
183
|
+
rubygems_version: 1.8.21
|
172
184
|
signing_key:
|
173
|
-
specification_version:
|
185
|
+
specification_version: 3
|
174
186
|
summary: Integration with the best newsletter services <3
|
175
187
|
test_files:
|
176
188
|
- spec/controller/catarse_monkeymail/controller_concerns_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: a12ed8667388ed94ff9d84a1a0bfeda67a343847
|
4
|
-
data.tar.gz: c62b755ca4ea7985f58b19b5b0ec532291689011
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: ea8df807d4e116d108596279fb650d6c4cc54662706a056712d405a21d1b53be10cc06cdad20eed19a3e78852a521b88e1fdbad26d4df225909a7771811af04f
|
7
|
-
data.tar.gz: 9b5982af4d1cfe92f140026cb79dfeeec489707becb8c0d71a656a22cb29e1d173decbee2be9378377b13b96b84f182e11d566187cd6a4c44bed321a346d891b
|