lesli_shield 1.0.0 → 1.0.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/assets/stylesheets/lesli_shield/passwords.css +1 -1
- data/app/assets/stylesheets/lesli_shield/registrations.css +1 -1
- data/app/assets/stylesheets/lesli_shield/sessions.css +1 -1
- data/app/controllers/lesli_shield/role/actions_controller.rb +38 -5
- data/app/controllers/lesli_shield/roles_controller.rb +1 -1
- data/app/controllers/users/confirmations_controller.rb +1 -1
- data/app/controllers/users/registrations_controller.rb +2 -2
- data/app/interfaces/lesli_shield/authorization_interface.rb +2 -2
- data/app/models/lesli_shield/account.rb +44 -0
- data/app/models/lesli_shield/dashboard.rb +33 -24
- data/app/operators/lesli_shield/user_registration_operator.rb +123 -0
- data/app/services/lesli_shield/tokens.rb +39 -0
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/sessions/new.html.erb +2 -0
- data/app/views/lesli_shield/roles/_form-privileges.html.erb +29 -3
- data/app/views/lesli_shield/roles/show.html.erb +3 -3
- data/app/views/lesli_shield/users/_information-card.html.erb +3 -3
- data/app/views/lesli_shield/users/show.html.erb +1 -1
- data/lib/lesli_shield/engine.rb +0 -4
- data/lib/lesli_shield/version.rb +2 -2
- data/lib/scss/_devise-simple.scss +1 -1
- data/lib/scss/_devise.scss +1 -19
- data/lib/scss/registrations.scss +32 -0
- data/lib/scss/sessions.scss +31 -0
- data/lib/tasks/lesli_shield_tasks.rake +3 -4
- data/readme.md +31 -17
- metadata +9 -6
data/readme.md
CHANGED
@@ -1,30 +1,42 @@
|
|
1
|
-
<div align="center">
|
2
|
-
<img width="
|
1
|
+
<div align="center" class="documentation-header">
|
2
|
+
<img width="100" alt="LesliShield logo" src="./app/assets/images/lesli_shield/shield-logo.svg" />
|
3
3
|
<h3 align="center">Authentication & Authorization for the Lesli Framework.</h3>
|
4
4
|
</div>
|
5
5
|
|
6
|
+
|
7
|
+
<br />
|
6
8
|
<hr/>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</
|
9
|
+
|
10
|
+
<div align="center" class="documentation-statics">
|
11
|
+
<a target="blank" href="https://rubygems.org/gems/lesli">
|
12
|
+
<img height="22" alt="Gem Version" src="https://badge.fury.io/rb/lesli.svg"/>
|
13
|
+
</a>
|
14
|
+
<a class="mx-2" href="https://codecov.io/github/LesliTech/Lesli">
|
15
|
+
<img height="22" src="https://codecov.io/github/LesliTech/Lesli/graph/badge.svg?token=2O12NENK5Y"/>
|
16
|
+
</a>
|
17
|
+
<a href="https://codecov.io/github/LesliTech/LesliBabel">
|
18
|
+
<img height="22" src="https://sonarcloud.io/api/project_badges/measure?project=LesliTech_LesliBabel&metric=sqale_rating"/>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
|
12
22
|
<hr/>
|
23
|
+
<br />
|
24
|
+
|
13
25
|
|
14
26
|
### Quick start
|
15
27
|
|
16
28
|
```shell
|
17
|
-
# Add LesliShield engine
|
29
|
+
# Add LesliShield engine gem
|
18
30
|
bundle add lesli_shield
|
19
31
|
```
|
20
32
|
|
21
33
|
```shell
|
22
|
-
# Setup database
|
34
|
+
# Setup & initialize the database
|
23
35
|
rake lesli:db:setup
|
24
36
|
```
|
25
37
|
|
26
38
|
```ruby
|
27
|
-
# Load LesliShield
|
39
|
+
# Load LesliShield engine
|
28
40
|
Rails.application.routes.draw do
|
29
41
|
mount LesliShield::Engine => "/shield"
|
30
42
|
end
|
@@ -32,21 +44,24 @@ end
|
|
32
44
|
|
33
45
|
|
34
46
|
### Documentation
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
### Lesli Documentation
|
35
51
|
* [website](https://www.lesli.dev/)
|
36
|
-
* [database](./docs/database.md)
|
37
52
|
* [documentation](https://www.lesli.dev/engines/shield/)
|
38
53
|
|
39
54
|
|
40
55
|
### Get in touch with Lesli
|
41
56
|
|
42
|
-
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
43
57
|
* [Email: hello@lesli.tech](hello@lesli.tech)
|
58
|
+
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
44
59
|
* [Twitter: @LesliTech](https://twitter.com/LesliTech)
|
45
60
|
|
46
61
|
|
47
62
|
### License
|
48
63
|
-------
|
49
|
-
Copyright (c)
|
64
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
50
65
|
|
51
66
|
This program is free software: you can redistribute it and/or modify
|
52
67
|
it under the terms of the GNU General Public License as published by
|
@@ -64,8 +79,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
|
64
79
|
<hr />
|
65
80
|
<br />
|
66
81
|
|
67
|
-
<
|
82
|
+
<div align="center" class="has-text-centered">
|
68
83
|
<img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
|
69
|
-
<h4 align="center">Ruby on Rails SaaS Development Framework.</h4>
|
70
|
-
</
|
71
|
-
|
84
|
+
<h4 align="center" class="mt-0">Ruby on Rails SaaS Development Framework.</h4>
|
85
|
+
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_shield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Lesli Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lesli
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: devise
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description: Authentication & Authorization management for the Lesli Framework.
|
42
42
|
email:
|
43
43
|
- hello@lesli.tech
|
@@ -83,11 +83,14 @@ files:
|
|
83
83
|
- app/interfaces/lesli_shield/authorization_interface.rb
|
84
84
|
- app/jobs/lesli_shield/application_job.rb
|
85
85
|
- app/mailers/lesli_shield/application_mailer.rb
|
86
|
+
- app/models/lesli_shield/account.rb
|
86
87
|
- app/models/lesli_shield/application_record.rb
|
87
88
|
- app/models/lesli_shield/dashboard.rb
|
88
89
|
- app/models/lesli_shield/dashboard/component.rb
|
89
90
|
- app/models/lesli_shield/setting.rb
|
90
91
|
- app/models/lesli_shield/user.rb
|
92
|
+
- app/operators/lesli_shield/user_registration_operator.rb
|
93
|
+
- app/services/lesli_shield/tokens.rb
|
91
94
|
- app/views/devise/confirmations/new.html.erb
|
92
95
|
- app/views/devise/confirmations/show.html.erb
|
93
96
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|