lesli 5.1.1 → 5.1.2
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/app/helpers/lesli/html_helper.rb +1 -1
- data/app/models/concerns/lesli/items/activities.rb +1 -1
- data/app/views/lesli/partials/_application-lesli-assets.html.erb +3 -4
- data/db/seed/accounts.rb +2 -2
- data/db/seed/users.rb +2 -2
- data/db/seeds.rb +1 -1
- data/lib/lesli/engine.rb +0 -1
- data/lib/lesli/version.rb +2 -2
- data/lib/tasks/lesli/db.rake +5 -5
- data/lib/tasks/lesli/dev.rake +1 -1
- data/lib/tasks/lesli/engine.rake +1 -1
- data/lib/tasks/lesli/resources.rake +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e374ad272b0036ff13e33e0066844fd483aae0c44d73509cd4613e2adad9cb2
|
|
4
|
+
data.tar.gz: fac622c0754e88e69b45cdf8c6ccbbbaf6fa5ce6a1eac0eba8ba52cf83fede2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da540c1be075e2bd7e0a0f69bd18f7a3ef7d08e1384cddafa12532102c8b954e7dc3c23717e5f7008a8c03865917b8227b2d001b2cd85c3345d7e36ed453f757
|
|
7
|
+
data.tar.gz: cf4bcd1007e82aaddb2eaab252e19fc0552e0fd258cc824b64cb2ec3bf8d430bf4883772c926eda26328e95c043c6a515c48239d0666fad3d6bee8e69bd4e6a9
|
|
@@ -86,7 +86,7 @@ module Lesli
|
|
|
86
86
|
# Specific stylesheet from gem
|
|
87
87
|
# lesli_stylesheet_path(:lesli_assets, 'templates/application')
|
|
88
88
|
# /assets/lesli_assets/templates/application.css
|
|
89
|
-
def
|
|
89
|
+
def lesli_asset_path(engine = nil, stylesheet = 'application')
|
|
90
90
|
|
|
91
91
|
# Stylesheets from specific engine
|
|
92
92
|
return "#{engine}/#{stylesheet}" if engine.present?
|
|
@@ -50,11 +50,10 @@ Building a better future, one line of code at a time.
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
<%# Loading stylesheets from engines %>
|
|
53
|
-
|
|
54
|
-
<%= stylesheet_link_tag(
|
|
55
|
-
<%= stylesheet_link_tag(lesli_stylesheet_path(), media: "all") %>
|
|
53
|
+
<%= stylesheet_link_tag(lesli_asset_path(:lesli_assets), media: "all") %>
|
|
54
|
+
<%= stylesheet_link_tag(lesli_asset_path(), media: "all") %>
|
|
56
55
|
|
|
57
56
|
|
|
58
57
|
<%# Loading javascripts from engines %>
|
|
59
|
-
<%= javascript_include_tag(
|
|
58
|
+
<%= javascript_include_tag(lesli_asset_path(:lesli_assets, 'application'), :defer => "defer") %>
|
|
60
59
|
<%= yield(:application_lesli_javascript) %>
|
data/db/seed/accounts.rb
CHANGED
|
@@ -50,5 +50,5 @@ account = Lesli::Account.find_or_create_by(email: company[:email]) do |account|
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# print some separators so will be easy to find these messages later
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
Termline.br(3);
|
|
54
|
+
Termline.success("Account #{ account.name } <#{ account.email }> successfully created!")
|
data/db/seed/users.rb
CHANGED
|
@@ -70,7 +70,7 @@ userguest = create_account_user(emailguest, "guest", "Guest", account[:company_n
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
# print the owner user credentials, so we can save those credentials
|
|
73
|
-
|
|
73
|
+
Termline.success(
|
|
74
74
|
"Owner user created successfully with email: #{emailowner} and password: #{passowner}",
|
|
75
75
|
"Admin user created successfully with email: #{emailadmin} and password: #{passadmin}",
|
|
76
76
|
"Admin user created successfully with email: #{emailguest} and password: #{passguest}"
|
|
@@ -78,4 +78,4 @@ L2.success(
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
# print some separators so will be easy to find these messages later
|
|
81
|
-
|
|
81
|
+
Termline.br(2);
|
data/db/seeds.rb
CHANGED
data/lib/lesli/engine.rb
CHANGED
data/lib/lesli/version.rb
CHANGED
data/lib/tasks/lesli/db.rake
CHANGED
|
@@ -82,7 +82,7 @@ namespace :lesli do
|
|
|
82
82
|
return if Rails.env.production?
|
|
83
83
|
|
|
84
84
|
# print a message to let the users show the action running
|
|
85
|
-
|
|
85
|
+
Termline.m("Drop the Lesli database (development only)")
|
|
86
86
|
|
|
87
87
|
Rake::Task['db:drop'].invoke
|
|
88
88
|
Termline.info("Databases deleted")
|
|
@@ -107,7 +107,7 @@ namespace :lesli do
|
|
|
107
107
|
def migrate
|
|
108
108
|
|
|
109
109
|
# print a message to let the users show the action running
|
|
110
|
-
|
|
110
|
+
Termline.msg("Migrate the Lesli database")
|
|
111
111
|
|
|
112
112
|
Rake::Task['db:migrate'].invoke
|
|
113
113
|
end
|
|
@@ -115,7 +115,7 @@ namespace :lesli do
|
|
|
115
115
|
def seed
|
|
116
116
|
|
|
117
117
|
# print a message to let the users show the action running
|
|
118
|
-
|
|
118
|
+
Termline.msg("Seed the Lesli database")
|
|
119
119
|
|
|
120
120
|
# load Lesli* gems seeders
|
|
121
121
|
LesliSystem.engines.each do |engine, data|
|
|
@@ -125,13 +125,13 @@ namespace :lesli do
|
|
|
125
125
|
|
|
126
126
|
# load main app seeders
|
|
127
127
|
Rake::Task['db:seed'].invoke
|
|
128
|
-
|
|
128
|
+
Termline.info("Root: Seeds executed")
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
def prepare
|
|
132
132
|
|
|
133
133
|
# print a message to let the users show the action running
|
|
134
|
-
|
|
134
|
+
Termline.msg("Prepare the Lesli database")
|
|
135
135
|
|
|
136
136
|
# scan rails routes to build the controllers index
|
|
137
137
|
Rake::Task['lesli:resources:build'].invoke
|
data/lib/tasks/lesli/dev.rake
CHANGED
data/lib/tasks/lesli/engine.rake
CHANGED
|
@@ -43,7 +43,7 @@ namespace :lesli do
|
|
|
43
43
|
# Initialize model data for new installed engines
|
|
44
44
|
def engine_install
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Termline.msg("Initialize model data for new installed engines")
|
|
47
47
|
|
|
48
48
|
# scan rails routes to build the controllers index
|
|
49
49
|
Rake::Task['lesli:controllers:build'].invoke
|
|
@@ -36,7 +36,7 @@ namespace :lesli do
|
|
|
36
36
|
|
|
37
37
|
desc "Scan new routes added and create role privileges"
|
|
38
38
|
task build: :environment do
|
|
39
|
-
|
|
39
|
+
Termline.info("Lesli: Registering engines, controllers and actions")
|
|
40
40
|
Lesli::ResourceService.new.build
|
|
41
41
|
end
|
|
42
42
|
end
|
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.
|
|
4
|
+
version: 5.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
@@ -149,20 +149,6 @@ dependencies:
|
|
|
149
149
|
- - "~>"
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
151
|
version: 1.1.0
|
|
152
|
-
- !ruby/object:Gem::Dependency
|
|
153
|
-
name: L2
|
|
154
|
-
requirement: !ruby/object:Gem::Requirement
|
|
155
|
-
requirements:
|
|
156
|
-
- - "~>"
|
|
157
|
-
- !ruby/object:Gem::Version
|
|
158
|
-
version: '0.6'
|
|
159
|
-
type: :runtime
|
|
160
|
-
prerelease: false
|
|
161
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
162
|
-
requirements:
|
|
163
|
-
- - "~>"
|
|
164
|
-
- !ruby/object:Gem::Version
|
|
165
|
-
version: '0.6'
|
|
166
152
|
description: |
|
|
167
153
|
Lesli is a Ruby on Rails framework that provides modular architecture
|
|
168
154
|
and reusable engines for building scalable business software.
|