lesli_shield 1.1.7 → 1.1.9

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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/lesli_shield/application.css +1036 -32
  3. data/app/assets/stylesheets/lesli_shield/confirmations.css +89 -557
  4. data/app/assets/stylesheets/lesli_shield/invitations.css +544 -0
  5. data/app/assets/stylesheets/lesli_shield/passwords.css +76 -542
  6. data/app/assets/stylesheets/lesli_shield/registrations.css +66 -539
  7. data/app/assets/stylesheets/lesli_shield/sessions.css +98 -564
  8. data/app/controllers/lesli_shield/invites_controller.rb +100 -49
  9. data/app/controllers/lesli_shield/profiles_controller.rb +9 -3
  10. data/app/controllers/lesli_shield/role/actions_controller.rb +134 -38
  11. data/app/controllers/lesli_shield/roles_controller.rb +114 -141
  12. data/app/controllers/lesli_shield/users_controller.rb +11 -4
  13. data/app/controllers/users/confirmations_controller.rb +2 -2
  14. data/app/controllers/users/invitations_controller.rb +101 -0
  15. data/app/controllers/users/passwords_controller.rb +1 -1
  16. data/app/controllers/users/registrations_controller.rb +2 -2
  17. data/app/controllers/users/sessions_controller.rb +3 -1
  18. data/app/jobs/lesli_shield/invitation_delivery_job.rb +123 -0
  19. data/app/mailers/lesli_shield/devise_mailer.rb +3 -3
  20. data/app/mailers/lesli_shield/invitation_mailer.rb +58 -0
  21. data/app/models/concerns/lesli_shield/role_management.rb +70 -0
  22. data/app/models/concerns/lesli_shield/user_security.rb +22 -19
  23. data/app/models/lesli_shield/invite.rb +183 -12
  24. data/app/services/lesli_shield/invitation_audit.rb +34 -0
  25. data/app/services/lesli_shield/invitation_email_policy.rb +64 -0
  26. data/app/services/lesli_shield/invitation_service.rb +405 -0
  27. data/app/services/lesli_shield/invite_service.rb +34 -5
  28. data/app/services/lesli_shield/profile_service.rb +1 -0
  29. data/app/services/lesli_shield/role_action_service.rb +37 -92
  30. data/app/services/lesli_shield/role_audit.rb +42 -0
  31. data/app/services/lesli_shield/role_permission_service.rb +347 -0
  32. data/app/services/lesli_shield/role_privilege_deployment_service.rb +79 -0
  33. data/app/services/lesli_shield/role_privilege_service.rb +69 -105
  34. data/app/services/lesli_shield/role_service.rb +431 -0
  35. data/app/services/lesli_shield/user_registration_service.rb +1 -1
  36. data/app/services/lesli_shield/user_validator_service.rb +9 -9
  37. data/app/views/devise/confirmations/new.html.erb +6 -6
  38. data/app/views/devise/confirmations/show.html.erb +6 -6
  39. data/app/views/devise/passwords/edit.html.erb +8 -8
  40. data/app/views/devise/passwords/new.html.erb +9 -9
  41. data/app/views/devise/registrations/new.html.erb +16 -16
  42. data/app/views/devise/sessions/new.html.erb +9 -9
  43. data/app/views/devise/shared/_application-devise-simple.erb +1 -1
  44. data/app/views/devise/shared/_application-devise.html.erb +4 -4
  45. data/app/views/devise/shared/_demo.html.erb +5 -5
  46. data/app/views/devise/shared/_error_messages.html.erb +5 -5
  47. data/app/views/devise/shared/_links.html.erb +12 -15
  48. data/app/views/lesli_shield/invites/_form.html.erb +64 -7
  49. data/app/views/lesli_shield/invites/_invite.html.erb +55 -2
  50. data/app/views/lesli_shield/invites/_invite_actions.html.erb +34 -0
  51. data/app/views/lesli_shield/invites/_status_badge.html.erb +13 -0
  52. data/app/views/lesli_shield/invites/index.html.erb +119 -63
  53. data/app/views/lesli_shield/invites/new.html.erb +11 -36
  54. data/app/views/lesli_shield/invites/show.html.erb +13 -52
  55. data/app/views/lesli_shield/profiles/_information-form.html.erb +11 -0
  56. data/app/views/lesli_shield/profiles/_password-form.html.erb +1 -1
  57. data/app/views/lesli_shield/profiles/show.html.erb +1 -4
  58. data/app/views/lesli_shield/role/actions/_custom_actions.html.erb +24 -0
  59. data/app/views/lesli_shield/role/actions/_deployment_status.html.erb +14 -0
  60. data/app/views/lesli_shield/role/actions/_matrix.html.erb +69 -0
  61. data/app/views/lesli_shield/role/actions/_permissions.html.erb +95 -0
  62. data/app/views/lesli_shield/role/actions/_toggle.html.erb +34 -0
  63. data/app/views/lesli_shield/role/actions/index.html.erb +13 -10
  64. data/app/views/lesli_shield/roles/_deployment_badge.html.erb +15 -0
  65. data/app/views/lesli_shield/roles/_empty_state.html.erb +20 -0
  66. data/app/views/lesli_shield/roles/_field_errors.html.erb +5 -0
  67. data/app/views/lesli_shield/roles/_filters.html.erb +66 -0
  68. data/app/views/lesli_shield/roles/_form.html.erb +149 -18
  69. data/app/views/lesli_shield/roles/_management_menu.html.erb +37 -0
  70. data/app/views/lesli_shield/roles/_pagination.html.erb +43 -0
  71. data/app/views/lesli_shield/roles/_role_list.html.erb +116 -0
  72. data/app/views/lesli_shield/roles/_status_badge.html.erb +11 -0
  73. data/app/views/lesli_shield/roles/_type_badge.html.erb +9 -0
  74. data/app/views/lesli_shield/roles/index.html.erb +15 -38
  75. data/app/views/lesli_shield/roles/new.html.erb +11 -0
  76. data/app/views/lesli_shield/roles/show.html.erb +79 -7
  77. data/app/views/lesli_shield/users/_information-card.html.erb +3 -3
  78. data/app/views/lesli_shield/users/_information-form.html.erb +6 -0
  79. data/app/views/lesli_shield/users/_management-privileges.html.erb +2 -2
  80. data/app/views/users/invitations/show.html.erb +142 -0
  81. data/app/views/users/invitations/unavailable.html.erb +19 -0
  82. data/config/locales/devise.en.yml +8 -0
  83. data/config/locales/devise.es.yml +8 -0
  84. data/config/locales/translations.en.yml +313 -78
  85. data/config/locales/translations.es.yml +313 -78
  86. data/config/routes.rb +10 -3
  87. data/db/migrate/v1/0801120110_create_lesli_shield_invites.rb +40 -6
  88. data/lib/lesli_shield/engine.rb +4 -0
  89. data/lib/lesli_shield/router.rb +10 -0
  90. data/lib/lesli_shield/version.rb +2 -2
  91. data/lib/tasks/lesli_shield_tasks.rake +1 -1
  92. data/readme.md +13 -1
  93. metadata +35 -11
  94. data/app/assets/stylesheets/lesli_shield/confirmations.tailwind.css +0 -918
  95. data/app/assets/stylesheets/lesli_shield/devise/oauth.css +0 -33
  96. data/app/assets/stylesheets/lesli_shield/passwords.tailwind.css +0 -873
  97. data/app/assets/stylesheets/lesli_shield/registrations.tailwind.css +0 -908
  98. data/app/assets/stylesheets/lesli_shield/sessions.tailwind.css +0 -984
  99. data/app/assets/stylesheets/lesli_shield/users.css +0 -31
  100. data/app/mailers/lesli_shield/invitation.html.erb +0 -23
  101. data/app/views/lesli_shield/invites/edit.html.erb +0 -12
  102. data/app/views/lesli_shield/role/actions/_form.html.erb +0 -75
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.1.7
4
+ version: 1.1.9
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: 2026-10-23 00:00:00.000000000 Z
11
+ date: 2026-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lesli
@@ -58,15 +58,10 @@ files:
58
58
  - app/assets/javascripts/lesli_shield/sessions.js
59
59
  - app/assets/stylesheets/lesli_shield/application.css
60
60
  - app/assets/stylesheets/lesli_shield/confirmations.css
61
- - app/assets/stylesheets/lesli_shield/confirmations.tailwind.css
62
- - app/assets/stylesheets/lesli_shield/devise/oauth.css
61
+ - app/assets/stylesheets/lesli_shield/invitations.css
63
62
  - app/assets/stylesheets/lesli_shield/passwords.css
64
- - app/assets/stylesheets/lesli_shield/passwords.tailwind.css
65
63
  - app/assets/stylesheets/lesli_shield/registrations.css
66
- - app/assets/stylesheets/lesli_shield/registrations.tailwind.css
67
64
  - app/assets/stylesheets/lesli_shield/sessions.css
68
- - app/assets/stylesheets/lesli_shield/sessions.tailwind.css
69
- - app/assets/stylesheets/lesli_shield/users.css
70
65
  - app/controllers/lesli_shield/application_controller.rb
71
66
  - app/controllers/lesli_shield/dashboards_controller.rb
72
67
  - app/controllers/lesli_shield/invites_controller.rb
@@ -79,6 +74,7 @@ files:
79
74
  - app/controllers/lesli_shield/user/roles_controller.rb
80
75
  - app/controllers/lesli_shield/users_controller.rb
81
76
  - app/controllers/users/confirmations_controller.rb
77
+ - app/controllers/users/invitations_controller.rb
82
78
  - app/controllers/users/omniauth_callbacks_controller.rb
83
79
  - app/controllers/users/passwords_controller.rb
84
80
  - app/controllers/users/registrations_controller.rb
@@ -94,9 +90,11 @@ files:
94
90
  - app/interfaces/lesli_shield/authentication_interface.rb
95
91
  - app/interfaces/lesli_shield/authorization_interface.rb
96
92
  - app/jobs/lesli_shield/application_job.rb
93
+ - app/jobs/lesli_shield/invitation_delivery_job.rb
97
94
  - app/mailers/lesli_shield/application_mailer.rb
98
95
  - app/mailers/lesli_shield/devise_mailer.rb
99
- - app/mailers/lesli_shield/invitation.html.erb
96
+ - app/mailers/lesli_shield/invitation_mailer.rb
97
+ - app/models/concerns/lesli_shield/role_management.rb
100
98
  - app/models/concerns/lesli_shield/user_authentication.rb
101
99
  - app/models/concerns/lesli_shield/user_security.rb
102
100
  - app/models/lesli_shield/account.rb
@@ -109,11 +107,18 @@ files:
109
107
  - app/models/lesli_shield/user.rb
110
108
  - app/models/lesli_shield/user/role.rb
111
109
  - app/models/lesli_shield/user/session.rb
110
+ - app/services/lesli_shield/invitation_audit.rb
111
+ - app/services/lesli_shield/invitation_email_policy.rb
112
+ - app/services/lesli_shield/invitation_service.rb
112
113
  - app/services/lesli_shield/invite_service.rb
113
114
  - app/services/lesli_shield/profile/password_service.rb
114
115
  - app/services/lesli_shield/profile_service.rb
115
116
  - app/services/lesli_shield/role_action_service.rb
117
+ - app/services/lesli_shield/role_audit.rb
118
+ - app/services/lesli_shield/role_permission_service.rb
119
+ - app/services/lesli_shield/role_privilege_deployment_service.rb
116
120
  - app/services/lesli_shield/role_privilege_service.rb
121
+ - app/services/lesli_shield/role_service.rb
117
122
  - app/services/lesli_shield/tokens.rb
118
123
  - app/services/lesli_shield/user_registration_service.rb
119
124
  - app/services/lesli_shield/user_session_service.rb
@@ -144,16 +149,31 @@ files:
144
149
  - app/views/lesli_shield/dashboards/_component-weather.html.erb
145
150
  - app/views/lesli_shield/invites/_form.html.erb
146
151
  - app/views/lesli_shield/invites/_invite.html.erb
147
- - app/views/lesli_shield/invites/edit.html.erb
152
+ - app/views/lesli_shield/invites/_invite_actions.html.erb
153
+ - app/views/lesli_shield/invites/_status_badge.html.erb
148
154
  - app/views/lesli_shield/invites/index.html.erb
149
155
  - app/views/lesli_shield/invites/new.html.erb
150
156
  - app/views/lesli_shield/invites/show.html.erb
151
157
  - app/views/lesli_shield/partials/_navigation.html.erb
158
+ - app/views/lesli_shield/profiles/_information-form.html.erb
152
159
  - app/views/lesli_shield/profiles/_password-form.html.erb
153
160
  - app/views/lesli_shield/profiles/show.html.erb
154
- - app/views/lesli_shield/role/actions/_form.html.erb
161
+ - app/views/lesli_shield/role/actions/_custom_actions.html.erb
162
+ - app/views/lesli_shield/role/actions/_deployment_status.html.erb
163
+ - app/views/lesli_shield/role/actions/_matrix.html.erb
164
+ - app/views/lesli_shield/role/actions/_permissions.html.erb
165
+ - app/views/lesli_shield/role/actions/_toggle.html.erb
155
166
  - app/views/lesli_shield/role/actions/index.html.erb
167
+ - app/views/lesli_shield/roles/_deployment_badge.html.erb
168
+ - app/views/lesli_shield/roles/_empty_state.html.erb
169
+ - app/views/lesli_shield/roles/_field_errors.html.erb
170
+ - app/views/lesli_shield/roles/_filters.html.erb
156
171
  - app/views/lesli_shield/roles/_form.html.erb
172
+ - app/views/lesli_shield/roles/_management_menu.html.erb
173
+ - app/views/lesli_shield/roles/_pagination.html.erb
174
+ - app/views/lesli_shield/roles/_role_list.html.erb
175
+ - app/views/lesli_shield/roles/_status_badge.html.erb
176
+ - app/views/lesli_shield/roles/_type_badge.html.erb
157
177
  - app/views/lesli_shield/roles/index.html.erb
158
178
  - app/views/lesli_shield/roles/new.html.erb
159
179
  - app/views/lesli_shield/roles/show.html.erb
@@ -185,7 +205,11 @@ files:
185
205
  - app/views/lesli_shield/users/index.html.erb
186
206
  - app/views/lesli_shield/users/new.html.erb
187
207
  - app/views/lesli_shield/users/show.html.erb
208
+ - app/views/users/invitations/show.html.erb
209
+ - app/views/users/invitations/unavailable.html.erb
188
210
  - config/initializers/devise.rb
211
+ - config/locales/devise.en.yml
212
+ - config/locales/devise.es.yml
189
213
  - config/locales/translations.en.yml
190
214
  - config/locales/translations.es.yml
191
215
  - config/routes.rb