From aea52842794e6a991eeed8921d8aff783468a4d1 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 26 Jul 2022 19:16:42 +0300 Subject: [PATCH] NO_COLOR info --- HISTORY.md | 4 +++- README.md | 10 +++++++--- shard.lock | 2 +- shard.yml | 4 ++-- src/pmng.cr | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index f58a800..d5b04da 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,7 +6,9 @@ - ℹ️ - Information - ♻️ - Edited -## 0.2.4 - [Current develop] +## 0.2.4 - [26/07/2022] +- ➕ - Added hint for fix file permissions error. +- ℹ️ - Crystal version raise to 1.5.0 for NO_COLOR support - ✔️ - Fixed output finding records for all queryes - ✔️ - Fixed check password file name info diff --git a/README.md b/README.md index 7273f5d..2f500e6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,16 @@ -# 🔑 The very simple password manager for humans +# The very simple password manager for humans ![pmng](./.docs/logo.png) -# 📷 Screenshots +![License](https://img.shields.io/badge/license-public_domain-brightgreen?style=for-the-badge&color=ffcc68) +![NO_COLOR](https://img.shields.io/badge/no__color-support-brightgreen?style=for-the-badge&color=d44e52) +![Emojy](https://img.shields.io/badge/emojy-like-brightgreen?style=for-the-badge&color=ec8a4b) + +# Screenshots ![Passwords](./.docs/passwords.png) -# 💾 Download +# Download **Coming soon** diff --git a/shard.lock b/shard.lock index 1e8513e..31703b6 100644 --- a/shard.lock +++ b/shard.lock @@ -2,5 +2,5 @@ version: 2.0 shards: ameba: git: https://github.com/crystal-ameba/ameba.git - version: 0.14.3 + version: 1.0.0 diff --git a/shard.yml b/shard.yml index 760ab5a..1db8dfc 100644 --- a/shard.yml +++ b/shard.yml @@ -11,8 +11,8 @@ targets: development_dependencies: ameba: github: crystal-ameba/ameba - version: ~> 0.14.0 + version: ~> 1.0.0 -crystal: 1.3.2 +crystal: 1.5.0 license: MIT diff --git a/src/pmng.cr b/src/pmng.cr index 5e4b9cf..9d19ab5 100644 --- a/src/pmng.cr +++ b/src/pmng.cr @@ -22,7 +22,7 @@ class Password property update : Int32 end -VERSION = "0.2.4b" +VERSION = "0.2.4" PASSWORD_FILE_PATH = "#{ENV["HOME"]}/.pwd.yml" ASCII_LOGO = " ██████╗ ███╗ ███╗███╗ ██╗ ██████╗ @@ -87,6 +87,9 @@ password_file_permissions = File.info(PASSWORD_FILE_PATH).permissions.to_s if /\d{3}/.match(password_file_permissions).try &.[0] != "600" puts "Password file permissions is not RW for you.".colorize(:red) + print "Execute: ".colorize(:yellow) + print "(chmod 600 ~/.pwd.yml) ".colorize(:green).mode(:bold) + puts "for fix.".colorize(:yellow) exit(1) end