yuurisan 1.0.0
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 +7 -0
- data/LICENSE +21 -0
- data/lib/yuurisan/banner.rb +27 -0
- data/lib/yuurisan/title.rb +9 -0
- data/lib/yuurisan/version.rb +3 -0
- data/lib/yuurisan.rb +14 -0
- data/yuurisan.gemspec +29 -0
- metadata +63 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1b9c6bcdd1d0d941b68f7792e07a7b4332c36b1ac7d67e5dc88db069e95a89b6
|
|
4
|
+
data.tar.gz: 5c0ab7ad42432c66545b550eac6355c7065fafbe1258bc8fb5b0fd5b84aa6c01
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 45ea406846a2aca072dd5e2d200b30ea251759f6338b3993b93185896171cbb70ffd9bf7486fd2c22ae78785d5c1e75e2f330a26278a5ad71848a5531eaf45b7
|
|
7
|
+
data.tar.gz: 5e399ad336aa7392550b72bc2b78c05cfc5f243bcb4c6591665e30a07414ccae054a911f13ea051864f0e932de9456cb7a61fdb265ba75bd93766626a1f1a6dc
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yuurisandesu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require "time"
|
|
2
|
+
require "artii"
|
|
3
|
+
|
|
4
|
+
module Yuurisan
|
|
5
|
+
module Banner
|
|
6
|
+
RESET = "\e[0m"
|
|
7
|
+
BOLD = "\e[1m"
|
|
8
|
+
CYAN = "\e[36m"
|
|
9
|
+
MAGENTA = "\e[35m"
|
|
10
|
+
GREEN = "\e[32m"
|
|
11
|
+
YELLOW = "\e[33m"
|
|
12
|
+
|
|
13
|
+
def self.show(bot_name)
|
|
14
|
+
system("cls") || system("clear")
|
|
15
|
+
|
|
16
|
+
ascii_art = Artii::Base.new(font: "standard").asciify("Yuurisandesu").rstrip("\n")
|
|
17
|
+
|
|
18
|
+
timestamp = Time.now.strftime("%d-%m-%Y %H:%M:%S")
|
|
19
|
+
|
|
20
|
+
puts "#{CYAN}#{BOLD}#{ascii_art}#{RESET}"
|
|
21
|
+
puts "#{MAGENTA}#{BOLD}Welcome to Yuuri's #{bot_name}#{RESET}"
|
|
22
|
+
puts "#{GREEN}#{BOLD}Join our community: https://t.me/Y3YuYuYo#{RESET}"
|
|
23
|
+
puts "#{YELLOW}#{BOLD}Current time: #{timestamp}#{RESET}"
|
|
24
|
+
puts ""
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/yuurisan.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require_relative "yuurisan/version"
|
|
2
|
+
require_relative "yuurisan/banner"
|
|
3
|
+
require_relative "yuurisan/title"
|
|
4
|
+
|
|
5
|
+
module Yuurisan
|
|
6
|
+
def self.banner(bot_name)
|
|
7
|
+
set_title(bot_name)
|
|
8
|
+
Banner.show(bot_name)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def self.set_title(bot_name)
|
|
12
|
+
Title.set(bot_name)
|
|
13
|
+
end
|
|
14
|
+
end
|
data/yuurisan.gemspec
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/yuurisan/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "yuurisan"
|
|
7
|
+
spec.version = Yuurisan::VERSION
|
|
8
|
+
spec.authors = ["Yuurisandesu"]
|
|
9
|
+
spec.email = [""]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Shared utility library for all Yuuri bots banner & terminal title"
|
|
12
|
+
spec.description = "Ruby port of yuurisan-rb. Provides reusable ASCII banner generation " \
|
|
13
|
+
"and terminal window title management so every Yuuri bot looks consistent."
|
|
14
|
+
spec.homepage = "https://github.com/Yuurichan-N3/yuurisan-rb"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
spec.required_ruby_version = ">= 2.7.0"
|
|
18
|
+
|
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/Yuurichan-N3/yuurisan-rb"
|
|
21
|
+
|
|
22
|
+
# Include all lib files
|
|
23
|
+
spec.files = Dir.glob("lib/**/*.rb") + ["yuurisan.gemspec", "LICENSE"]
|
|
24
|
+
|
|
25
|
+
spec.require_paths = ["lib"]
|
|
26
|
+
|
|
27
|
+
# artii = Ruby equivalent of pyfiglet (ASCII art font rendering)
|
|
28
|
+
spec.add_dependency "artii", "~> 2.1"
|
|
29
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: yuurisan
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Yuurisandesu
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: artii
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '2.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '2.1'
|
|
26
|
+
description: Ruby port of yuurisan-rb. Provides reusable ASCII banner generation and
|
|
27
|
+
terminal window title management so every Yuuri bot looks consistent.
|
|
28
|
+
email:
|
|
29
|
+
- ''
|
|
30
|
+
executables: []
|
|
31
|
+
extensions: []
|
|
32
|
+
extra_rdoc_files: []
|
|
33
|
+
files:
|
|
34
|
+
- LICENSE
|
|
35
|
+
- lib/yuurisan.rb
|
|
36
|
+
- lib/yuurisan/banner.rb
|
|
37
|
+
- lib/yuurisan/title.rb
|
|
38
|
+
- lib/yuurisan/version.rb
|
|
39
|
+
- yuurisan.gemspec
|
|
40
|
+
homepage: https://github.com/Yuurichan-N3/yuurisan-rb
|
|
41
|
+
licenses:
|
|
42
|
+
- MIT
|
|
43
|
+
metadata:
|
|
44
|
+
homepage_uri: https://github.com/Yuurichan-N3/yuurisan-rb
|
|
45
|
+
source_code_uri: https://github.com/Yuurichan-N3/yuurisan-rb
|
|
46
|
+
rdoc_options: []
|
|
47
|
+
require_paths:
|
|
48
|
+
- lib
|
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 2.7.0
|
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '0'
|
|
59
|
+
requirements: []
|
|
60
|
+
rubygems_version: 3.6.9
|
|
61
|
+
specification_version: 4
|
|
62
|
+
summary: Shared utility library for all Yuuri bots banner & terminal title
|
|
63
|
+
test_files: []
|