devise_code_authenticatable 0.2.1 → 0.2.2
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 +4 -4
- data/README.md +1 -6
- data/lib/devise_code_authenticatable/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd002956ced9c39d04aff6ae2571c6436a33d764a0018f0c1c63d076b1ab080d
|
|
4
|
+
data.tar.gz: 2b3b514a7add40d4aff0679369e16ffb2bb59168b4fc61d38f18177e4cb283f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b2c4800b08725bdff4fe3b50ce11ce353494f5064f87a68dfa09df6044b282a11f6155e8a4d32d4eef3fc75abfae099d98c96e647ea597fe22fd06de0924733
|
|
7
|
+
data.tar.gz: 33ab15669026be9ab140fe8f81d6581dd5e652ba55c32615a3c18b48dd4e94d117c75d4e5daf977e317f897bcaedfe548830c437a5eb11045374152c383cef93
|
data/README.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# DeviseCodeAuthenticatable
|
|
2
2
|
A Devise plugin for two-factor authenticatable.
|
|
3
3
|
|
|
4
|
-
## Demo
|
|
5
|
-
An example rails app to use this plugin is setup in [demo](https://github.com/vincentying15/demo_for_devise_code_authenticatable)
|
|
6
|
-
|
|
7
4
|
## Installation
|
|
8
5
|
Add this line to your Rails Gemfile:
|
|
9
6
|
|
|
@@ -11,20 +8,18 @@ Add this line to your Rails Gemfile:
|
|
|
11
8
|
gem 'devise_code_authenticatable'
|
|
12
9
|
```
|
|
13
10
|
|
|
14
|
-
### Automatic installation
|
|
15
11
|
Run:
|
|
16
12
|
|
|
17
13
|
```bash
|
|
18
14
|
rails generate devise_code_authenticatable:install
|
|
19
15
|
```
|
|
20
16
|
|
|
21
|
-
This will create a migration file
|
|
17
|
+
This will create a migration file in your `db/migrate` folder, then
|
|
22
18
|
|
|
23
19
|
|
|
24
20
|
```ruby
|
|
25
21
|
rails db:migrate
|
|
26
22
|
```
|
|
27
|
-
### Devise Configuration
|
|
28
23
|
Add `:authenticatable` to the model you want to enable code_authenticatable, also make sure `:database_authenticatable` is removed
|
|
29
24
|
|
|
30
25
|
```ruby
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_code_authenticatable
|
|
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
|
- vincentying15
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 6.0
|
|
19
|
+
version: '6.0'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 6.0.2.1
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - "~>"
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 6.0
|
|
29
|
+
version: '6.0'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 6.0.2.1
|