fix README

This commit is contained in:
Alexander Popov 2022-05-02 11:34:18 +03:00
parent c28d5b66cb
commit 0e6ed176b3
Signed by: iiiypuk
GPG Key ID: 3F76816AEE08F908
4 changed files with 20 additions and 20 deletions

View File

@ -6,6 +6,8 @@
- - Information
- ♻️ - Edited
## 0.2.4 - [02/05/2022]
## 0.2.3 - [02/05/2022]
- ♻️ - Password outdated date change to 3 month
- - Added `pmng` logo

View File

@ -1,10 +1,10 @@
# 🔑 The very simple password manager for humans
![pmng](./docs/logo.png)
![pmng](./.docs/logo.png)
# 📷 Screenshots
![Passwords](./docs/passwords.png)
![Passwords](./.docs/passwords.png)
# 💾 Download

View File

@ -1,5 +1,5 @@
name: pmng
version: 0.2.3
version: 0.2.4
authors:
- Alexander Popov <iiiypuk@iiiypuk.me>

View File

@ -22,9 +22,9 @@ class Password
property update : Int32
end
VERSION = "0.2.3"
ASCII_LOGO = "
VERSION = "0.2.4b"
PASSWORD_FILE_PATH = "#{ENV["HOME"]}/.pwd.yml"
ASCII_LOGO = "
@ -70,8 +70,6 @@ rescue ex
puts ex.message, ""
end
PASSWORD_FILE_PATH = "#{ENV["HOME"]}/.pwd.yml"
# check password file exists
if File.exists?(PASSWORD_FILE_PATH)
yaml = File.open(PASSWORD_FILE_PATH) do |file|
@ -83,14 +81,6 @@ else
exit(1)
end
# fill passwords array
passwords_array = [] of Password
count = 0
while count < yaml.size
passwords_array << Password.from_yaml(yaml[count].to_yaml)
count += 1
end
# check file ppermissions
password_file_permissions = File.info(PASSWORD_FILE_PATH).permissions.to_s
@ -100,6 +90,14 @@ if /\d{3}/.match(password_file_permissions).try &.[0] != "600"
exit(1)
end
# fill passwords array
passwords_array = [] of Password
count = 0
while count < yaml.size
passwords_array << Password.from_yaml(yaml[count].to_yaml)
count += 1
end
# pmng title
system "clear"
puts ASCII_LOGO.colorize(:yellow)
@ -121,10 +119,7 @@ while loop
if password_string.to_s == ":q"
# if ':q' to close program
system "clear"
puts "Bye! 👋"
exit(0)
loop = false
elsif password_string.to_s.size == 0
# if puts empty, retry prompt
puts
@ -206,3 +201,6 @@ while loop
puts "-----".colorize(:dark_gray).mode(:bold)
puts
end
system "clear"
puts "Bye! 👋"