passw3rd 0.0.6 → 0.0.7

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/EXAMPLES CHANGED
@@ -4,18 +4,27 @@ Command line use
4
4
 
5
5
  Generate key/iv in ~/ by default
6
6
 
7
- passw3rd -k
7
+ $ passw3rd -g
8
+ generated keys in /Users/user
9
+
10
+ $ passw3rd -g ~/Desktop/
11
+ generated keys in /Users/user/Desktop/
8
12
 
9
13
  Create a password file
10
14
 
11
- passw3rd -e 'foobar_app'
12
- Enter password:
15
+ $ passw3rd -e foobar_app
16
+ Enter the password:
17
+ Wrote password to /Users/neilmatatall/foobar_app
18
+ $ passw3rd -e foobar_app -p ~/Desktop/
19
+ Enter the password:
20
+ Wrote password to /Users/neilmatatall/Desktop/foobar_app
13
21
 
14
22
  Read a password file
15
23
 
16
- passw3rd -d 'foobar_app'
17
-
18
- > "Your password"
24
+ $ passw3rd -d foobar_app
25
+ The password is: asdf
26
+ $ passw3rd -d foobar_app -p ~/Desktop/
27
+ The password is: asdf
19
28
 
20
29
 
21
30
  ------------------------------------------------------------------------------
@@ -48,6 +57,9 @@ password=${password}
48
57
  Ruby on Rails config/database.yml
49
58
  ------------------------------------------------------------------------------
50
59
 
60
+ initializer:
61
+ Passw3rd::PasswordService.password_file_dir = "passwords"
62
+
51
63
  Before:
52
64
 
53
65
  development:
@@ -32,6 +32,7 @@ module Passw3rd
32
32
 
33
33
  opts.on('-p', '--password-dir PATH', 'Read and write password files to this directory (default is ~/)') do |opt|
34
34
  password_dir = opt
35
+ Passw3rd::PasswordService.password_file_dir = password_dir
35
36
  if !File.directory?(File.expand_path(password_dir))
36
37
  raise "#{password_dir} must be a directory"
37
38
  end
@@ -1,3 +1,3 @@
1
1
  module Passw3rd
2
- Version = VERSION = '0.0.6'
2
+ Version = VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passw3rd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: