lato 0.1.28 → 0.1.30

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: 5bcb5a6f47f56626a7fd68c8ab3872971d88291b568c8ede302e2307648babd3
4
- data.tar.gz: d250a7b34e0dcee6cadbd41a4f93b2fccaaa6f78dd0b56b4f96d2a5cd5b3c097
3
+ metadata.gz: 3a81949d95d987f42175e24723dc36bd0450192851888204b552007188be3f4c
4
+ data.tar.gz: 12dea2b246934f04b65354b7e53429f54dd3b3e001a947782e3cd0f397f278fb
5
5
  SHA512:
6
- metadata.gz: 61591a5033d2c16ca7bfbda32416d41060156298a4f2272daa210bf1203be2ccf4ec16e4f59034e05196a9f23dfc1621fa0b3e15db82421a930386c29b144d12
7
- data.tar.gz: 73f3a4fdf44043aca72b8276c53a9d73d6285b59a49db1308d2c10e358f715d2c58b77f6c755763124b49072b5c11861f7d1b03f4dc0cbc1511fad4fd51a6d9a
6
+ metadata.gz: 899825db83f85d673bf707872f0e8225ff911f042edce2cb7ae6895d57face9815d04a04c44b630d49c91129be334013afc75c9a9a5d6e351f1197fc57b0ff6e
7
+ data.tar.gz: c0d39db6501532947fb1450a963b4840d344cbf7fd8e40f08e628cda8ab4da273591204921367226c160f5bbc913bb110819e48d5580db72abbbabff964836b7
@@ -32,6 +32,7 @@ module Lato
32
32
 
33
33
  def session_create(user_id)
34
34
  cookies.encrypted[:lato_session] = { value: Lato::Session.generate_session_per_user(user_id), expires: Lato.config.session_lifetime.from_now }
35
+ @session = Lato::Session.new(cookies.encrypted[:lato_session])
35
36
 
36
37
  true
37
38
  end
@@ -1,8 +1,17 @@
1
1
  module Lato
2
- class Log::UserSignin < ApplicationRecord
3
- # Relations
4
- ##
2
+ module Log
3
+ class UserSignin < ApplicationRecord
4
+ # Relations
5
+ ##
5
6
 
6
- belongs_to :lato_user, class_name: 'Lato::User', foreign_key: :lato_user_id, optional: true
7
+ belongs_to :lato_user, class_name: 'Lato::User', foreign_key: :lato_user_id, optional: true
8
+
9
+ # Hooks
10
+ ##
11
+
12
+ before_destroy do
13
+ throw :abort
14
+ end
15
+ end
7
16
  end
8
17
  end
@@ -1,12 +1,5 @@
1
1
  module Lato
2
2
  module Log
3
- # This module is used to add log to the application.
4
- # Log are used to track user actions without sensitive data.
5
- # Log should not be destroyed.
6
- before_destroy do
7
- throw :abort
8
- end
9
-
10
3
  def self.table_name_prefix
11
4
  'lato_log_'
12
5
  end
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.28"
2
+ VERSION = "0.1.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-05 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails