lesli 5.1.19 → 5.1.20

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: c07a995f4a15a9beca26b4fb86c51768a1a07347f874bca5c59bfddcbac4fee0
4
- data.tar.gz: 752b18e061bcef01f65b79847b0041561c4e8736da85e186e8b5bebe826c6b91
3
+ metadata.gz: 15e25dbf55b381fee079fd063d7cfd6fc878fc6b722cc0f2b2e548a2413a7cdd
4
+ data.tar.gz: c3885ff907fffd2cae3e639ad29b1aa0d535676c1722de4534fd6e06cccc2da9
5
5
  SHA512:
6
- metadata.gz: a7dd31c7b7101af6333443acbc3f3e2e2f0647625a424b5eaaab408075f8fd47fd7cf2e870158b2c2c7920dc13cd73e3f617cd228acb4f83fa05abc34c531a53
7
- data.tar.gz: 8d3e21fafcbd7dd5a7a22cba8489b222426f666ac21ab2db737eca7fe678c01a74bfae31072b4a1a7cf886b8fc395d8c5783771b95a9f7583c115292034d3cc0
6
+ metadata.gz: c10a33347c83c8c3529b56955877f27f9274f68e17d99017c3a334efa2ebfbe3bcb7a9402b043cad71de31a089b9f507b58670fbc261731ee71f6cc7f80444c7
7
+ data.tar.gz: 84435440ce758ccb1ca17ec00393cd591a82042a917f38b76463f4501ac057d2e599f614481a44d743c9d757c9e6b2f2fbc5c28b879ba56cf71ea701733acc60
@@ -32,6 +32,7 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  module Lesli
34
34
  class ApplicationController < ActionController::Base
35
+ helper Lesli::HtmlHelper, Lesli::SystemHelper
35
36
  layout "lesli/layouts/application-public"
36
37
 
37
38
  protect_from_forgery with: :exception
@@ -246,9 +246,9 @@
246
246
  <section class="welcome-hero" aria-labelledby="welcome-title">
247
247
  <div class="welcome-content">
248
248
  <div class="welcome-brand">
249
- <%= customization_instance_logo_tag(
250
- logo: "app-logo",
251
- options: { alt: "Lesli", width: 192, height: 79 }
249
+ <%= image_tag(
250
+ Lesli.config.company[:logo].presence || "lesli_assets/brand/app-logo.svg",
251
+ alt: Lesli.config.company[:name], width: 192, height: 79
252
252
  ) %>
253
253
  </div>
254
254
 
@@ -44,6 +44,7 @@ Lesli.configure do |config|
44
44
  # Provides organization details displayed throughout the system.
45
45
  config.company = {
46
46
  name: "Lesli",
47
+ logo: "lesli_assets/brand/app-logo.svg",
47
48
  email: "hello@lesli.tech",
48
49
  tagline: "The Open-Source SaaS Development Framework for Ruby on Rails."
49
50
  }
@@ -35,7 +35,7 @@ class CreateLesliRoles < ActiveRecord::Migration[7.0]
35
35
 
36
36
  create_table :lesli_roles do |t|
37
37
  t.string :code
38
- t.string :name
38
+ t.string :name, null: false
39
39
  t.string :description
40
40
 
41
41
  # disable/enalbe role
@@ -66,6 +66,9 @@ class CreateLesliRoles < ActiveRecord::Migration[7.0]
66
66
  t.timestamps
67
67
  end
68
68
 
69
- add_reference(:lesli_roles, :account, foreign_key: { to_table: :lesli_accounts })
69
+ add_reference(:lesli_roles, :account, null: false, foreign_key: { to_table: :lesli_accounts })
70
+
71
+ # Match the model's case-insensitive uniqueness for non-deleted roles.
72
+ add_index(:lesli_roles, "account_id, LOWER(name)", unique: true, where: "deleted_at IS NULL", name: "idx_lesli_roles_unique_account_name")
70
73
  end
71
74
  end
data/lib/lesli/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Lesli
2
- VERSION = "5.1.19"
3
- BUILD = "1796077588"
2
+ VERSION = "5.1.20"
3
+ BUILD = "1796085068"
4
4
  end
data/readme.md CHANGED
@@ -115,6 +115,12 @@ bin/rails lesli:status
115
115
 
116
116
  `bin/rails lesli:db:prepare` loads engine seeds before host seeds when Rails initializes a database. To explicitly reapply seed data to an existing database, use `bin/rails lesli:db:seed`.
117
117
 
118
+ The original roles migration requires an account and a name, and enforces
119
+ case-insensitive name uniqueness within each account for non-deleted roles.
120
+ Soft-deleted roles free their names; disabled roles still reserve them.
121
+ Existing development databases must be rebuilt to apply these pre-production
122
+ constraints from the original migration.
123
+
118
124
  > [!WARNING]
119
125
  > `bin/rails lesli:db:rebuild` drops the database, rebuilds it from the migrations currently provided by the host and installed engines, regenerates the schema, loads seeds, configures Lesli accounts, and prints the system status. It runs only in the Rails development and test environments; use it only when you intentionally want to replace disposable data.
120
126
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.19
4
+ version: 5.1.20
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-11-30 00:00:00.000000000 Z
11
+ date: 2026-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails