lesli 5.1.0 → 5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e75a2365623cbc3a027ab7f7d3369b889e4338329abc2d2c0a6c1a02d13e85c
4
- data.tar.gz: 16b78e83a7728bc919a99cba8ab98cbd3fecd3b399181c5c702eeba86e9a2331
3
+ metadata.gz: d8bcebb6d3d2d5ea33fe19e472a0e4332a6bf3da560d1d190900433cc98ad92c
4
+ data.tar.gz: 8cbbd81d6e4a08666e9846226e3b0e48ed87a894ad420599dbc7362572409cb8
5
5
  SHA512:
6
- metadata.gz: 63ad9a17d31d1d42da5559882dcd5148af37930159becd88023937ae25a08d53f213795e371d6a970412863c85e838c4c3a0f620e0d51836a3d13a93a5ab4fd5
7
- data.tar.gz: ec30a9449b36d01f07777f793bcff6993ace743fd3f9b015d07dd1403c01d11eb439d4822aaf8625a34dc87c4b8cb8a5014bc6b3764b65e6a3ed76dd028eb2b9
6
+ metadata.gz: e35418f65926ed377dabae4c838c6e1abbca690727e12aeb0735262f93ce6fb1533b29915c5378acbe06d72884fc9b36b0d8e04c83aa5ad868bf7891ac7fed33
7
+ data.tar.gz: 36a495f49d761b7ba6824a9ef84baa6ac425028bff9fc9592035df333c48b96204db1366b29ccb9e514dbf96440e7eb8239f8d89b98d67c0637be098afdf4836
@@ -1 +1,192 @@
1
- body.lesli.apps.show .lesli-element-header{margin-bottom:5rem !important}body.lesli.apps.show .engines{gap:24px;margin-inline-end:auto;margin-inline-start:auto}body.lesli.apps.show .engines a{flex-basis:318px;text-align:center;padding:2rem .4rem 2.8rem;border:#fff 1px solid;border-radius:6px;background-color:#fff;transition:all ease-in-out .2s;box-shadow:rgba(9,30,66,.25) 0px 4px 8px -2px,rgba(9,30,66,.08) 0px 0px 0px 1px}body.lesli.apps.show .engines a:hover{border-color:var(--lesli-color-primary);transform:translateY(-2px)}body.lesli.apps.show .engines a.is-active{background-color:#f0f4ff;border-color:var(--lesli-color-primary)}body.lesli.apps.show .engines a svg{margin-right:.4rem;fill:var(--lesli-color-primary)}body.lesli.apps.show .engines a p{font-size:14;font-family:"OpenSans"}body.lesli.apps.show .engines a span{font-weight:600;font-size:20px}body.lesli.apps.show .engines a span,body.lesli.apps.show .engines a p{color:var(--lesli-color-primary)}
1
+ @charset "UTF-8";
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
+ Lesli
34
+
35
+ Copyright (c) 2025, Lesli Technologies, S. A.
36
+
37
+ This program is free software: you can redistribute it and/or modify
38
+ it under the terms of the GNU General Public License as published by
39
+ the Free Software Foundation, either version 3 of the License, or
40
+ (at your option) any later version.
41
+
42
+ This program is distributed in the hope that it will be useful,
43
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
44
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45
+ GNU General Public License for more details.
46
+
47
+ You should have received a copy of the GNU General Public License
48
+ along with this program. If not, see http://www.gnu.org/licenses/.
49
+
50
+ Lesli · Ruby on Rails SaaS Development Framework.
51
+
52
+ Made with ♥ by LesliTech
53
+ Building a better future, one line of code at a time.
54
+
55
+ @contact hello@lesli.tech
56
+ @website https://www.lesli.tech
57
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
58
+
59
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
60
+ // ·
61
+ */
62
+ /**
63
+ Lesli
64
+
65
+ Copyright (c) 2025, Lesli Technologies, S. A.
66
+
67
+ This program is free software: you can redistribute it and/or modify
68
+ it under the terms of the GNU General Public License as published by
69
+ the Free Software Foundation, either version 3 of the License, or
70
+ (at your option) any later version.
71
+
72
+ This program is distributed in the hope that it will be useful,
73
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
74
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75
+ GNU General Public License for more details.
76
+
77
+ You should have received a copy of the GNU General Public License
78
+ along with this program. If not, see http://www.gnu.org/licenses/.
79
+
80
+ Lesli - SCSS Utilities for websites, apps and web applications
81
+
82
+ Made with ♥ by LesliTech
83
+ Building a better future, one line of code at a time.
84
+
85
+ @contact hello@lesli.tech
86
+ @website https://www.lesli.tech
87
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
88
+
89
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
90
+ // ·
91
+ */
92
+ /*
93
+ Lesli
94
+
95
+ Copyright (c) 2025, Lesli Technologies, S. A.
96
+
97
+ This program is free software: you can redistribute it and/or modify
98
+ it under the terms of the GNU General Public License as published by
99
+ the Free Software Foundation, either version 3 of the License, or
100
+ (at your option) any later version.
101
+
102
+ This program is distributed in the hope that it will be useful,
103
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
104
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
105
+ GNU General Public License for more details.
106
+
107
+ You should have received a copy of the GNU General Public License
108
+ along with this program. If not, see http://www.gnu.org/licenses/.
109
+
110
+ Lesli - SCSS Utilities for websites, apps and web applications
111
+
112
+ Made with ♥ by LesliTech
113
+ Building a better future, one line of code at a time.
114
+
115
+ @contact hello@lesli.tech
116
+ @website https://www.lesli.tech
117
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
118
+
119
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
120
+ // ·
121
+ */
122
+ /**
123
+ Lesli
124
+
125
+ Copyright (c) 2025, Lesli Technologies, S. A.
126
+
127
+ This program is free software: you can redistribute it and/or modify
128
+ it under the terms of the GNU General Public License as published by
129
+ the Free Software Foundation, either version 3 of the License, or
130
+ (at your option) any later version.
131
+
132
+ This program is distributed in the hope that it will be useful,
133
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
134
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
135
+ GNU General Public License for more details.
136
+
137
+ You should have received a copy of the GNU General Public License
138
+ along with this program. If not, see http://www.gnu.org/licenses/.
139
+
140
+ Lesli - SCSS Utilities for websites, apps and web applications
141
+
142
+ Made with ♥ by LesliTech
143
+ Building a better future, one line of code at a time.
144
+
145
+ @contact hello@lesli.tech
146
+ @website https://www.lesli.tech
147
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
148
+
149
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
150
+ // ·
151
+ */
152
+ body.lesli.apps.show .lesli-element-header {
153
+ margin-bottom: 5rem !important;
154
+ }
155
+ body.lesli.apps.show .engines {
156
+ gap: 24px;
157
+ margin-inline-end: auto;
158
+ margin-inline-start: auto;
159
+ }
160
+ body.lesli.apps.show .engines a {
161
+ flex-basis: 318px;
162
+ text-align: center;
163
+ padding: 2rem 0.4rem 2.8rem;
164
+ border: white 1px solid;
165
+ border-radius: 6px;
166
+ background-color: white;
167
+ transition: all ease-in-out 0.2s;
168
+ box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
169
+ }
170
+ body.lesli.apps.show .engines a:hover {
171
+ border-color: var(--lesli-color-primary);
172
+ transform: translateY(-2px);
173
+ }
174
+ body.lesli.apps.show .engines a.is-active {
175
+ background-color: #F0F4FF;
176
+ border-color: var(--lesli-color-primary);
177
+ }
178
+ body.lesli.apps.show .engines a svg {
179
+ margin-right: 0.4rem;
180
+ fill: var(--lesli-color-primary);
181
+ }
182
+ body.lesli.apps.show .engines a p {
183
+ font-size: 14;
184
+ font-family: "OpenSans";
185
+ }
186
+ body.lesli.apps.show .engines a span {
187
+ font-weight: 600;
188
+ font-size: 20px;
189
+ }
190
+ body.lesli.apps.show .engines a span, body.lesli.apps.show .engines a p {
191
+ color: var(--lesli-color-primary);
192
+ }
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  class ActivitiesController < ApplicationLesliController
36
36
  end
37
37
  end
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  class DiscussionsController < ApplicationLesliController
36
36
  before_action :set_discussion, only: %i[show update]
37
37
  before_action :set_discussable, only: %i[index create]
@@ -57,7 +57,7 @@ module Lesli
57
57
  respond_with_lesli(:turbo => [
58
58
  stream_notification_success("Discussion created"),
59
59
  turbo_stream.prepend("#{scope_key}-lesli-items-discussions-list") do
60
- LesliView::Item::Discussion.new(discussion).render_in(view_context)
60
+ LesliView::Items::Discussion.new(discussion).render_in(view_context)
61
61
  end
62
62
  ])
63
63
  else
@@ -73,7 +73,7 @@ module Lesli
73
73
  respond_with_lesli(:turbo => [
74
74
  stream_notification_success("Discussion updated #{@discussable}"),
75
75
  turbo_stream.replace(helpers.dom_id(@discussion, scope_key)) do
76
- LesliView::Item::Discussion.new(@discussion, scope_key).render_in(view_context)
76
+ LesliView::Items::Discussion.new(@discussion, scope_key).render_in(view_context)
77
77
  end
78
78
  ])
79
79
  end
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  class TasksController < ApplicationLesliController
36
36
  before_action :set_task, only: %i[show update]
37
37
  before_action :set_taskable, only: %i[index create]
@@ -57,7 +57,7 @@ module Lesli
57
57
  respond_with_lesli(:turbo => [
58
58
  stream_notification_success("Task created"),
59
59
  turbo_stream.prepend("#{scope_key}-lesli-items-tasks-list") do
60
- LesliView::Item::Task.new(task, scope_key).render_in(view_context)
60
+ LesliView::Items::Task.new(task, scope_key).render_in(view_context)
61
61
  end
62
62
  ])
63
63
  else
@@ -73,7 +73,7 @@ module Lesli
73
73
  respond_with_lesli(:turbo => [
74
74
  stream_notification_success("Task updated #{@taskable}"),
75
75
  turbo_stream.replace(helpers.dom_id(@task, scope_key)) do
76
- LesliView::Item::Task.new(@task, scope_key).render_in(view_context)
76
+ LesliView::Items::Task.new(@task, scope_key).render_in(view_context)
77
77
  end
78
78
  ])
79
79
  end
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  module Activities
36
36
  extend ActiveSupport::Concern
37
37
 
@@ -48,7 +48,7 @@ module Lesli
48
48
  klass = if use
49
49
  use.to_s.constantize
50
50
  else
51
- "#{name.deconstantize}::Item::Activity".constantize
51
+ "#{name.deconstantize}::Items::Activity".constantize
52
52
  end
53
53
 
54
54
  self.lesli_activities_class = klass
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  module Discussions
36
36
  extend ActiveSupport::Concern
37
37
 
@@ -53,7 +53,7 @@ module Lesli
53
53
  klass = if use
54
54
  use.to_s.constantize
55
55
  else
56
- "#{name.deconstantize}::Item::Discussion".constantize
56
+ "#{name.deconstantize}::Items::Discussion".constantize
57
57
  end
58
58
 
59
59
  self.lesli_discussions_class = klass
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  module Tasks
36
36
  extend ActiveSupport::Concern
37
37
 
@@ -53,7 +53,7 @@ module Lesli
53
53
  klass = if use
54
54
  use.to_s.constantize
55
55
  else
56
- "#{name.deconstantize}::Item::Task".constantize
56
+ "#{name.deconstantize}::Items::Task".constantize
57
57
  end
58
58
 
59
59
  self.lesli_tasks_class = klass
@@ -37,7 +37,7 @@ module Lesli
37
37
 
38
38
  CHARSET = "ABCDEFGHJKLMNPQRSTUVWXYZ"
39
39
 
40
- def generate_resource_uid(prefix:'Lesli', length:4)
40
+ def generate_resource_uid(prefix:nil, length:4)
41
41
 
42
42
  year = Time.current.year % 100
43
43
  month = Time.current.month
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  class Activity < ApplicationRecord
36
36
  self.abstract_class = true
37
37
  belongs_to :user, class_name: "Lesli::User"
@@ -1,5 +1,5 @@
1
1
  module Lesli
2
- module Item
2
+ module Items
3
3
  class Discussion < ApplicationRecord
4
4
  self.abstract_class = true
5
5
  belongs_to :user, class_name: "Lesli::User"
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  module Lesli
34
- module Item
34
+ module Items
35
35
  class Task < ApplicationRecord
36
36
  self.abstract_class = true
37
37
  belongs_to :user, class_name: "Lesli::User"
@@ -50,9 +50,11 @@ Building a better future, one line of code at a time.
50
50
 
51
51
 
52
52
  <%# Loading stylesheets from engines %>
53
+ <%#= stylesheet_link_tag(lesli_stylesheet_path(:lesli_assets, 'tailwind'), media: "all") %>
53
54
  <%= stylesheet_link_tag(lesli_stylesheet_path(:lesli_assets), media: "all") %>
54
55
  <%= stylesheet_link_tag(lesli_stylesheet_path(), media: "all") %>
55
56
 
57
+
56
58
  <%# Loading javascripts from engines %>
57
59
  <%= javascript_include_tag(lesli_stylesheet_path(:lesli_assets, 'application'), :defer => "defer") %>
58
60
  <%= yield(:application_lesli_javascript) %>
data/config/brakeman.yml CHANGED
@@ -4,18 +4,11 @@
4
4
 
5
5
  # Files and Directories to Skip
6
6
  skip_files:
7
- - "tmp/**/*" # Skip temporary files
8
- - "vendor/**/*" # Skip vendor folder
9
- - "node_modules/**/*" # Skip global node_modules
10
- - "engines/Lesli/node_modules/"
11
- - "engines/Lesli/app/items/*"
12
- - "engines/Lesli/app/models/lesli/cloud_object/"
13
- - "enginesdev/"
14
7
 
15
8
  # Warnings to Ignore (List Warning Codes)
16
9
  ignore_warnings:
17
- - "SQLi" # Example: Ignore false-positive SQL injection warnings
18
- - "WeakHash" # Ignore warnings about weak hashing if you're using MD5 intentionally
10
+ # - "SQLi" # Example: Ignore false-positive SQL injection warnings
11
+ # - "WeakHash" # Ignore warnings about weak hashing if you're using MD5 intentionally
19
12
 
20
13
  # Additional Checks
21
14
  checks_to_run:
@@ -26,10 +19,6 @@ checks_to_run:
26
19
  - "FileAccess"
27
20
  - "UnmaintainedDependency"
28
21
 
29
- # Additional Paths to Search for Code
30
- additional_libs_path:
31
- - "engines/Lesli/app/lib"
32
-
33
22
  # Confidence Levels to Report
34
23
  min_confidence: 2 # 0 (all warnings), 1 (medium), 2 (high)
35
24
 
data/lib/lesli/router.rb CHANGED
@@ -71,7 +71,7 @@ module Lesli
71
71
  router.resource :dashboard, only: %i[show edit]
72
72
 
73
73
  # Load Lesli items
74
- router.namespace :item do
74
+ router.namespace :items do
75
75
 
76
76
  # Load item tasks
77
77
  router.resources :tasks, only: %i[index update create]
data/lib/lesli/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Lesli
2
- VERSION = "5.1.0"
3
- BUILD = "1774678451"
2
+ VERSION = "5.1.1"
3
+ BUILD = "1776570122"
4
4
  end
@@ -40,12 +40,12 @@ module MigrationHelpers
40
40
  return [table_name, table_name_account]
41
41
  end
42
42
 
43
- def table_name_for_item(resources, item)
43
+ def table_name_for_items(resources, item)
44
44
 
45
45
  engine = infer_engine_from_namespace
46
46
 
47
47
  resource = resources.to_s.singularize
48
- table_name = "#{resource}_item_#{item}".to_sym
48
+ table_name = "#{resource}_items_#{item}".to_sym
49
49
  foreign_key = resource.sub("#{engine}_","")
50
50
 
51
51
  return [table_name, foreign_key]
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module ActivityStructure
36
36
  def create_table_lesli_item_activities_10(engine)
37
37
 
38
- table_name, foreign_key = table_name_for_item(engine, :activities)
38
+ table_name, foreign_key = table_name_for_items(engine, :activities)
39
39
 
40
40
  create_table table_name do |t|
41
41
 
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module AttachmentStructure
36
36
  def create_table_lesli_item_attachments_10(resources)
37
37
 
38
- table_name, foreign_key = table_name_for_item(resources, :attachments)
38
+ table_name, foreign_key = table_name_for_items(resources, :attachments)
39
39
 
40
40
  create_table table_name do |t|
41
41
  t.string :name
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module DiscussionStructure
36
36
  def create_table_lesli_item_discussions_10(engine)
37
37
 
38
- table_name, foreign_key = table_name_for_item(engine, :discussions)
38
+ table_name, foreign_key = table_name_for_items(engine, :discussions)
39
39
 
40
40
  create_table table_name do |t|
41
41
  t.text :message
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module SubscriberStructure
36
36
  def create_table_lesli_item_subscribers_10(resources)
37
37
 
38
- table_name, foreign_key = table_name_for_item(resources, :subscribers)
38
+ table_name, foreign_key = table_name_for_items(resources, :subscribers)
39
39
 
40
40
  create_table table_name do |t|
41
41
  t.timestamps
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module TaskStructure
36
36
  def create_table_lesli_item_tasks_10(engine)
37
37
 
38
- table_name, foreign_key = table_name_for_item(engine, :tasks)
38
+ table_name, foreign_key = table_name_for_items(engine, :tasks)
39
39
 
40
40
  create_table table_name do |t|
41
41
  t.string :title, null: false
@@ -35,7 +35,7 @@ module MigrationHelpers
35
35
  module VersionStructure
36
36
  def create_table_lesli_item_versions_10(resources)
37
37
 
38
- table_name, foreign_key = table_name_for_item(resources, :versions)
38
+ table_name, foreign_key = table_name_for_items(resources, :versions)
39
39
 
40
40
  create_table table_name do |t|
41
41
  t.string :column_name
@@ -85,12 +85,12 @@ namespace :lesli do
85
85
  L2.m("Drop the Lesli database (development only)")
86
86
 
87
87
  Rake::Task['db:drop'].invoke
88
- L2.info("Databases deleted")
88
+ Termline.info("Databases deleted")
89
89
 
90
90
  schema_file = Rails.root.join('db', 'schema.rb')
91
91
  if File.exist?(schema_file)
92
92
  File.delete(schema_file)
93
- L2.info("Schema.rb file deleted")
93
+ Termline.info("Schema.rb file deleted")
94
94
  end
95
95
  end
96
96
 
@@ -98,7 +98,7 @@ namespace :lesli do
98
98
  def create
99
99
 
100
100
  # print a message to let the users show the action running
101
- L2.m("Create the Lesli database")
101
+ Termline.info("Create the Lesli database")
102
102
 
103
103
  Rake::Task['db:create'].invoke
104
104
  end
@@ -142,15 +142,15 @@ namespace :lesli do
142
142
  end
143
143
 
144
144
  # scan rails routes to build the controllers index
145
- Rake::Task['lesli:shield:privileges'].invoke if defined?(LesliShield)
145
+ Rake::Task['lesli_shield:privileges'].invoke if defined?(LesliShield)
146
146
 
147
147
  if defined?(LesliBabel)
148
148
 
149
149
  # scan rails routes to build the base of translations
150
- Rake::Task['lesli:babel:scan'].invoke
150
+ Rake::Task['lesli_babel:scan'].invoke
151
151
 
152
152
  # import local translations into LesliBabel
153
- Rake::Task['lesli:babel:import'].invoke
153
+ Rake::Task['lesli_babel:import'].invoke
154
154
  end
155
155
  end
156
156
 
@@ -32,31 +32,6 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  # ·
34
34
  namespace :lesli do
35
- namespace :babel do
36
-
37
- desc "Scan and register labels"
38
- task :scan => :environment do |task, args|
39
- Rake::Task['lesli_babel:scan'].invoke
40
- end
41
-
42
- desc "Import local translations into LesliBabel"
43
- task :import => :environment do |task, args|
44
- Rake::Task['lesli_babel:import'].invoke
45
- end
46
-
47
- desc "Export translations to json files"
48
- task :export => :environment do |task, args|
49
- Rake::Task['lesli_babel:export'].invoke
50
- end
51
- end
52
-
53
- namespace :shield do
54
-
55
- desc "Syncing privileges for all the available roles"
56
- task :privileges => :environment do |task, args|
57
- Rake::Task['lesli_shield:privileges'].invoke
58
- end
59
- end
60
35
 
61
36
  desc "Lesli module status"
62
37
  task :status => :environment do |task, args|
@@ -88,18 +63,18 @@ namespace :lesli do
88
63
  end
89
64
 
90
65
  # print pretty instance information
91
- L2.br(2)
66
+ Termline.br(2)
92
67
 
93
68
  # core information
94
- L2.msg(instance)
95
- L2.br()
69
+ Termline.m(instance)
70
+ Termline.br()
96
71
 
97
72
  # print list of engines
98
- L2.table(engines)
99
- L2.br(2)
73
+ Termline.table(engines)
74
+ Termline.br(2)
100
75
 
101
- L2.m "Environment: " + Rails.env
102
- L2.br(2)
76
+ Termline.info "Environment: " + Rails.env
77
+ Termline.br(2)
103
78
 
104
79
  end
105
80
  end
data/readme.md CHANGED
@@ -122,9 +122,9 @@ RAILS_SERVE_STATIC_FILES=true rails s --environment=production
122
122
 
123
123
  ### Connect with Lesli
124
124
 
125
- * [X: @LesliTech](https://x.com/LesliTech)
126
- * [Email: hello@lesli.tech](hello@lesli.tech)
127
- * [Website: https://www.lesli.tech](https://www.lesli.tech)
125
+ * [@LesliTech](https://x.com/LesliTech)
126
+ * [hello@lesli.tech](hello@lesli.tech)
127
+ * [https://www.lesli.tech](https://www.lesli.tech)
128
128
 
129
129
 
130
130
  ### License
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
@@ -180,9 +180,9 @@ files:
180
180
  - app/controllers/lesli/application_devise_controller.rb
181
181
  - app/controllers/lesli/application_lesli_controller.rb
182
182
  - app/controllers/lesli/apps_controller.rb
183
- - app/controllers/lesli/item/activities_controller.rb
184
- - app/controllers/lesli/item/discussions_controller.rb
185
- - app/controllers/lesli/item/tasks_controller.rb
183
+ - app/controllers/lesli/items/activities_controller.rb
184
+ - app/controllers/lesli/items/discussions_controller.rb
185
+ - app/controllers/lesli/items/tasks_controller.rb
186
186
  - app/controllers/lesli/resources_controller.rb
187
187
  - app/controllers/lesli/roles_controller.rb
188
188
  - app/controllers/lesli/shared/dashboards_controller.rb
@@ -200,15 +200,15 @@ files:
200
200
  - app/mailers/lesli/application_mailer.rb
201
201
  - app/models/concerns/lesli/account_initializer.rb
202
202
  - app/models/concerns/lesli/account_logs.rb
203
- - app/models/concerns/lesli/item/activities.rb
204
- - app/models/concerns/lesli/item/discussions.rb
205
- - app/models/concerns/lesli/item/tasks.rb
203
+ - app/models/concerns/lesli/items/activities.rb
204
+ - app/models/concerns/lesli/items/discussions.rb
205
+ - app/models/concerns/lesli/items/tasks.rb
206
206
  - app/models/concerns/lesli/user_extensions.rb
207
207
  - app/models/lesli/account.rb
208
208
  - app/models/lesli/application_lesli_record.rb
209
- - app/models/lesli/item/activity.rb
210
- - app/models/lesli/item/discussion.rb
211
- - app/models/lesli/item/task.rb
209
+ - app/models/lesli/items/activity.rb
210
+ - app/models/lesli/items/discussion.rb
211
+ - app/models/lesli/items/task.rb
212
212
  - app/models/lesli/resource.rb
213
213
  - app/models/lesli/role.rb
214
214
  - app/models/lesli/shared/catalog.rb