simplepass 1.0.0 → 1.0.1

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.
@@ -4,3 +4,11 @@
4
4
 
5
5
  * Birthday!
6
6
 
7
+ === 1.0.1 / 2008-08-16
8
+
9
+ * 1 enhancement
10
+
11
+ * After listing all entries with the -l option, you can now select a
12
+ password entry from a menu of choices without re-entering the master
13
+ password.
14
+
data/README.txt CHANGED
@@ -50,7 +50,7 @@ The next time you give the command,
50
50
 
51
51
  simplepass gmail.com
52
52
 
53
- simplepass will display something like this, via the 'less' command: (This is so
53
+ simplepass will display something like this, via the 'less' command:
54
54
 
55
55
  gmail.com
56
56
  login: funnyface
@@ -63,7 +63,8 @@ console, where someone can find it by scrolling up.)
63
63
  The first time you launch simplepass, it will ask you to set a master password.
64
64
  This password will unlock the simplepass database. This database is stored in
65
65
  a single file: a partly encrypted text file called simplepass.db. This file will be
66
- saved in the directory in which you invoked the #{opt.program_name} command.
66
+ saved in the directory in which you invoked the simplepass command. Always
67
+ invoke simplepass from the same directory as the simplepass.db datafile.
67
68
 
68
69
  The top part of this file is a message in plain text and just serves to remind
69
70
  you of the file's purpose. The bottom part is your password database, which is
data/Rakefile CHANGED
@@ -4,12 +4,11 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
  require './lib/simplepass.rb'
6
6
 
7
- Hoe.new('Simple Password Manager', SimplePass::VERSION) do |p|
7
+ Hoe.new('simplepass', SimplePass::VERSION) do |p|
8
8
  p.name = 'simplepass'
9
- p.rubyforge_name = 'simplepass' # if different than lowercase project name
10
9
  p.developer('Daniel Choi', 'dhchoi@gmail.com')
11
- p.extra_deps << ['crypt', '>=1.1.4']
12
- p.remote_rdoc_dir = 'rdoc'
10
+ p.extra_deps << ['crypt', '=1.1.4']
11
+ #p.remote_rdoc_dir = 'rdoc'
13
12
  p.post_install_message = 'Type simplepass -h for instructions.'
14
13
  end
15
14
 
File without changes
@@ -7,7 +7,7 @@ require 'yaml'
7
7
  $:.unshift File.dirname(__FILE__)
8
8
 
9
9
  class SimplePass < DelegateClass(Hash)
10
- VERSION = "1.0.0"
10
+ VERSION = "1.0.1"
11
11
 
12
12
  def self.process_args(argv)
13
13
  @options = options = {
@@ -138,7 +138,24 @@ data un-decryptable.
138
138
  @db.save!
139
139
  puts "Master password changed."
140
140
  elsif options[:list]
141
- puts db.ui.list.join("\n")
141
+ (domains=db.ui.list).each_with_index do |x,i|
142
+ puts "%2d %s" %[i,x]
143
+ end
144
+ loop do
145
+ print "Type a number to view an entry, or return to exit: "
146
+ reply = STDIN.gets.chomp
147
+ unless reply =~ /\d+/
148
+ puts "Ok, good bye."
149
+ exit
150
+ end
151
+ # lookup the domain
152
+ output = db.ui.decrypt(domains[reply.to_i])
153
+ if output
154
+ IO.popen("less", "w") do |pipe|
155
+ pipe.puts output
156
+ end
157
+ end
158
+ end
142
159
  elsif options[:remove]
143
160
  puts db.ui.remove(domain)
144
161
  elsif options[:dump]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplepass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Choi
@@ -9,28 +9,26 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-28 00:00:00 -04:00
12
+ date: 2008-08-16 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: crypt
17
- type: :runtime
18
17
  version_requirement:
19
18
  version_requirements: !ruby/object:Gem::Requirement
20
19
  requirements:
21
- - - ">="
20
+ - - "="
22
21
  - !ruby/object:Gem::Version
23
22
  version: 1.1.4
24
23
  version:
25
24
  - !ruby/object:Gem::Dependency
26
25
  name: hoe
27
- type: :development
28
26
  version_requirement:
29
27
  version_requirements: !ruby/object:Gem::Requirement
30
28
  requirements:
31
29
  - - ">="
32
30
  - !ruby/object:Gem::Version
33
- version: 1.7.0
31
+ version: 1.5.3
34
32
  version:
35
33
  description: simplepass is a lightweight, secure password database with a simple command-line interface.
36
34
  email:
@@ -75,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  requirements: []
76
74
 
77
75
  rubyforge_project: simplepass
78
- rubygems_version: 1.2.0
76
+ rubygems_version: 1.0.1
79
77
  signing_key:
80
78
  specification_version: 2
81
79
  summary: simplepass is a lightweight, secure password database with a simple command-line interface.