thecore_auth_commons 2.2.1 → 2.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/app/models/user.rb +2 -0
- data/db/migrate/20200306143408_create_users.rb +6 -6
- data/lib/thecore_auth_commons.rb +2 -2
- data/lib/thecore_auth_commons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9188aab4fb99d33cb6c49e95752406c7eac5f9e2096752f94c688ef447070079
|
|
4
|
+
data.tar.gz: 53423ae9b99ffe34b078a04be259825bb023ce643e1487ad7848546dc338f86e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c86e8003839386365889c8c1890d4c8fc1f61a65228259a854e00933198d00d385da75018c02885bca975d55e8afcfb2f2244902f045ce2017312405ca7a87a
|
|
7
|
+
data.tar.gz: 13bb3dbae5695a7cf16e937d8d2fb881d1cae47ad59e22cf57efcd822c327ffb1024868a5efed179c9898cac7de5ed5c2c1297ca90eaac0e176460b7b78efe9d
|
data/app/models/user.rb
CHANGED
|
@@ -2,6 +2,8 @@ class User < ApplicationRecord
|
|
|
2
2
|
# Include default devise modules. Others available are:
|
|
3
3
|
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
|
4
4
|
devise :database_authenticatable
|
|
5
|
+
devise :trackable
|
|
6
|
+
devise :validatable
|
|
5
7
|
# TODO: If it works, these must be added to another gem one which deal
|
|
6
8
|
# more with sessions
|
|
7
9
|
# devise :database_authenticatable
|
|
@@ -14,12 +14,12 @@ class CreateUsers < ActiveRecord::Migration[6.0]
|
|
|
14
14
|
## Rememberable
|
|
15
15
|
# t.datetime :remember_created_at
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
# Trackable
|
|
18
|
+
t.integer :sign_in_count, default: 0, null: false
|
|
19
|
+
t.datetime :current_sign_in_at
|
|
20
|
+
t.datetime :last_sign_in_at
|
|
21
|
+
t.string :current_sign_in_ip
|
|
22
|
+
t.string :last_sign_in_ip
|
|
23
23
|
|
|
24
24
|
## Confirmable
|
|
25
25
|
# t.string :confirmation_token
|
data/lib/thecore_auth_commons.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thecore_auth_commons
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriele Tassoni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|