uhide 0.0.24 โ 0.0.25
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 +4 -4
- data/bin/uhide +0 -1
- data/lib/uhide/main.rb +7 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00ea66edf2e528cd716a66ad017e304f7c69afb6070f1d07865fbed4d689ddeb
|
|
4
|
+
data.tar.gz: 4194a9e449edbf70f12ee01d26ea89f132aa44cd0b4d4c1842f979d06bd0885b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db758558903c9ca55602a03591310e1e06748fead358cbca6aef2a147f6b3e2bd551e3c5377896cd22bf80a8b46e7898ea4972c64cde44bf03f26884e20f4ca9
|
|
7
|
+
data.tar.gz: ab2b58b83be7090e6457cc7d4fd2c61a1185a9b5b3fbca3aeee4d3c49f7f003f84f978cd0ebafb99ae5871cca3b5b637f0c66e4de5726c97ffcf50aa5ae96c4d
|
data/bin/uhide
CHANGED
data/lib/uhide/main.rb
CHANGED
|
@@ -6,27 +6,23 @@ INVALID_KEY = 'invalid key'.colorize(:magenta)
|
|
|
6
6
|
UNSUPPORTED_๐พ = 'unsupported'.colorize(:magenta) + ' ๐พ'
|
|
7
7
|
$cache = {}
|
|
8
8
|
|
|
9
|
-
def password?
|
|
10
|
-
๐งผ STDIN.noecho(&:gets)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
9
|
def ๐ฝ
|
|
14
10
|
print "\r"
|
|
15
11
|
$stdout.flush
|
|
16
12
|
end
|
|
17
13
|
|
|
14
|
+
def ๐งผ ๐๏ธ
|
|
15
|
+
๐๏ธ.chomp
|
|
16
|
+
end
|
|
17
|
+
|
|
18
18
|
def โ ๐, simple: true
|
|
19
19
|
print ๐
|
|
20
|
-
password =
|
|
20
|
+
password = ๐งผ STDIN.noecho(&:gets)
|
|
21
21
|
$password = password if simple
|
|
22
22
|
๐ฝ
|
|
23
23
|
return password
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def ๐งผ ๐๏ธ
|
|
27
|
-
๐๏ธ.chomp
|
|
28
|
-
end
|
|
29
|
-
|
|
30
26
|
def ๐ ๐ท๏ธ: nil
|
|
31
27
|
if ๐ท๏ธ.nil?
|
|
32
28
|
puts $cache['ddllv']
|
|
@@ -107,7 +103,7 @@ def ๐ ๐๏ธ, ๐, โ๏ธ: false
|
|
|
107
103
|
return ๐
|
|
108
104
|
end
|
|
109
105
|
|
|
110
|
-
def ๐๏ธ ๐๏ธ,
|
|
106
|
+
def ๐๏ธ ๐๏ธ, ๐, โ๏ธ: false
|
|
111
107
|
if $cache[๐๏ธ]
|
|
112
108
|
return $cache[๐๏ธ]
|
|
113
109
|
end
|
|
@@ -115,7 +111,7 @@ def ๐๏ธ ๐๏ธ, ๐, โ๏ธ: false
|
|
|
115
111
|
begin
|
|
116
112
|
๐ = File.read "./#{๐๏ธ}"
|
|
117
113
|
rescue Errno::ENOENT
|
|
118
|
-
๐ = ๐ ๐๏ธ,
|
|
114
|
+
๐ = ๐ ๐๏ธ, ๐, โ๏ธ: โ๏ธ
|
|
119
115
|
end
|
|
120
116
|
|
|
121
117
|
if not ๐.empty?
|