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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 865f8aedf90a4845b1d04cd7343874c142d7241742844afe889d91fac254f78f
4
- data.tar.gz: ec33e3320f9784754bc753a9fbd93c86169bfae4819b2fdefad85cddde726601
3
+ metadata.gz: 7c33588e32e9693257674adf835c326a0b83a014c12d75066565cabea7ed2433
4
+ data.tar.gz: 8397f78e47f38861dac4ff9ec777aec17066f5bc7c063bedaf23647556ea7a1e
5
5
  SHA512:
6
- metadata.gz: f99340d8d3aa4a21a2d2f3d4a16eb169917afc23bceb4b687d581bd5ce23d875123d4bb89050ed13b56327a9cb4a809e98dc823dbbdf273fdab1f3674713406a
7
- data.tar.gz: d4ce23d7523c434d1715ae5db14d2b5efd12f6d1f45052b8479592ee9a0a55aa5e406c538897e539cdd111a895a76fc73c08254420fdfb148fe8b03753165218
6
+ metadata.gz: d5121963b6b32b5fdb74a19a258bd238699c4aa6d15b08b31e345ad6de8c2cbdbdd6e1ed389bc97791c14626ae9f1c0669203dd8657f7357c626f92cd1999b54
7
+ data.tar.gz: edbb9e39035a8b6189949e52c037118c7ad2a695e504e93d48e7ccb81ac86042821976230420b9056e712a2f45ad25e574ac60ac35458c8f7fc1df1bb33f75e6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dmp (0.2.1)
4
+ dmp (0.2.2)
5
5
  clipboard (~> 1.1)
6
6
  colorize (~> 0.8)
7
7
  thor (~> 0)
data/README.md CHANGED
@@ -11,7 +11,7 @@ $ dmp about
11
11
  | |_| | | | | | | __/
12
12
  |____/ |_| |_| |_|
13
13
 
14
- version: 0.1.3
14
+ version: 0.2.2
15
15
  author: @__franccesco
16
16
  homepage: https://github.com/franccesco/dmp
17
17
  learn more: https://codingdose.info
@@ -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 vulnerable #{vuln_count} times!".red.bold
45
+ puts "- WARNING: Passphrase appears in #{vuln_count} datasets!".red.bold
46
46
  elsif options[:hibp]
47
- puts '- Password is safe to use.'.green.bold
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} data sets!".red.bold
64
+ puts " Your password appears in #{vuln_count} datasets!".red.bold
58
65
  else
59
- puts " Your password/passphrase is safe to use.".green.bold
66
+ puts " Your password was not found in a dataset.".green.bold
60
67
  end
61
68
  end
62
69
 
@@ -1,5 +1,5 @@
1
1
  module Dmp
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  BANNER = '''
4
4
  ____ __ __ ____
5
5
  | _ \ | \/ | | _ \
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franccesco Orozco