This commit is contained in:
Alexander Popov 2022-03-13 13:46:29 +03:00
parent 038e8a0b14
commit ce5bca45a3
2 changed files with 28 additions and 22 deletions

View File

@ -6,5 +6,9 @@
- - Information
- ♻️ - Edited
## 0.2.1 - [13/03/2022]
- ✔️ - fixed empty search field
- ✔️ - fixed password generate colors to russian flag
## 0.2.0 - [04/01/2022]
- reading passwords file from program folder (portable mode)

View File

@ -21,7 +21,7 @@ class Password
property update : Int32
end
VERSION = "0.1.0"
VERSION = "0.2.1"
begin
OptionParser.parse do |parser|
@ -37,8 +37,8 @@ begin
end
parser.on "-g", "--generate-password", "Generate password" do
puts Random::Secure.urlsafe_base64(16, padding: false).colorize(:black).back(:white)
puts Random::Secure.urlsafe_base64(16, padding: false).colorize(:white).back(:red)
puts Random::Secure.urlsafe_base64(16, padding: false).colorize(:white).back(:blue)
puts Random::Secure.urlsafe_base64(16, padding: false).colorize(:white).back(:red)
exit(0)
end
parser.on "-t", "--unixtime", "Return local timestamp" do
@ -80,6 +80,8 @@ while loop
if password_string.to_s == ":q"
puts "Bye! 👋🏻"
exit(0)
elsif password_string.to_s.size == 0
puts
elsif password_string.to_s == ":h"
puts "Help:\n-----"
puts ":s - Return stats"
@ -101,8 +103,7 @@ while loop
end
puts outdated_count
end
else
new_array.each do |item|
if item.url.includes?(password_string.to_s)
puts item.url.colorize(:magenta).mode(:blink)
@ -126,6 +127,7 @@ while loop
puts "---".colorize(:dark_gray)
end
end
end
puts
end