Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Alexander Popov | a0775932ec | |
Alexander Popov | 45897a4f81 | |
Alexander Popov | 8e01c4adb0 | |
Alexander Popov | 1fda6f7b14 | |
Alexander Popov | abdb758aa2 |
|
@ -6,6 +6,10 @@
|
|||
- ℹ️ - Information
|
||||
- ♻️ - Edited
|
||||
|
||||
## 0.2.7b - [14/04/2023]
|
||||
- ➕ - Added environment variable for custom input timeout
|
||||
- ✔️ - User input is converted to lowercase
|
||||
|
||||
## 0.2.6 - [03/08/2022]
|
||||
- ➕ - Added environment variable for custom password file path
|
||||
- ➕ - Added version in to ASCII logo
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# 🔑 The very simple password manager for humans
|
||||
|
||||
![Crystal](https://img.shields.io/badge/Crystal-000000?style=for-the-badge&color=000000&logo=crystal)
|
||||
![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)
|
||||
![Emoji](https://img.shields.io/badge/emoji-like-brightgreen?style=for-the-badge&color=ec8a4b)
|
||||
|
|
|
@ -2,5 +2,5 @@ version: 2.0
|
|||
shards:
|
||||
ameba:
|
||||
git: https://github.com/crystal-ameba/ameba.git
|
||||
version: 1.0.0
|
||||
version: 1.4.3
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: pmng
|
||||
version: 0.2.6
|
||||
version: 0.2.7
|
||||
|
||||
authors:
|
||||
- Alexander Popov <iiiypuk@iiiypuk.me>
|
||||
|
@ -11,8 +11,8 @@ targets:
|
|||
development_dependencies:
|
||||
ameba:
|
||||
github: crystal-ameba/ameba
|
||||
version: ~> 1.0.0
|
||||
version: ~> 1.4.0
|
||||
|
||||
crystal: 1.5.0
|
||||
crystal: 1.7.0
|
||||
|
||||
license: MIT
|
||||
|
|
|
@ -94,7 +94,7 @@ module Pmng
|
|||
passwords_finded_array = 0
|
||||
|
||||
passwords_array.each do |item|
|
||||
if item.url.includes?(password_string.to_s)
|
||||
if item.url.includes?(password_string.to_s.downcase)
|
||||
Functions.show_item(item)
|
||||
|
||||
puts "-----".colorize(:dark_gray).mode(:bold)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
def password_file
|
||||
# Return password file path
|
||||
|
||||
begin
|
||||
file_path = "#{ENV["PMNG_PWD_FILE"]}"
|
||||
file_path.to_s
|
||||
|
@ -8,6 +10,19 @@ def password_file
|
|||
end
|
||||
end
|
||||
|
||||
def input_timeout
|
||||
# Return user input timeout
|
||||
|
||||
user_input_timeout = 60
|
||||
|
||||
begin
|
||||
user_input_timeout = "#{ENV["PMNG_TIMEOUT"]}"
|
||||
user_input_timeout.to_i
|
||||
rescue KeyError
|
||||
user_input_timeout.to_i # return default 60s
|
||||
end
|
||||
end
|
||||
|
||||
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
|
||||
PASSWORD_FILE_PATH = password_file()
|
||||
USER_INPUT_TIMEOUT = 60
|
||||
USER_INPUT_TIMEOUT = input_timeout()
|
||||
|
|
Loading…
Reference in New Issue