lesli_system 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fadca1b7477c32c3a810a1f461022b5b83a8f5eb088685f3b88ec05c85bdba01
4
- data.tar.gz: 5f356cff4f6246e741203f4f318bd6955abfab01ad9e8773f24a1d2ca0f18569
3
+ metadata.gz: ca2f985bba41f1b07e9c73bbe003b8851f52977d136286f101a9b3bd9844d615
4
+ data.tar.gz: bbc7cfa278a1f0bee91abd7a303eecc5dede64160a936745a16e30352a967d68
5
5
  SHA512:
6
- metadata.gz: feb5d653e8e229848f8e32f7d11cd89fa17e9adc81bb309a42a720735130bb1c8a7dddcb726161b74f397d4f5966696ed19a4a924689b36363e20aaf7562706b
7
- data.tar.gz: 6dc38a4be96ddb535471dbe6269721f707370d5d1a624a8c50f284aeac772e8b4252031f511ba05ed5cb6d613ddc284f0adbcc946a872b74c592231973c99d18
6
+ metadata.gz: db1e71ff6101e27e74aba23657fe7fc999555d2cfae99a7cadfac6d8355fc409e8d828a1c0f9919336d809a408ae15acff7ed947197ebd37e7949188d27fbdf4
7
+ data.tar.gz: 249f5cd623dfd877ce2cd8c677c02394dddddf47b537a5619acc7157cf2b44590071b80a755946e52bda150df4ef27ca5e16286ba6a08201e7813d2cc86d797b
@@ -1,4 +1,4 @@
1
- =begin
1
+ =begin
2
2
 
3
3
  Lesli
4
4
 
@@ -31,11 +31,17 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module LesliSystem
34
- # class Engine < ::Rails::Engine
35
- # isolate_namespace LesliSystem
36
-
37
- # initializer "lesli_system" do |app|
38
-
39
- # end
40
- # end
34
+ class Klass
35
+ ModelStruct = Struct.new(:account, :dashboard)
36
+
37
+ attr_reader :engine_name, :model
38
+
39
+ def initialize(klass = nil)
40
+ @engine_name = klass.class.name.split("::").first
41
+ @model = ModelStruct.new(
42
+ "#{@engine_name}::Account".constantize,
43
+ "#{@engine_name}::Dashboard".constantize
44
+ )
45
+ end
46
+ end
41
47
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LesliSystem
4
- VERSION = "1.0.0"
5
- BUILD = "1751334981"
4
+ VERSION = "1.0.1"
5
+ BUILD = "1752158466"
6
6
  end
data/lib/lesli_system.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # loading gem coomponents
4
- require "lesli_system/engines"
5
4
  require "lesli_system/version"
6
- #require "lesli_system/engine"
5
+ require "lesli_system/engines"
6
+ require "lesli_system/klass"
7
7
 
8
8
  module LesliSystem
9
9
  class Error < StandardError; end
data/readme.md CHANGED
@@ -73,6 +73,18 @@ LesliSystem.engine("Lesli", "path")
73
73
  "/lesli"
74
74
  ```
75
75
 
76
+ ```ruby
77
+ module LesliBell
78
+ class DashboardsController < ApplicationController
79
+ def index
80
+ # Build a standard object based on a controller reference
81
+ builder = LesliSystem::Klass.new(self)
82
+ @dashboards = builder.model.dashboard.all
83
+ end
84
+ end
85
+ end
86
+ ```
87
+
76
88
  ### Documentation
77
89
  * [website](https://www.lesli.dev/)
78
90
  * [database](./docs/database.md)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-01 00:00:00.000000000 Z
11
+ date: 2025-07-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  LesliSystem provides shared, reusable system-level components for The Lesli Framework.
@@ -22,8 +22,8 @@ extra_rdoc_files: []
22
22
  files:
23
23
  - Rakefile
24
24
  - lib/lesli_system.rb
25
- - lib/lesli_system/engine.rb
26
25
  - lib/lesli_system/engines.rb
26
+ - lib/lesli_system/klass.rb
27
27
  - lib/lesli_system/version.rb
28
28
  - license
29
29
  - readme.md