yuurisan 1.0.2 → 1.0.3
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/yuurisan/banner.rb +6 -7
- data/lib/yuurisan/title.rb +0 -3
- data/lib/yuurisan/version.rb +1 -3
- data/lib/yuurisan.rb +0 -6
- data/yuurisan.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 100bfa3c4d9498cf836d8af8705098ac5f0539f2f326e91733ccd359ac7aca09
|
|
4
|
+
data.tar.gz: 6847b25c33f04dd6e18a64c769cf5c82cce274fcb1c9ca4e30a40272de74dcc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2187f92422078b86ef831c61877693a45a7a85c4a99c8bd679f7b754a02e5e5f3e2f5bf97c85d9183493ef606813beb2d1befdea391e1ed292eefb8dddce0287
|
|
7
|
+
data.tar.gz: a65860767efc17841fed2f9382b7653413bf33c8e3e3f1c12fe385de144620984efed987f691fc934f915e6ef6d8d7026e6bd9ae51c37e5f7321f5b8ed687546
|
data/lib/yuurisan/banner.rb
CHANGED
|
@@ -5,23 +5,22 @@ require "artii"
|
|
|
5
5
|
|
|
6
6
|
module Yuurisan
|
|
7
7
|
module Banner
|
|
8
|
-
# ANSI color codes — matches colorama Fore/Style used in Python version
|
|
9
8
|
RESET = "\e[0m"
|
|
10
9
|
BOLD = "\e[1m"
|
|
11
|
-
CYAN = "\e[36m"
|
|
12
|
-
MAGENTA = "\e[35m"
|
|
13
|
-
GREEN = "\e[32m"
|
|
14
|
-
YELLOW = "\e[33m"
|
|
10
|
+
CYAN = "\e[36m"
|
|
11
|
+
MAGENTA = "\e[35m"
|
|
12
|
+
GREEN = "\e[32m"
|
|
13
|
+
YELLOW = "\e[33m"
|
|
15
14
|
|
|
16
15
|
def self.show(bot_name)
|
|
17
16
|
system("cls") || system("clear")
|
|
18
17
|
|
|
19
|
-
# pyfiglet.figlet_format("Yuurisandesu", font="standard") equivalent
|
|
20
18
|
ascii_art = Artii::Base.new(font: "standard").asciify("Yuurisandesu").rstrip
|
|
21
19
|
|
|
22
20
|
timestamp = Time.now.strftime("%d-%m-%Y %H:%M:%S")
|
|
23
21
|
|
|
24
|
-
puts "#{CYAN}#{BOLD}#{ascii_art}#{RESET}
|
|
22
|
+
puts "#{CYAN}#{BOLD}#{ascii_art}#{RESET}"
|
|
23
|
+
puts ""
|
|
25
24
|
puts "#{MAGENTA}#{BOLD}Welcome to Yuuri's #{bot_name}#{RESET}"
|
|
26
25
|
puts "#{GREEN}#{BOLD}Join our community: https://t.me/Y3YuYuYo#{RESET}"
|
|
27
26
|
puts "#{YELLOW}#{BOLD}Current time: #{timestamp}#{RESET}"
|
data/lib/yuurisan/title.rb
CHANGED
data/lib/yuurisan/version.rb
CHANGED
data/lib/yuurisan.rb
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
1
|
require_relative "yuurisan/version"
|
|
4
2
|
require_relative "yuurisan/banner"
|
|
5
3
|
require_relative "yuurisan/title"
|
|
6
4
|
|
|
7
5
|
module Yuurisan
|
|
8
|
-
# Sets terminal title and prints the ASCII banner
|
|
9
|
-
# Usage: Yuurisan.banner("My Bot")
|
|
10
6
|
def self.banner(bot_name)
|
|
11
7
|
set_title(bot_name)
|
|
12
8
|
Banner.show(bot_name)
|
|
13
9
|
end
|
|
14
10
|
|
|
15
|
-
# Only sets the terminal tab title
|
|
16
|
-
# Usage: Yuurisan.set_title("My Bot")
|
|
17
11
|
def self.set_title(bot_name)
|
|
18
12
|
Title.set(bot_name)
|
|
19
13
|
end
|
data/yuurisan.gemspec
CHANGED
|
@@ -8,16 +8,16 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ["Yuurisandesu"]
|
|
9
9
|
spec.email = [""]
|
|
10
10
|
|
|
11
|
-
spec.summary = "Shared utility library for all Yuuri bots banner & terminal title"
|
|
11
|
+
spec.summary = "Shared utility library for all Yuuri bots — banner & terminal title"
|
|
12
12
|
spec.description = "Ruby port of yuurisan-lib. Provides reusable ASCII banner generation " \
|
|
13
13
|
"and terminal window title management so every Yuuri bot looks consistent."
|
|
14
|
-
spec.homepage = "https://github.com/Yuurichan-N3/yuurisan-
|
|
14
|
+
spec.homepage = "https://github.com/Yuurichan-N3/yuurisan-lib"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
spec.required_ruby_version = ">= 2.7.0"
|
|
18
18
|
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
-
spec.metadata["source_code_uri"] = "https://github.com/Yuurichan-N3/yuurisan-
|
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/Yuurichan-N3/yuurisan-lib"
|
|
21
21
|
|
|
22
22
|
# Include all lib files
|
|
23
23
|
spec.files = Dir.glob("lib/**/*.rb") + ["yuurisan.gemspec", "README.md", "LICENSE"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yuurisan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuurisandesu
|
|
@@ -38,12 +38,12 @@ files:
|
|
|
38
38
|
- lib/yuurisan/title.rb
|
|
39
39
|
- lib/yuurisan/version.rb
|
|
40
40
|
- yuurisan.gemspec
|
|
41
|
-
homepage: https://github.com/Yuurichan-N3/yuurisan-
|
|
41
|
+
homepage: https://github.com/Yuurichan-N3/yuurisan-lib
|
|
42
42
|
licenses:
|
|
43
43
|
- MIT
|
|
44
44
|
metadata:
|
|
45
|
-
homepage_uri: https://github.com/Yuurichan-N3/yuurisan-
|
|
46
|
-
source_code_uri: https://github.com/Yuurichan-N3/yuurisan-
|
|
45
|
+
homepage_uri: https://github.com/Yuurichan-N3/yuurisan-lib
|
|
46
|
+
source_code_uri: https://github.com/Yuurichan-N3/yuurisan-lib
|
|
47
47
|
rdoc_options: []
|
|
48
48
|
require_paths:
|
|
49
49
|
- lib
|
|
@@ -60,5 +60,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
60
60
|
requirements: []
|
|
61
61
|
rubygems_version: 3.6.9
|
|
62
62
|
specification_version: 4
|
|
63
|
-
summary: Shared utility library for all Yuuri bots banner & terminal title
|
|
63
|
+
summary: Shared utility library for all Yuuri bots — banner & terminal title
|
|
64
64
|
test_files: []
|