humpass 0.1.13 → 0.1.14

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: 48720292c7b0bfa991afe28915189463d3c1352b
4
- data.tar.gz: e9f28edf4a20129b04a38c8cc5e9772a4c56d9bb
3
+ metadata.gz: a2dd384f46628b56f4aaf22eea8ef1514496bc55
4
+ data.tar.gz: 0d6dd4e5e1679580e0d1a5f4c2f829f74b22cbb7
5
5
  SHA512:
6
- metadata.gz: 2092fc5a30e202da4162be0556e74a4aa03f190d619d60bcfcdf0f4ed51b4a187fa37166e3f6e1b9664b0f996121699331146e1a425a558499728d8e9d34e1ec
7
- data.tar.gz: 46d759a1b1ded6917b4291c2e1ae7d0dcf8a06e9326b58a5c3705efb03409a393a76d26e8bd228c4646089acac24c512098504f40a7eb89c089ee0626b0b08e5
6
+ metadata.gz: 692640c9c6245b27272a08c3f6b8dcbf9516f4d2a14d9ec3972b71e6806f60a0eda2b0be80f711f5e6ebbb3f2aefd6a80190448a252421466f61066e7bfe08d8
7
+ data.tar.gz: 9fecac18d7c4fd776c54cc63b4aa2510a2010265d8f96f0032069ef9d161723f8ca3c0446ffa8e2167dfd6d09cdea80478e2e0152759352c4dada698c096de07
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- humpass (0.1.13)
4
+ humpass (0.1.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Ruby Application for Creating random passwords and storing them secured.
4
4
 
5
+ You should have a password for each service that you use, but keep these passwords in order is essencially hard because, of course, they are different form each other.
6
+
7
+ SO... You don't need to know them at all.
8
+
9
+ That's what this app does. It generate passwords for each service and them, it manages it for you securely.
10
+
11
+ How about that?
12
+
5
13
  ## Installation
6
14
 
7
15
  Add this line to your application's Gemfile:
@@ -21,9 +29,9 @@ Or install it yourself as:
21
29
  ## Usage
22
30
 
23
31
  Type:
24
- ```
25
- $ humpass --help
26
- ```
32
+
33
+ $ humpass --help
34
+
27
35
  To get instructions
28
36
 
29
37
  ## Development
data/exe/humpass CHANGED
@@ -25,6 +25,10 @@ OptionParser.new do |opts|
25
25
  options[:get_pass] = place
26
26
  end
27
27
 
28
+ opts.on("-d","--deletepass [PLACE]", "Deletes password from place") do |place|
29
+ options[:delete_pass] = place
30
+ end
31
+
28
32
  opts.on("-l","--list", "List Passwords") do |list|
29
33
  options[:list] = list
30
34
  end
@@ -53,6 +57,10 @@ if options.has_key?(:get_pass)
53
57
  print "#{options[:get_pass]}: #{Humpass.get_password(options[:get_pass])}\n"
54
58
  end
55
59
 
60
+ if options.has_key?(:delete_pass)
61
+ print "#{options[:delete_pass]}: #{Humpass.remove_password(options[:delete_pass])}\n"
62
+ end
63
+
56
64
  if options.has_key?(:list)
57
65
  Humpass.list_passwords.each do |password|
58
66
  print"#{password.first}: #{password.last} \n"
@@ -1,3 +1,3 @@
1
1
  module Humpass
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
data/lib/humpass.rb CHANGED
@@ -19,6 +19,10 @@ module Humpass
19
19
  Humpass.data_structure.get_password(place)
20
20
  end
21
21
 
22
+ def self.remove_password(place)
23
+ Humpass.remove_password(place)
24
+ end
25
+
22
26
  def self.list_passwords
23
27
  Humpass.data_structure.list_passwords
24
28
  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.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Hamdan