devise_token_auth_multi_email 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f38c0b3641519bd0810319419aaf08804b532fd43cb0096bb72cd8b88d889bb1
4
- data.tar.gz: 81d521ee99a8ae5ccf45ae72be78d355d39350dd6344933703cac1b880f9d3a2
3
+ metadata.gz: 3477f41b3101bcdaa4bb943b33bbe096ad441593d643b7810d906d03358e17e3
4
+ data.tar.gz: 57fbaae04f8aa41684d02b57924f1499a8c11162ed8eb2541febd36e51e5851e
5
5
  SHA512:
6
- metadata.gz: 5f4ad633633d142a5f3d5dc4f33c1351d9040ceffd4e683b16fc3275f12444545ab3e576aec9b0fa42089dffde199bc3c9759aca480a3a1fc92d786c74d776c5
7
- data.tar.gz: 8626946a5de31ccfc622e0a9b29a51640a414d478f70a2d77e931fc8854ae5dc9900218263327dd35d115dcb6c8c3c6360487425c76468d92b09d43a30a5b438
6
+ metadata.gz: 94058cdb4567ad9ad0f10044a68944607d728342d2a98291f54a48652dc6ec0a819a1b2112b3471c88d052783bd5a0d139951836e6f27cf84a3dfa3f585f7724
7
+ data.tar.gz: 0bbb954ae2deb1f413a4ec60d97f98ed058f23ca43f0b98a086ce3a532a59d452eee694885708f9fab4199722e84c5d854affc3f075331f6f7d34ce2061cba05
data/README.md CHANGED
@@ -1,13 +1,4 @@
1
- # Devise Token Auth
2
-
3
- [![Gem Version](https://badge.fury.io/rb/devise_token_auth.svg)](http://badge.fury.io/rb/devise_token_auth)
4
- [![Build Status](https://github.com/lynndylanhurley/devise_token_auth/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/lynndylanhurley/devise_token_auth/actions/workflows/test.yml)
5
- [![Code Climate](https://codeclimate.com/github/lynndylanhurley/devise_token_auth/badges/gpa.svg)](https://codeclimate.com/github/lynndylanhurley/devise_token_auth)
6
- [![Test Coverage](https://codeclimate.com/github/lynndylanhurley/devise_token_auth/badges/coverage.svg)](https://codeclimate.com/github/lynndylanhurley/devise_token_auth/coverage)
7
- [![Downloads](https://img.shields.io/gem/dt/devise_token_auth.svg)](https://rubygems.org/gems/devise_token_auth)
8
- [![Backers on Open Collective](https://opencollective.com/devise_token_auth/backers/badge.svg)](#backers)
9
- [![Sponsors on Open Collective](https://opencollective.com/devise_token_auth/sponsors/badge.svg)](#sponsors)
10
- [![Join the chat at https://gitter.im/lynndylanhurley/devise_token_auth](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/lynndylanhurley/devise_token_auth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1
+ # Devise Token Auth Multi Email
11
2
 
12
3
  Simple, multi-client and secure token-based authentication for Rails.
13
4
 
@@ -15,6 +6,9 @@ If you're building SPA or a mobile app, and you want authentication, you need to
15
6
  This gem refreshes the tokens on each request, and expires them in a short time, so the app is secure.
16
7
  Also, it maintains a session for each client/device, so you can have as many sessions as you want.
17
8
 
9
+ This version deviates from the parent in that it supports multiple
10
+ email addresses per user.
11
+
18
12
  ## Main features
19
13
 
20
14
  * Seamless integration with:
@@ -30,19 +24,21 @@ Also, it maintains a session for each client/device, so you can have as many ses
30
24
  * Login and logout
31
25
  * Password reset, account confirmation
32
26
  * Support for [multiple user models](./docs/usage/multiple_models.md).
27
+ * Support for multiple emails using * [devise-multi_email](https://github.com/allenwq/devise-multi_email)
33
28
  * It is [secure](docs/security.md).
34
29
 
35
30
  This project leverages the following gems:
36
31
 
37
32
  * [Devise](https://github.com/plataformatec/devise)
38
33
  * [OmniAuth](https://github.com/intridea/omniauth)
34
+ * [DeviseMultiEmail](https://github.com/allenwq/devise-multi_email)
39
35
 
40
36
  ## Installation
41
37
 
42
38
  Add the following to your `Gemfile`:
43
39
 
44
40
  ~~~ruby
45
- gem 'devise_token_auth'
41
+ gem 'devise_token_auth_multi_email'
46
42
  ~~~
47
43
 
48
44
  Then install the gem using bundle:
@@ -55,41 +51,37 @@ bundle install
55
51
 
56
52
  ## Need help?
57
53
 
58
- Please use [StackOverflow](https://stackoverflow.com/questions/tagged/devise-token-auth) for help requests and how-to questions.
54
+ Please use
55
+ [StackOverflow](https://stackoverflow.com/questions/tagged/devise-token-auth-multi-email) for help requests and how-to questions.
59
56
 
60
57
  Please open GitHub issues for bugs and enhancements only, not general help requests. Please search previous issues (and Google and StackOverflow) before creating a new issue.
61
58
 
62
- Please read the [issue template](https://github.com/lynndylanhurley/devise_token_auth/blob/master/.github/ISSUE_TEMPLATE.md) before posting issues.
59
+ Please read the [issue
60
+ template](https://github.com/mgmodell/devise_token_auth_multi_email/blob/master/.github/ISSUE_TEMPLATE.md) before posting issues.
63
61
 
64
62
  ## [FAQ](docs/faq.md)
65
63
 
66
64
  ## Contributors wanted!
67
65
 
68
- See our [Contribution Guidelines](https://github.com/lynndylanhurley/devise_token_auth/blob/master/.github/CONTRIBUTING.md). Feel free to submit pull requests, review pull requests, or review open issues. If you'd like to get in contact, [Zach Feldman](https://github.com/zachfeldman) has been wrangling this effort, you can reach him with his name @gmail. Further discussion of this in [this issue](https://github.com/lynndylanhurley/devise_token_auth/issues/969).
69
-
70
- We have some bounties for some issues, [check them out](https://github.com/lynndylanhurley/devise_token_auth/issues?q=is%3Aopen+is%3Aissue+label%3Abounty)!
71
-
72
- ## Live Demos
73
-
74
- [Here is a demo](https://stackblitz.com/github/neroniaky/angular-token) of this app running with the [Angular-Token](https://github.com/neroniaky/angular-token) service and [Angular](https://github.com/angular/angular).
75
-
76
- The fully configured api used in these demos can be found [here](https://github.com/lynndylanhurley/devise_token_auth_demo).
77
-
66
+ See our [Contribution
67
+ Guidelines](https://github.com/mgmodell/devise_token_auth_multi_email/blob/master/.github/CONTRIBUTING.md).
68
+ Feel free to submit pull requests, review pull requests, or review open
69
+ issues.
78
70
 
79
71
  ## Contributors
80
72
 
81
- <a href="graphs/contributors"><img src="https://opencollective.com/devise_token_auth/contributors.svg?width=890&button=false" /></a>
73
+ <a href="graphs/contributors"><img src="https://opencollective.com/devise_token_auth_multi_email/contributors.svg?width=890&button=false" /></a>
82
74
 
83
75
  ## Backers
84
76
 
85
- Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/devise_token_auth#backer)]
77
+ Thank you to all the backers of the parent project! 🙏 [[Become a backer](https://opencollective.com/devise_token_auth#backer)]
86
78
 
87
79
  [![](https://opencollective.com/devise_token_auth/backers.svg?width=890)](https://opencollective.com/devise_token_auth#backers)
88
80
 
89
81
 
90
82
  ## Sponsors
91
83
 
92
- Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/devise_token_auth#sponsor)]
84
+ Support this project by becoming a sponsor of the parent. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/devise_token_auth#sponsor)]
93
85
 
94
86
  [![](https://opencollective.com/devise_token_auth/sponsor/0/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/0/website) [![](https://opencollective.com/devise_token_auth/sponsor/1/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/1/website) [![](https://opencollective.com/devise_token_auth/sponsor/2/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/2/website) [![](https://opencollective.com/devise_token_auth/sponsor/3/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/3/website) [![](https://opencollective.com/devise_token_auth/sponsor/4/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/4/website) [![](https://opencollective.com/devise_token_auth/sponsor/5/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/5/website) [![](https://opencollective.com/devise_token_auth/sponsor/6/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/6/website) [![](https://opencollective.com/devise_token_auth/sponsor/7/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/7/website) [![](https://opencollective.com/devise_token_auth/sponsor/8/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/8/website) [![](https://opencollective.com/devise_token_auth/sponsor/9/avatar.svg)](https://opencollective.com/devise_token_auth/sponsor/9/website)
95
87
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseTokenAuth
4
- VERSION = '0.9.0'.freeze
4
+ VERSION = '0.9.1'.freeze
5
5
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'devise'
4
+ require 'devise-multi_email_revived'
4
5
 
5
6
  module DeviseTokenAuth
6
7
  end
@@ -7,11 +7,12 @@ class DeviseTokenAuth::CustomRoutesTest < ActiveSupport::TestCase
7
7
  Rails.application.reload_routes!
8
8
  end
9
9
  test 'custom controllers' do
10
- class ActionDispatch::Routing::Mapper
11
- include Mocha::ParameterMatchers
12
- end
13
10
  Rails.application.routes.draw do
14
- self.expects(:devise_for).with(
11
+ mapper = self
12
+ mapper.singleton_class.include(Mocha::API)
13
+ mapper.singleton_class.include(Mocha::ParameterMatchers)
14
+
15
+ mapper.expects(:devise_for).with(
15
16
  :users,
16
17
  has_entries(
17
18
  controllers: has_entries(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_token_auth_multi_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - "<="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.2'
33
- - !ruby/object:Gem::Dependency
34
- name: devise
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">"
38
- - !ruby/object:Gem::Version
39
- version: 3.5.2
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '6.0'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">"
48
- - !ruby/object:Gem::Version
49
- version: 3.5.2
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '6.0'
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: bcrypt
55
35
  requirement: !ruby/object:Gem::Requirement