dmp 0.2.1 → 0.2.2
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/dmp/cli.rb +11 -4
- data/lib/dmp/version.rb +1 -1
- 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: 7c33588e32e9693257674adf835c326a0b83a014c12d75066565cabea7ed2433
|
4
|
+
data.tar.gz: 8397f78e47f38861dac4ff9ec777aec17066f5bc7c063bedaf23647556ea7a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5121963b6b32b5fdb74a19a258bd238699c4aa6d15b08b31e345ad6de8c2cbdbdd6e1ed389bc97791c14626ae9f1c0669203dd8657f7357c626f92cd1999b54
|
7
|
+
data.tar.gz: edbb9e39035a8b6189949e52c037118c7ad2a695e504e93d48e7ccb81ac86042821976230420b9056e712a2f45ad25e574ac60ac35458c8f7fc1df1bb33f75e6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/dmp/cli.rb
CHANGED
@@ -42,9 +42,9 @@ module Dmp
|
|
42
42
|
puts '- Passphrase: '.bold + passphrase.join(' ')
|
43
43
|
puts '- Copied to clipboard.'.bold.green if options[:clipboard]
|
44
44
|
if vuln_count
|
45
|
-
puts "- WARNING: Passphrase
|
45
|
+
puts "- WARNING: Passphrase appears in #{vuln_count} datasets!".red.bold
|
46
46
|
elsif options[:hibp]
|
47
|
-
puts '- Password
|
47
|
+
puts '- Password was not found in a dataset.'.green.bold
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -52,11 +52,18 @@ module Dmp
|
|
52
52
|
def check_pass
|
53
53
|
puts 'Enter your password, press ENTER when you\'re done.'
|
54
54
|
password = ask('Password (hidden):'.yellow, echo: false)
|
55
|
+
|
56
|
+
# if no password set, just exit
|
57
|
+
if password.empty?
|
58
|
+
puts "Aborted.".red.bold
|
59
|
+
exit
|
60
|
+
end
|
61
|
+
|
55
62
|
vuln_count = Dmp.check_pwned(password)
|
56
63
|
if vuln_count
|
57
|
-
puts " Your password appears in #{vuln_count}
|
64
|
+
puts " Your password appears in #{vuln_count} datasets!".red.bold
|
58
65
|
else
|
59
|
-
puts " Your password
|
66
|
+
puts " Your password was not found in a dataset.".green.bold
|
60
67
|
end
|
61
68
|
end
|
62
69
|
|
data/lib/dmp/version.rb
CHANGED