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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca10c00f70db784bc00e38893413e45bbd6b4e7696af42a900c726d01473d95
4
- data.tar.gz: 7465a9b0985889df3398da3346ebd24119b137782b6956f4562171ff1c2d3729
3
+ metadata.gz: 9188aab4fb99d33cb6c49e95752406c7eac5f9e2096752f94c688ef447070079
4
+ data.tar.gz: 53423ae9b99ffe34b078a04be259825bb023ce643e1487ad7848546dc338f86e
5
5
  SHA512:
6
- metadata.gz: 70d33fe66598135ba4a865b1737405d6520fb52b34c07e134501aa6841a895512d625688283307c75dacb671d63775e5e4459fa294399d828ebe3a8dd7cd0125
7
- data.tar.gz: 90d73e467c4f4cc0eb1d425e9a6fbfb62a4217092c8d40e1a4100af996f35fa9d8686d8632b6dfc001719978874e1947a2ef200fd00c52bfd9200cd6bbb612cc
6
+ metadata.gz: 8c86e8003839386365889c8c1890d4c8fc1f61a65228259a854e00933198d00d385da75018c02885bca975d55e8afcfb2f2244902f045ce2017312405ca7a87a
7
+ data.tar.gz: 13bb3dbae5695a7cf16e937d8d2fb881d1cae47ad59e22cf57efcd822c327ffb1024868a5efed179c9898cac7de5ed5c2c1297ca90eaac0e176460b7b78efe9d
@@ -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
- ## 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
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
@@ -1,9 +1,9 @@
1
- require "thecore_auth_commons/engine"
2
-
3
1
  require 'devise'
4
2
  require 'cancancan'
5
3
  require 'kaminari'
6
4
 
5
+ require "thecore_auth_commons/engine"
6
+
7
7
  module ThecoreAuthCommons
8
8
  # Your code goes here...
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module ThecoreAuthCommons
2
- VERSION = '2.2.1'.freeze
2
+ VERSION = '2.2.2'.freeze
3
3
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails