termline 1.1.0 → 1.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/lib/termline/msg.rb +4 -2
- data/lib/termline/space.rb +1 -1
- data/lib/termline/style.rb +3 -1
- data/lib/termline/version.rb +11 -10
- data/lib/termline.rb +10 -8
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8f28722ce311ace33f1760c280edf1a743843818914e32281516a5d29287111
|
|
4
|
+
data.tar.gz: bc24fdfeacec17fc608f5c5f3e8c571b4dea3eab2236f2dc4b01c19941baa953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd964226fe086b9ef7bcd5acfe637da435bf76555ca3903d0b7668d9bbc6cf5575ba6098f9d629df3346852c1f5a3f5bbe8fdd169bca7677559e0f9ab2bf3123
|
|
7
|
+
data.tar.gz: 89f6349960622205fef8a3ecc294e5db4bf774121cdbabcb26daf90d90a99f3e2b568ff3c670a146f73d6cd96d847a46e6ef37877ce6627fd6fd4294f8a6558a
|
data/lib/termline/msg.rb
CHANGED
|
@@ -40,10 +40,12 @@ module Termline
|
|
|
40
40
|
icon: nil,
|
|
41
41
|
color: :default,
|
|
42
42
|
bgcolor: :default,
|
|
43
|
-
timestamp: Time.now.strftime('%H:%M:%S:%L'),
|
|
43
|
+
timestamp: Time.now.strftime('%H:%M:%S:%L'),
|
|
44
|
+
time:true,
|
|
45
|
+
data:nil)
|
|
44
46
|
|
|
45
47
|
parts = []
|
|
46
|
-
parts << "[#{timestamp}]" if
|
|
48
|
+
parts << "[#{timestamp}]" if time
|
|
47
49
|
parts << Style.colorize(Style.icon(icon), color) if icon
|
|
48
50
|
parts << Style.colorize(tag, color) if tag
|
|
49
51
|
parts << message
|
data/lib/termline/space.rb
CHANGED
data/lib/termline/style.rb
CHANGED
data/lib/termline/version.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Lesli
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
4
6
|
|
|
5
7
|
This program is free software: you can redistribute it and/or modify
|
|
6
8
|
it under the terms of the GNU General Public License as published by
|
|
@@ -13,23 +15,22 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
13
15
|
GNU General Public License for more details.
|
|
14
16
|
|
|
15
17
|
You should have received a copy of the GNU General Public License
|
|
16
|
-
along with this program. If not, see
|
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
17
19
|
|
|
18
|
-
Lesli Ruby
|
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
Made with ♥ by LesliTech
|
|
21
23
|
Building a better future, one line of code at a time.
|
|
22
24
|
|
|
23
|
-
@contact
|
|
24
|
-
@website
|
|
25
|
+
@contact hello@lesli.tech
|
|
26
|
+
@website https://www.lesli.tech
|
|
25
27
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
26
|
-
@author The Lesli Development Team
|
|
27
28
|
|
|
28
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
29
30
|
// ·
|
|
30
31
|
=end
|
|
31
32
|
|
|
32
33
|
module Termline
|
|
33
|
-
VERSION = "1.1.
|
|
34
|
-
BUILD = "
|
|
34
|
+
VERSION = "1.1.2"
|
|
35
|
+
BUILD = "1777771350"
|
|
35
36
|
end
|
data/lib/termline.rb
CHANGED
|
@@ -30,6 +30,8 @@ Building a better future, one line of code at a time.
|
|
|
30
30
|
// ·
|
|
31
31
|
=end
|
|
32
32
|
|
|
33
|
+
|
|
34
|
+
# ·
|
|
33
35
|
require_relative "termline/style"
|
|
34
36
|
require_relative "termline/table"
|
|
35
37
|
require_relative "termline/space"
|
|
@@ -48,20 +50,20 @@ module Termline
|
|
|
48
50
|
messages.each { |message| puts(Termline::Msg.builder(message, data:data)) }
|
|
49
51
|
end
|
|
50
52
|
|
|
51
|
-
def info(*messages, tag:'INFO:', icon: :info, **data)
|
|
52
|
-
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :blue)) }
|
|
53
|
+
def info(*messages, tag:'INFO:', icon: :info, time:true, **data)
|
|
54
|
+
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :blue, time:time)) }
|
|
53
55
|
end
|
|
54
56
|
|
|
55
|
-
def success(*messages, tag:'SUCCESS:', icon: :success, **data)
|
|
56
|
-
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :green)) }
|
|
57
|
+
def success(*messages, tag:'SUCCESS:', icon: :success, time:true, **data)
|
|
58
|
+
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :green, time:time)) }
|
|
57
59
|
end
|
|
58
60
|
|
|
59
|
-
def warning(*messages, tag:'WARNING:', icon: :warning, **data)
|
|
60
|
-
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :yellow)) }
|
|
61
|
+
def warning(*messages, tag:'WARNING:', icon: :warning, time:true, **data)
|
|
62
|
+
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :yellow, time:time)) }
|
|
61
63
|
end
|
|
62
64
|
|
|
63
|
-
def danger(*messages, tag:'DANGER:', icon: :error, **data)
|
|
64
|
-
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :red)) }
|
|
65
|
+
def danger(*messages, tag:'DANGER:', icon: :error, time:true, **data)
|
|
66
|
+
messages.each { |message| puts(Termline::Msg.builder(message, tag:tag, icon:icon, data:data, color: :red, time:time)) }
|
|
65
67
|
end
|
|
66
68
|
|
|
67
69
|
def alert(*messages)
|