sgpass 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +16 -16
  2. data/bin/sgpass +2 -2
  3. data/lib/sgpass/version.rb +1 -1
  4. metadata +5 -5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SuperGenPass for Ruby
2
2
 
3
- ## Usage
3
+ ## Command line usage
4
4
 
5
5
  Install it:
6
6
 
@@ -9,20 +9,16 @@ Install it:
9
9
  To generate a password for a site, use:
10
10
 
11
11
  $ sgpass facebook.com
12
- Enter password: [redacted]
12
+ Password: ******
13
13
  h8GCua3DxC
14
14
 
15
- You may even pass full URL's and `sgpass` will figure it out:
16
-
17
- $ sgpass http://www.facebook.com/profile.php
18
- Enter password: [redacted]
19
- h8GCua3DxC
15
+ To copy it to clipboard:
20
16
 
21
- ...These will prompt you for your master password. If you want to do it
22
- straight from the command line:
17
+ $ sgpass facebook.com -c
18
+ Password: ******
19
+ Done. Your password has been copied to the clipboard.
23
20
 
24
- $ sgpass facebook.com MyPassword
25
- h8GCua3DxC
21
+ ## Ruby usage
26
22
 
27
23
  Or from your Ruby app, you may:
28
24
 
@@ -31,15 +27,19 @@ require 'sgpass'
31
27
  str = SGPass.generate('hunter2', 'http://www.facebook.com') #=> "vXzettvkI2"
32
28
  ```
33
29
 
34
- ## Tips and tricks
30
+ ## More usage notes
35
31
 
36
- In Mac OSX, you pipe it to `pbcopy` to copy the password to the clipboard.
32
+ You may even pass full URL's and `sgpass` will figure it out:
37
33
 
38
- $ sgpass facebook.com | pbcopy
34
+ $ sgpass http://www.facebook.com/profile.php
35
+ Password: ******
36
+ h8GCua3DxC
39
37
 
40
- Or on Linux:
38
+ If you don't want to to be asked for your password, pass it straight from the
39
+ command line:
41
40
 
42
- $ sgpass facebook.com | xsel -b -i
41
+ $ sgpass facebook.com MyPassword
42
+ h8GCua3DxC
43
43
 
44
44
  ## Acknowledgements
45
45
 
data/bin/sgpass CHANGED
@@ -13,8 +13,8 @@ def print_usage(options={})
13
13
  $stderr.write "If no password is given, you will be prompted for one.\n"
14
14
  $stderr.write "\n"
15
15
  $stderr.write "Options:\n"
16
- $stderr.write " -c, --copy Copies the result to the clipboard."
17
- $stderr.write " -f, --fast Prompts password just once instead of twice."
16
+ $stderr.write " -c, --copy Copies the result to the clipboard.\n"
17
+ $stderr.write " -f, --fast Prompts password just once instead of twice.\n"
18
18
  $stderr.write "\n"
19
19
  $stderr.write "Examples:\n"
20
20
  $stderr.write " #{cmd} twitter.com\n"
@@ -1,5 +1,5 @@
1
1
  module SGPass
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sgpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
17
- requirement: &2153248760 !ruby/object:Gem::Requirement
17
+ requirement: &2153259440 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.6.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153248760
25
+ version_requirements: *2153259440
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: clipboard
28
- requirement: &2153248260 !ruby/object:Gem::Requirement
28
+ requirement: &2153258940 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 0.9.9
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153248260
36
+ version_requirements: *2153258940
37
37
  description: SGPass uses a hash algorithm to transform a master password into unique,
38
38
  complex passwords for the Web sites you visit. This is a Ruby port of www.supergenpass.com.
39
39
  email: