devise_mailjet 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +19 -5
- data/devise_mailjet.gemspec +1 -3
- data/lib/devise_mailjet/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 900a273c38a302658773f2fc0884c4aa988116bf8b81267ffc9310bae5f038fe
|
4
|
+
data.tar.gz: 5b1dfeb431bc226f6453c615ca245e133f385a758671b36d9100a03e794fb8ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 032f19e4e6fcf4b88b26634d74d09e133d3dd59f050ecadd7da1d9176902e6dc0646c4c1b1aed12aa967331c1f195d82416779159cb8c2e5e0a727f0514dc558
|
7
|
+
data.tar.gz: d70232725f7d1bec1fa1f5f1f7b9ac6cfd0e8bf95b69337543f6feef6249bd4ebea2ad3ca933a7243a35b84a7c2a989695c7105b79eb352fc2200b9f08542b92
|
data/README.rdoc
CHANGED
@@ -18,11 +18,21 @@ In your User model, add :mailjet to the devise call and make :join_mailing_list
|
|
18
18
|
devise :database_authenticatable, ..., :mailjet
|
19
19
|
attr_accessor :join_mailing_list
|
20
20
|
|
21
|
-
In your
|
21
|
+
In your mailjet initializer (config/initializers/mailjet.rb), set your API key and mailing list name:
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
Mailjet.configure do |config|
|
24
|
+
config.api_key = 'your_api_key'
|
25
|
+
config.secret_key = 'your_secret_key'
|
26
|
+
config.default_from = 'you@example.com'
|
27
|
+
end
|
28
|
+
|
29
|
+
In your device initializer (config/initializers/device.rb), you can configue Mailjet specifics:
|
30
|
+
|
31
|
+
Devise.setup do |config|
|
32
|
+
# other Devise config parameters...
|
33
|
+
config.mailing_list_name = 'List Name'
|
34
|
+
config.mailing_list_opt_in_by_default = false
|
35
|
+
end
|
26
36
|
|
27
37
|
If you are using the default Devise registration views, the Join Mailing List checkbox is added automatically, if not,
|
28
38
|
either include the form partial in your new registration form:
|
@@ -42,7 +52,11 @@ If you are using Simple Form, you can use:
|
|
42
52
|
Create an initializer, and set your MailJet API key. To generate a new API key, go to the account tab in your
|
43
53
|
MailJet account and select API Keys & Authorized Apps, then add a key.
|
44
54
|
|
45
|
-
|
55
|
+
Mailjet.configure do |config|
|
56
|
+
config.api_key = 'your_api_key'
|
57
|
+
config.secret_key = 'your_secret_key'
|
58
|
+
config.default_from = 'you@example.com'
|
59
|
+
end'
|
46
60
|
|
47
61
|
Create a mailing list, and set the mailing list name in the initializer. To create a MailJet list, from your account
|
48
62
|
go to the Lists tab, then hit create list.
|
data/devise_mailjet.gemspec
CHANGED
@@ -12,15 +12,13 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = %q{Devise MailJet adds a MailJet option to devise that easily enables users to join your mailing list when they create an account.}
|
13
13
|
s.licenses = 'MIT'
|
14
14
|
|
15
|
-
s.rubyforge_project = "devise_mailjet"
|
16
|
-
|
17
15
|
s.files = `git ls-files`.split("\n")
|
18
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
18
|
s.require_paths = ["lib"]
|
21
19
|
|
22
20
|
{
|
23
|
-
'rails' => '<
|
21
|
+
'rails' => '< 6.1',
|
24
22
|
'devise' => '< 5.0',
|
25
23
|
'devise-bootstrap-views' => '< 1.0',
|
26
24
|
'mailjet' => '< 2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_mailjet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Cunningham
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "<"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '6.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "<"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '6.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: devise
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
|
112
|
-
rubygems_version: 2.6.14
|
111
|
+
rubygems_version: 3.1.2
|
113
112
|
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: Easy MailJet integration for Devise
|