humpass 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 9196b27c9bce7d79d2a9d35fce43aaa52e3b5756
4
- data.tar.gz: 60394ff73d8b674fbe522b42830fb88f43906f67
3
+ metadata.gz: 89f4cbb976a83ee77b0b036abebbefcfd9a51bd0
4
+ data.tar.gz: 22807c2513180f0746b86f20ad3e2fea3d968f58
5
5
  SHA512:
6
- metadata.gz: 716298c1b3d88312f2160a08d4e756df52388c868ed269d7246fda31722089cf82e094e53130b95b59a0f485ddcf983f4ce8e0f0f4256636f508ebc2728c22a2
7
- data.tar.gz: bc14f770c2dc9bd18bbe4ae10a02c984b4d1587071a9a4948381ea5a49ffa544a6c5b9d5dbe3076c3f7e5be998ca5ddaba0f7fd6fb2ee6857ca0da585f387aac
6
+ metadata.gz: '04962e051d487eaf5ff33598f2543480274ce45aa340700566bee6bd0488d5ada114bfae13dee53d9c904d509944c8321d0f6d8c4820d57633d84fe1dbbae14e'
7
+ data.tar.gz: 0754a06219bc73112ce1d84b65dfb2c105e2313087be8e1b4c21b4af7dd4e852a24a75f7a69c1cb932255d4ff034d06de52205515b83772061ea62755279d919
@@ -1,16 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- humpass (0.2.1)
4
+ humpass (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  awesome_print (1.8.0)
10
- bundler-unload (1.0.2)
11
- clipboard (1.1.1)
12
10
  diff-lcs (1.3)
13
- executable-hooks (1.3.2)
14
11
  json (2.1.0)
15
12
  rake (10.5.0)
16
13
  rspec (3.7.0)
@@ -26,9 +23,6 @@ GEM
26
23
  diff-lcs (>= 1.2.0, < 2.0)
27
24
  rspec-support (~> 3.7.0)
28
25
  rspec-support (3.7.0)
29
- rubygems-bundler (1.4.4)
30
- bundler-unload (>= 1.0.2)
31
- executable-hooks (>= 1.3.2)
32
26
 
33
27
  PLATFORMS
34
28
  ruby
@@ -36,14 +30,10 @@ PLATFORMS
36
30
  DEPENDENCIES
37
31
  awesome_print
38
32
  bundler (~> 1.16.a)
39
- clipboard (~> 1.1.1)
40
- diff-lcs (~> 1.3)
41
- ffi (~> 1.3)
42
33
  humpass!
43
34
  json
44
35
  rake (~> 10.0)
45
36
  rspec (~> 3.0)
46
- rubygems-bundler
47
37
 
48
38
  BUNDLED WITH
49
39
  1.16.0
@@ -29,7 +29,7 @@ OptionParser.new do |opts|
29
29
  options[:delete_pass] = place
30
30
  end
31
31
 
32
- opts.on("-l","--list", "List Passwords") do |list|
32
+ opts.on("-l","--list", "List Places") do |list|
33
33
  options[:list] = list
34
34
  end
35
35
  end.parse!
@@ -54,8 +54,13 @@ if options.has_key?(:place)
54
54
  end
55
55
 
56
56
  if options.has_key?(:get_pass)
57
- Clipboard.copy(Humpass.get_password(options[:get_pass]))
58
- print "#{options[:get_pass]}: Password copied to clipboard.\n"
57
+ password = Humpass.get_password(options[:get_pass])
58
+ if password.class.eql?(NilClass)
59
+ print "\nPassword not found."
60
+ else
61
+ Clipboard.copy(password)
62
+ print "Password for #{options[:get_pass]} copied to clipboard.\n"
63
+ end
59
64
  end
60
65
 
61
66
  if options.has_key?(:delete_pass)
@@ -63,7 +68,9 @@ if options.has_key?(:delete_pass)
63
68
  end
64
69
 
65
70
  if options.has_key?(:list)
71
+ print"PLACES START:\n"
66
72
  Humpass.list_passwords.each do |password|
67
- print"#{password.first}: #{password.last} \n"
73
+ print"#{password.first}\n"
68
74
  end
75
+ print"PLACES END:\n"
69
76
  end
@@ -17,7 +17,6 @@ module Humpass
17
17
  end
18
18
 
19
19
  def self.get_password(place)
20
- Clipboard.copy(Humpass.data_structure.get_password(place))
21
20
  Humpass.data_structure.get_password(place)
22
21
  end
23
22
 
@@ -77,7 +77,7 @@ module Humpass
77
77
  if place
78
78
  place.last.decrypt(self.master_password)
79
79
  else
80
- "Place Not Found!"
80
+ "Password Not Found!"
81
81
  end
82
82
  end
83
83
 
@@ -1,3 +1,3 @@
1
1
  module Humpass
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Hamdan