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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d17eb4e83166539fef4d084067a49aadbbc920e6fd8ae74a635f7e7903633dca
4
- data.tar.gz: 74f5d952173220260e0b5f86dcb0afa77b7366b923abb8fcabb9fa7f86e529db
3
+ metadata.gz: 100bfa3c4d9498cf836d8af8705098ac5f0539f2f326e91733ccd359ac7aca09
4
+ data.tar.gz: 6847b25c33f04dd6e18a64c769cf5c82cce274fcb1c9ca4e30a40272de74dcc4
5
5
  SHA512:
6
- metadata.gz: '0182fb7e2943895da303322aa5c194c03faac66dd1f9a50f0d4034d372c1d8f43dc095c4b9e6fc1ba9f1d4567d21e60ec890582affaa151f232a6ece5821fe08'
7
- data.tar.gz: 655c90d7e41af38534ec0139156232650e31bb399e83a324b4877dd6fb55393309b0b0720b0f5e75e82f470f8b1124da5182f20a8a989fe4112764969c4f2374
6
+ metadata.gz: 2187f92422078b86ef831c61877693a45a7a85c4a99c8bd679f7b754a02e5e5f3e2f5bf97c85d9183493ef606813beb2d1befdea391e1ed292eefb8dddce0287
7
+ data.tar.gz: a65860767efc17841fed2f9382b7653413bf33c8e3e3f1c12fe385de144620984efed987f691fc934f915e6ef6d8d7026e6bd9ae51c37e5f7321f5b8ed687546
@@ -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" # Fore.CYAN
12
- MAGENTA = "\e[35m" # Fore.MAGENTA
13
- GREEN = "\e[32m" # Fore.GREEN
14
- YELLOW = "\e[33m" # Fore.YELLOW
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}\n"
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}"
@@ -1,10 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Yuurisan
4
2
  module Title
5
3
  def self.set(bot_name)
6
4
  title = "#{bot_name} by : 佐賀県産 (YUURI)"
7
- # Works on most terminals: xterm, iTerm2, GNOME Terminal, Windows Terminal
8
5
  print "\e]0;#{title}\a"
9
6
  $stdout.flush
10
7
  end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Yuurisan
4
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
5
3
  end
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-rb"
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-rb"
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.2
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-rb
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-rb
46
- source_code_uri: https://github.com/Yuurichan-N3/yuurisan-rb
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: []