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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8bcebb6d3d2d5ea33fe19e472a0e4332a6bf3da560d1d190900433cc98ad92c
4
- data.tar.gz: 8cbbd81d6e4a08666e9846226e3b0e48ed87a894ad420599dbc7362572409cb8
3
+ metadata.gz: 9e374ad272b0036ff13e33e0066844fd483aae0c44d73509cd4613e2adad9cb2
4
+ data.tar.gz: fac622c0754e88e69b45cdf8c6ccbbbaf6fa5ce6a1eac0eba8ba52cf83fede2d
5
5
  SHA512:
6
- metadata.gz: e35418f65926ed377dabae4c838c6e1abbca690727e12aeb0735262f93ce6fb1533b29915c5378acbe06d72884fc9b36b0d8e04c83aa5ad868bf7891ac7fed33
7
- data.tar.gz: 36a495f49d761b7ba6824a9ef84baa6ac425028bff9fc9592035df333c48b96204db1366b29ccb9e514dbf96440e7eb8239f8d89b98d67c0637be098afdf4836
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 lesli_stylesheet_path(engine = nil, stylesheet = 'application')
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?
@@ -89,7 +89,7 @@ module Lesli
89
89
  end
90
90
 
91
91
  def after_save_activities
92
- L2.warn "You need to define your activity methods in your model"
92
+ Termline.warn "You need to define your activity methods in your model"
93
93
  end
94
94
 
95
95
  def activities_create **resource
@@ -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
- <%#= stylesheet_link_tag(lesli_stylesheet_path(:lesli_assets, 'tailwind'), media: "all") %>
54
- <%= stylesheet_link_tag(lesli_stylesheet_path(:lesli_assets), media: "all") %>
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(lesli_stylesheet_path(:lesli_assets, 'application'), :defer => "defer") %>
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
- L2.br(3);
54
- L2.success("Account #{ account.name } <#{ account.email }> successfully created!")
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
- L2.success(
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
- L2.br(2);
81
+ Termline.br(2);
data/db/seeds.rb CHANGED
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
 
34
- L2.info("Loading seeds for: Lesli #{Lesli::VERSION}")
34
+ Termline.info("Loading seeds for: Lesli #{Lesli::VERSION}")
35
35
 
36
36
 
37
37
  # including tools for seeders
data/lib/lesli/engine.rb CHANGED
@@ -35,7 +35,6 @@ require "kaminari"
35
35
 
36
36
 
37
37
  # · Tools used to build the Lesli Framework
38
- require "L2"
39
38
  require "termline"
40
39
  require "acts_as_paranoid"
41
40
 
data/lib/lesli/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Lesli
2
- VERSION = "5.1.1"
3
- BUILD = "1776570122"
2
+ VERSION = "5.1.2"
3
+ BUILD = "1777174912"
4
4
  end
@@ -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
- L2.m("Drop the Lesli database (development only)")
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
- L2.msg("Migrate the Lesli database")
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
- L2.msg("Seed the Lesli database")
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
- L2.info("Root: Seeds executed")
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
- L2.msg("Prepare the Lesli database")
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
@@ -43,7 +43,7 @@ namespace :lesli do
43
43
  # Seed database (development only)
44
44
  def welcome
45
45
 
46
- L2.br(4)
46
+ Termline.br(4)
47
47
 
48
48
  # print the lesli gems
49
49
  Rake::Task['lesli:status'].invoke
@@ -43,7 +43,7 @@ namespace :lesli do
43
43
  # Initialize model data for new installed engines
44
44
  def engine_install
45
45
 
46
- L2.msg("Initialize model data for new installed engines")
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
- L2.info("Lesli: Registering engines, controllers and actions")
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.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.