termline 1.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a07c43d93ed4574a6264d64b32f29fccc25dd0e98f6cf86ec851e8c367c7a026
4
- data.tar.gz: 8347c016ceea2947a30ca216a38d8f9fc23b1f946e2421a7e5c320675871558a
3
+ metadata.gz: f8f28722ce311ace33f1760c280edf1a743843818914e32281516a5d29287111
4
+ data.tar.gz: bc24fdfeacec17fc608f5c5f3e8c571b4dea3eab2236f2dc4b01c19941baa953
5
5
  SHA512:
6
- metadata.gz: 18586ea12b6729ae4b0688d59437c322946982124cd75319acf8c89a980c113d671ce97a22b37ace1b134a7348be22811ed63dd3272d47702554dac3bc4d984d
7
- data.tar.gz: d7820e373323cf76f2660379874cf8e416441083e46a40cdea2abebbc2ac49d33c4c72e8de3f1c5119f9beb154888aeee041df1fc449e9441d0bff13a021f9e0
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'), data:nil)
43
+ timestamp: Time.now.strftime('%H:%M:%S:%L'),
44
+ time:true,
45
+ data:nil)
44
46
 
45
47
  parts = []
46
- parts << "[#{timestamp}]" if timestamp
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
@@ -33,7 +33,7 @@ Building a better future, one line of code at a time.
33
33
  module Termline
34
34
  module Space
35
35
  class << self
36
- def builder(character, count)
36
+ def builder(character, count=8)
37
37
  character * count
38
38
  end
39
39
  def br count=1
@@ -1,6 +1,8 @@
1
1
  =begin
2
2
 
3
- Copyright (c) 2022, Lesli Technologies, S. A.
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 <http://www.gnu.org/licenses/>.
18
+ along with this program. If not, see http://www.gnu.org/licenses/.
17
19
 
18
- Lesli Ruby Messages - Message utilities for the Ruby console
20
+ Lesli · Ruby on Rails SaaS Development Framework.
19
21
 
20
- Powered by https://www.lesli.tech
22
+ Made with ♥ by LesliTech
21
23
  Building a better future, one line of code at a time.
22
24
 
23
- @contact <hello@lesli.tech>
24
- @website <https://www.lesli.tech>
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.1"
34
- BUILD = "1775000800"
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team