keyrack 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.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/README.rdoc +17 -47
- data/VERSION +1 -1
- data/features/step_definitions/keyrack_steps.rb +4 -5
- data/features/support/env.rb +3 -0
- metadata +5 -5
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source :rubygems
|
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
5
|
gem 'net-scp', :require => 'net/scp'
|
6
6
|
gem 'highline'
|
7
|
-
gem '
|
7
|
+
gem 'copier'
|
8
8
|
|
9
9
|
# Add dependencies to develop your gem here.
|
10
10
|
# Include everything needed to run rake, tests, features, etc.
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
builder (3.0.0)
|
5
|
+
copier (1.3)
|
5
6
|
cucumber (0.10.0)
|
6
7
|
builder (>= 2.1.2)
|
7
8
|
diff-lcs (~> 1.1.2)
|
@@ -26,17 +27,16 @@ GEM
|
|
26
27
|
rake (0.8.7)
|
27
28
|
rcov (0.9.9)
|
28
29
|
term-ansicolor (1.0.5)
|
29
|
-
viking-copier (1.2)
|
30
30
|
|
31
31
|
PLATFORMS
|
32
32
|
ruby
|
33
33
|
|
34
34
|
DEPENDENCIES
|
35
35
|
bundler (~> 1.0.0)
|
36
|
+
copier
|
36
37
|
cucumber
|
37
38
|
highline
|
38
39
|
jeweler (~> 1.5.1)
|
39
40
|
mocha
|
40
41
|
net-scp
|
41
42
|
rcov
|
42
|
-
viking-copier
|
data/README.rdoc
CHANGED
@@ -1,72 +1,42 @@
|
|
1
1
|
= keyrack
|
2
2
|
|
3
3
|
Keyrack is a simple password manager with local or remote storage and RSA
|
4
|
-
encryption.
|
4
|
+
and AES encryption.
|
5
5
|
|
6
6
|
== Installation
|
7
7
|
|
8
8
|
gem install keyrack
|
9
9
|
|
10
|
-
== Configuration
|
11
|
-
|
12
|
-
=== Format
|
13
|
-
|
14
|
-
The configuration file is a YAML file that requires the following data:
|
15
|
-
* *key*: path to the RSA file you want to use
|
16
|
-
* *store*: options for store (see below)
|
17
|
-
|
18
|
-
=== Store types
|
19
|
-
|
20
|
-
==== filesystem
|
21
|
-
* Required options:
|
22
|
-
* *path*: path to the keyrack database
|
23
|
-
|
24
|
-
==== ssh
|
25
|
-
* Required options:
|
26
|
-
* *host*: host name
|
27
|
-
* *user*: user name
|
28
|
-
* *path*: path to the keyrack database on remote host
|
29
|
-
|
30
|
-
=== Examples
|
31
|
-
|
32
|
-
==== Filesystem example
|
33
|
-
|
34
|
-
store:
|
35
|
-
type: filesystem
|
36
|
-
path: ~/.keyrack/database
|
37
|
-
key: ~/.keyrack/id_rsa
|
38
|
-
|
39
|
-
==== SSH example
|
40
|
-
|
41
|
-
store:
|
42
|
-
type: ssh
|
43
|
-
host: example.com
|
44
|
-
user: foobar
|
45
|
-
path: ~/junk.dat
|
46
|
-
key: ~/.keyrack/id_rsa
|
47
|
-
|
48
10
|
== Usage
|
49
11
|
|
50
|
-
keyrack [-
|
12
|
+
keyrack [-d directory]
|
13
|
+
|
14
|
+
The first time you run Keyrack, it will present you with a series of prompts in
|
15
|
+
order to get you setup. You can specify the <b>-d</b> option if you want
|
16
|
+
Keyrack to put its configuration files somewhere other than <b>~/.keyrack</b>.
|
51
17
|
|
52
|
-
|
53
|
-
(
|
54
|
-
|
55
|
-
|
56
|
-
|
18
|
+
Keyrack can either save its database locally to your filesystem or to a remote
|
19
|
+
location (via ssh). You will be asked which method you want during the setup
|
20
|
+
phase. If you want to access the same remote database from multiple locations,
|
21
|
+
simply copy your Keyrack configuration directory (<b>~/.keyrack</b> by default)
|
22
|
+
to each location.
|
57
23
|
|
58
|
-
|
24
|
+
Running keyrack will display a simple menu in your terminal, like this:
|
59
25
|
|
26
|
+
=== Keyrack Main Menu ===
|
60
27
|
1. Twitter [foobar]
|
61
28
|
2. Facebook [foobar@example.com]
|
62
|
-
3. Twitter [otherfoobar]
|
63
29
|
n. Add new
|
30
|
+
d. Delete entry
|
31
|
+
g. New group
|
64
32
|
s. Save
|
65
33
|
q. Quit
|
66
34
|
|
67
35
|
Selecting <b>1</b> in this case will copy the Twitter password for the foobar user
|
68
36
|
to your clipboard.
|
69
37
|
|
38
|
+
You can create groups to organize your sites.
|
39
|
+
|
70
40
|
== Contributing to keyrack
|
71
41
|
|
72
42
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -1,5 +1,4 @@
|
|
1
1
|
Before do
|
2
|
-
@aruba_io_wait_seconds = 2
|
3
2
|
@fake_home = Dir::Tmpname.create('keyrack') { }
|
4
3
|
Dir.mkdir(@fake_home)
|
5
4
|
@old_home = ENV['HOME']
|
@@ -22,7 +21,7 @@ Then /the output should contain "([^"]+)"/ do |expected|
|
|
22
21
|
sleep 1
|
23
22
|
end
|
24
23
|
@output = @out.read_nonblock(255)
|
25
|
-
@output.
|
24
|
+
assert @output.include?(expected)
|
26
25
|
end
|
27
26
|
|
28
27
|
Then %r{the output should match /([^/]+)/} do |expected|
|
@@ -33,11 +32,11 @@ Then %r{the output should match /([^/]+)/} do |expected|
|
|
33
32
|
sleep 1
|
34
33
|
end
|
35
34
|
@output = @out.read_nonblock(255)
|
36
|
-
@output.
|
35
|
+
assert @output.match(Regexp.new(expected))
|
37
36
|
end
|
38
37
|
|
39
38
|
Then /the output should also contain "([^"]+)"/ do |expected|
|
40
|
-
@output.
|
39
|
+
assert @output.include?(expected)
|
41
40
|
end
|
42
41
|
|
43
42
|
When /I type "([^"]+)"/ do |text|
|
@@ -52,5 +51,5 @@ end
|
|
52
51
|
Then /my clipboard should contain "([^"]+)"/ do |expected|
|
53
52
|
sleep 1
|
54
53
|
result = %x{xclip -selection clipboard -o}.chomp
|
55
|
-
|
54
|
+
assert_equal expected, result
|
56
55
|
end
|
data/features/support/env.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jeremy Stephens
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-18 00:00:00 -06:00
|
18
18
|
default_executable: keyrack
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: *id002
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: copier
|
48
48
|
requirement: &id003 !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
hash: -
|
189
|
+
hash: -2578800290968079459
|
190
190
|
segments:
|
191
191
|
- 0
|
192
192
|
version: "0"
|