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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 492f65b3aeb563982e0e48a9cb77e57ecc0aaf4e
4
- data.tar.gz: 1ba5a15c05396b6ce73247577c0137460ea26743
2
+ SHA256:
3
+ metadata.gz: 900a273c38a302658773f2fc0884c4aa988116bf8b81267ffc9310bae5f038fe
4
+ data.tar.gz: 5b1dfeb431bc226f6453c615ca245e133f385a758671b36d9100a03e794fb8ec
5
5
  SHA512:
6
- metadata.gz: 4a0ee5f2e82ad2b1d0af00eae4be25bfabc685e38ff5bfc6c6f9fa05c05549615142735d82715e2c7d5084026b2ecb2eb77bfe52f3c480de0d325706a2e95ece
7
- data.tar.gz: e089c81e6f926f559475957326f7f3a100479d25da915de6d21f01f7dd52d58fafd0be60322c2f79494c8d08ef8df472dd9cfe964851935148d1c1d9b2766a61
6
+ metadata.gz: 032f19e4e6fcf4b88b26634d74d09e133d3dd59f050ecadd7da1d9176902e6dc0646c4c1b1aed12aa967331c1f195d82416779159cb8c2e5e0a727f0514dc558
7
+ data.tar.gz: d70232725f7d1bec1fa1f5f1f7b9ac6cfd0e8bf95b69337543f6feef6249bd4ebea2ad3ca933a7243a35b84a7c2a989695c7105b79eb352fc2200b9f08542b92
@@ -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 devise initializer (config/initializers/devise.rb), set your API key and mailing list name:
21
+ In your mailjet initializer (config/initializers/mailjet.rb), set your API key and mailing list name:
22
22
 
23
- Devise.mailjet_api_key = 'your_api_key'
24
- Devise.mailing_list_name = 'List Name'
25
- Devise.send_welcome_email = false
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
- Devise.mailjet_api_key = 'your_api_key'
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.
@@ -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' => '< 5.2',
21
+ 'rails' => '< 6.1',
24
22
  'devise' => '< 5.0',
25
23
  'devise-bootstrap-views' => '< 1.0',
26
24
  'mailjet' => '< 2.0'
@@ -1,3 +1,3 @@
1
1
  module DeviseMailjet
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
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.0
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: 2018-01-16 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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
- rubyforge_project: devise_mailjet
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