lesli_shield 1.0.4 → 1.1.1

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.
data/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <img width="100" alt="LesliShield logo" src="./app/assets/images/lesli_shield/shield-logo.svg" />
3
- <h3 align="center">Administration area for the Lesli Framework.</h3>
3
+ <h3 align="center">Users & Security Management for the Lesli Framework.</h3>
4
4
  </div>
5
5
 
6
6
  <br />
@@ -33,15 +33,16 @@
33
33
 
34
34
  ### Installation
35
35
 
36
- ```shell
36
+ ```ruby
37
+
37
38
  # Add LesliShield engine gem
38
39
  bundle add lesli_shield
39
40
 
41
+
40
42
  # Setup & initialize the database
41
43
  rake lesli:db:setup
42
- ```
43
44
 
44
- ```ruby
45
+
45
46
  # Load LesliShield engine
46
47
  Rails.application.routes.draw do
47
48
  mount LesliShield::Engine => "/shield"
@@ -49,12 +50,12 @@ end
49
50
  ```
50
51
 
51
52
  <br />
52
- <hr/>
53
+ <hr />
53
54
  <br />
54
55
 
55
56
  ### Development
56
57
 
57
- ```shell
58
+ ```ruby
58
59
  # clone the lesli repo inside your engine folder: RailsApp/engines
59
60
  git clone https://github.com/LesliTech/LesliShield.git
60
61
 
@@ -70,7 +71,7 @@ rake lesli:db:setup
70
71
  ```
71
72
 
72
73
  <br />
73
- <hr/>
74
+ <hr />
74
75
  <br />
75
76
 
76
77
  ### Demo
@@ -86,9 +87,9 @@ rake lesli:db:setup
86
87
 
87
88
  ### Connect with Lesli
88
89
 
89
- * [X: @LesliTech](https://x.com/LesliTech)
90
- * [Email: hello@lesli.tech](hello@lesli.tech)
91
- * [Website: https://www.lesli.tech](https://www.lesli.tech)
90
+ * [@LesliTech](https://x.com/LesliTech)
91
+ * [hello@lesli.tech](hello@lesli.tech)
92
+ * [https://www.lesli.tech](https://www.lesli.tech)
92
93
 
93
94
 
94
95
  ### License
@@ -108,7 +109,6 @@ GNU General Public License for more details.
108
109
  You should have received a copy of the GNU General Public License
109
110
  along with this program. If not, see http://www.gnu.org/licenses/.
110
111
 
111
- <br />
112
112
  <hr />
113
113
  <br />
114
114
  <br />
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_shield
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
@@ -15,28 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '5.0'
18
+ version: 5.1.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '5.0'
26
- - !ruby/object:Gem::Dependency
27
- name: devise
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '5.0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '5.0'
25
+ version: 5.1.0
40
26
  description: "Provides a complete authentication and authorization solution for The
41
27
  Lesli Framework, \nincluding user session management, secure login and logout, role-based
42
28
  access control, \nand permission handling.\n"
@@ -48,6 +34,8 @@ extra_rdoc_files: []
48
34
  files:
49
35
  - Rakefile
50
36
  - app/assets/config/lesli_shield_manifest.js
37
+ - app/assets/images/lesli_shield/login-background.jpg
38
+ - app/assets/images/lesli_shield/register-background.jpg
51
39
  - app/assets/images/lesli_shield/shield-logo.svg
52
40
  - app/assets/javascripts/lesli_shield/application.js
53
41
  - app/assets/javascripts/lesli_shield/confirmations.js
@@ -191,15 +179,6 @@ files:
191
179
  - lib/lesli_shield/engine.rb
192
180
  - lib/lesli_shield/router.rb
193
181
  - lib/lesli_shield/version.rb
194
- - lib/scss/_devise-simple.scss
195
- - lib/scss/_devise.scss
196
- - lib/scss/application.scss
197
- - lib/scss/confirmations.scss
198
- - lib/scss/devise/oauth.scss
199
- - lib/scss/passwords.scss
200
- - lib/scss/registrations.scss
201
- - lib/scss/sessions.scss
202
- - lib/scss/users.scss
203
182
  - lib/tasks/lesli_shield_tasks.rake
204
183
  - license
205
184
  - readme.md
@@ -1,90 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
- // ·
35
- @use "lesli-css" as lesli;
36
- @use "LesliAssets/lib/lesli_assets_styles/templates/public";
37
-
38
-
39
- // ·
40
- main {
41
- background: white;
42
-
43
- // logo container
44
- .hero-head {
45
- padding: 8rem 0 4rem;
46
-
47
- .lesli-logo {
48
- max-width: 130px;
49
- margin-bottom: 1rem;
50
- }
51
- }
52
-
53
- // form container
54
- .hero-body {
55
- flex-direction: column;
56
- background-color: whitesmoke;
57
- border-top: 1px solid #ebebeb;
58
-
59
- form {
60
- width: 100%;
61
- padding: 4rem;
62
- max-width: 750px;
63
- margin: 2rem auto;
64
- border-radius: 6px;
65
- border: 1px solid #ececec;
66
- background-color: white;
67
-
68
- .label {
69
- font-size: 1.1rem;
70
- font-weight: 600;
71
- margin-bottom: 0;
72
- color: lesli.lesli-color(slate, 500);
73
- }
74
- }
75
-
76
- .links {
77
- display: flex;
78
-
79
- a {
80
- display: flex;
81
- align-items: center;
82
- font-family: "OpenSans";
83
- // add margin only to the middle links
84
- &:not(:first-child):not(:last-child) {
85
- margin: 0 1rem;
86
- }
87
- }
88
- }
89
- }
90
- }
@@ -1,154 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
-
35
- // ·
36
- @use "lesli-css" as lesli;
37
- @use "LesliAssets/lib/lesli_assets_styles/templates/public";
38
-
39
-
40
- // · Configuration & variables
41
- @use "LesliAssets/lib/lesli_assets_styles/settings/variables";
42
-
43
-
44
- // · headings and links
45
- h1, h2, h3, h4, h5, h6, a {
46
- font-family: "Domine", variables.$family-primary;
47
- }
48
-
49
-
50
- // ·
51
- .shield-form-demo {
52
- width: 100%;
53
- border-radius: 4px;
54
- border: 1px solid silver;
55
- }
56
-
57
-
58
- // login form container
59
- .column.login-form {
60
- max-width: 550px;
61
- margin: 0 auto;
62
-
63
- // logo container
64
- .logo {
65
- img {
66
- width: initial;
67
- height: initial;
68
- }
69
- p {
70
- font-weight: 600;
71
- text-align: left;
72
- }
73
- }
74
-
75
- .is-title {
76
- line-height: 1.2;
77
- max-width: 400px;
78
- }
79
-
80
- form {
81
- max-width: 310px;
82
-
83
- label {
84
- font-weight: 400;
85
- font-size: 15px;
86
- line-height: 150%;
87
- }
88
-
89
- input {
90
- border-radius: 6px;
91
- box-shadow: none;
92
- }
93
-
94
- input[type="password"] {
95
- font-family: Verdana;
96
- letter-spacing: 0.1rem;
97
- }
98
-
99
- p.help {
100
- font-weight: 600;
101
- }
102
-
103
- p.account {
104
- font-size: 15px;
105
- font-weight: 400;
106
- }
107
- }
108
-
109
- .links {
110
-
111
- a {
112
- width: 100%;
113
- display: flex;
114
- flex-grow: 1;
115
- padding: .8rem 0;
116
- &:not(:last-child) {
117
- border-bottom: 1px solid lesli-css-color(silver, 300);
118
- }
119
- }
120
-
121
- span {
122
- font-family: "Domine";
123
- font-weight: 500;
124
- font-size: 14px;
125
- }
126
- }
127
-
128
- .terms {
129
- font-size: 13px;
130
- line-height: 19px;
131
- }
132
- }
133
-
134
- @include lesli.lesli-breakpoint-until-tablet() {
135
-
136
- // login column must be full width on mobile
137
- .column.login-form {
138
- width: 100%;
139
- max-width: 100%;
140
-
141
- .hero {
142
- padding: 2rem 0;
143
- }
144
-
145
- // center the form
146
- .hero-body {
147
- margin: 0 auto;
148
- max-width: 500px;
149
- background-color: white;
150
- border-radius: 6px;
151
- padding: 1rem 3rem;
152
- }
153
- }
154
- }
@@ -1,6 +0,0 @@
1
-
2
-
3
- // // ·
4
- // body.lesli_shield-users {
5
- // @import "./users";
6
- // }
@@ -1,58 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2023, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by https://www.lesli.tech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
- // ·
35
- @use "lesli-css" as lesli;
36
- @use "devise-simple";
37
-
38
-
39
- // ·
40
- div.confirmation-message {
41
- //box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
42
- padding: 4rem 0 5rem;
43
- text-align: center;
44
- max-width: 800px;
45
- margin: 0 auto;
46
- width: 90%;
47
-
48
- svg {
49
- max-width: 90px;
50
- margin-bottom: 1rem;
51
- fill: lesli.lesli-color(lime, 300);
52
- }
53
-
54
- p {
55
- font-size: 2rem;
56
- }
57
-
58
- }
@@ -1,34 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2023, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Your Smart Business Assistant.
21
-
22
- Made with ♥ by https://www.lesli.tech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
-
32
- */
33
-
34
- //@import "templates/component";
@@ -1,35 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
- // ·
35
- @use "devise-simple";
@@ -1,67 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
-
35
- // ·
36
- @use "lesli-css" as lesli;
37
-
38
-
39
- // ·
40
- @use "devise";
41
-
42
-
43
- // ·
44
- @mixin lesli-register-background() {
45
- background: linear-gradient(0deg,
46
- rgba(49, 106, 255, 0.4),
47
- rgba(49, 106, 255, 0.4)),
48
- url("/lesli/brand/register-background.jpg");
49
- background-position: center;
50
- background-size: cover;
51
- }
52
-
53
-
54
- // ·
55
- .column.background {
56
- @include lesli-register-background;
57
- }
58
-
59
-
60
- // ·
61
- @include lesli.lesli-breakpoint-until-tablet() {
62
-
63
- // login column must be full width on mobile
64
- .column.login-form {
65
- @include lesli-register-background;
66
- }
67
- }
@@ -1,66 +0,0 @@
1
- /*
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- */
32
-
33
-
34
- // ·
35
- @use "lesli-css" as lesli;
36
-
37
-
38
- // ·
39
- @use "devise";
40
-
41
-
42
- // ·
43
- @mixin lesli-login-background() {
44
- background: linear-gradient(0deg,
45
- rgba(49, 106, 255, 0.4),
46
- rgba(49, 106, 255, 0.4)),
47
- url("/lesli/brand/login-background.jpg");
48
- background-position: center;
49
- background-size: cover;
50
- }
51
-
52
-
53
- // ·
54
- .column.background {
55
- @include lesli-login-background;
56
- }
57
-
58
-
59
- // ·
60
- @include lesli.lesli-breakpoint-until-tablet() {
61
-
62
- // login column must be full width on mobile
63
- .column.login-form {
64
- @include lesli-login-background;
65
- }
66
- }