lato 3.13.2 → 3.13.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdd09ee331b4f41b5b84498df9c159e2adebbb7780b7cb9953e85356fdbfb727
|
4
|
+
data.tar.gz: f688ee394fffb6d299ac5b0bd61d1f22016975d1413b7cc9164618df4f898a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58da4fdedb0ac7fe46213a596ac2d8fed2b2762070f11aa0dcd677d791f425eca4f92fab2853cd5e07d69180e1996ff4740b5cb4e5c32bd17fa633fec103935e
|
7
|
+
data.tar.gz: b52b24931de0b54c20497a434dc5042a76cec7e7c50f933d51b59b7212a4b7b5530ae46590b3ae2abfffb30f58a633588fa77510180734acbb28ddd339f92e88
|
data/README.md
CHANGED
@@ -26,8 +26,9 @@ You can also use the [Lato AI Agent](http://lato.gregoriogalante.com/AI.html) di
|
|
26
26
|
## Eco-system
|
27
27
|
The idea behind Lato is to create an eco-system of engines that can improve the functionalities of the panel. The following engines are already available:
|
28
28
|
|
29
|
-
- [
|
30
|
-
- [
|
29
|
+
- [Lato Spaces](https://github.com/Lato-org/lato_spaces): manage multiple workspaces in the panel with user invitation and workspace roles;
|
30
|
+
- [Lato Settings](https://github.com/Lato-org/lato_settings): manage application settings from the UI panel;
|
31
|
+
- [Lato Storage](https://github.com/Lato-org/lato_storage): manage storage (Active Storage data) from the UI panel;
|
31
32
|
|
32
33
|
## Installation
|
33
34
|
Add required dependencies to your application's Gemfile:
|
@@ -38,7 +38,7 @@ module Lato
|
|
38
38
|
collection = collection.lato_index_search(search)
|
39
39
|
else
|
40
40
|
query = @_lato_index[key][:searchable_columns].map do |key|
|
41
|
-
if collection.column_for_attribute(key).type == :string
|
41
|
+
if collection.column_for_attribute(key).type == :string || collection.column_for_attribute(key).type == :text || collection.column_for_attribute(key).type == :integer
|
42
42
|
"LOWER(#{key}) LIKE :search"
|
43
43
|
else
|
44
44
|
"CAST(#{key} AS TEXT) LIKE :search"
|
data/app/models/lato/user.rb
CHANGED
@@ -65,6 +65,22 @@ module Lato
|
|
65
65
|
"#{last_name} #{first_name}"
|
66
66
|
end
|
67
67
|
|
68
|
+
def email_protected
|
69
|
+
return email unless email.include?('@')
|
70
|
+
|
71
|
+
local_part, domain = email.split('@', 2)
|
72
|
+
|
73
|
+
# Keep first 2 characters of local part
|
74
|
+
chars_to_keep = [local_part.length, 2].min
|
75
|
+
protected_local = local_part[0, chars_to_keep] + '*' * [local_part.length - chars_to_keep, 0].max
|
76
|
+
|
77
|
+
# Keep domain as is or partially protect it
|
78
|
+
chars_to_keep = [domain.length, 2].min
|
79
|
+
protected_domain = domain[0, chars_to_keep] + '*' * [domain.length - chars_to_keep, 0].max
|
80
|
+
|
81
|
+
"#{protected_local}@#{protected_domain}"
|
82
|
+
end
|
83
|
+
|
68
84
|
def gravatar_image_url(size = 200)
|
69
85
|
@gravatar_image_url ||= "https://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(email)}?s=#{size}"
|
70
86
|
end
|
@@ -10,7 +10,7 @@ user ||= Lato::User.new
|
|
10
10
|
<%= lato_form_errors user, class: %w[mb-3] %>
|
11
11
|
|
12
12
|
<div class="mb-3 text-center">
|
13
|
-
<p><%= raw I18n.t('lato.authenticator_code_help', email: user.
|
13
|
+
<p><%= raw I18n.t('lato.authenticator_code_help', email: user.email_protected) %></p>
|
14
14
|
</div>
|
15
15
|
|
16
16
|
<div class="mb-3">
|
data/lib/lato/version.rb
CHANGED
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: 3.13.
|
4
|
+
version: 3.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|