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 +4 -4
- data/lib/lesli_system/{engine.rb → klass.rb} +14 -8
- data/lib/lesli_system/version.rb +2 -2
- data/lib/lesli_system.rb +2 -2
- data/readme.md +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca2f985bba41f1b07e9c73bbe003b8851f52977d136286f101a9b3bd9844d615
|
4
|
+
data.tar.gz: bbc7cfa278a1f0bee91abd7a303eecc5dede64160a936745a16e30352a967d68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
data/lib/lesli_system/version.rb
CHANGED
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
|
-
|
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.
|
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-
|
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
|