chbs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,7 +11,11 @@ included, if you want your passwords to have a bit more of an old-timey feel.
11
11
 
12
12
  ## Installation
13
13
 
14
- Add this line to your application's Gemfile:
14
+ Install it yourself as:
15
+
16
+ $ gem install chbs
17
+
18
+ Or add this line to your application's Gemfile:
15
19
 
16
20
  gem 'chbs'
17
21
 
@@ -19,21 +23,24 @@ And then execute:
19
23
 
20
24
  $ bundle
21
25
 
22
- Or install it yourself as:
23
-
24
- $ gem install chbs
25
-
26
26
  ## Usage
27
27
 
28
28
  Just running chbs with no options will be sufficient in most cases.
29
29
 
30
+ Decrease max rank, -R 1000 for example, to get more common words and thus more
31
+ easily remembered passwords. You can have chbs generate a bunch of passwords,
32
+ -c 20 for example, and pick one that you like.
33
+
30
34
  Usage: chbs [options]
31
- -c, --corpus=CORPUS Corpus of words
32
- -l, --list-corpora List included corpora
33
- -m, --min-length=MIN Minimum word length
34
- -M, --max-length=MAX Maximum word length
35
- -n, --num-words=NUM Number of words
36
- -s, --separator=STRING Word separator
35
+ -C, --corpus=CORPUS Corpus of words
36
+ --list-corpora List included corpora
37
+ -l, --min-length=MIN Minimum word length [4]
38
+ -L, --max-length=MAX Maximum word length [10]
39
+ -r, --min-rank=MIN Minimum word rank [1]
40
+ -R, --max-rank=MAX Maximum word rank [10000]
41
+ -n, --num-words=NUM Number of words [4]
42
+ -s, --separator=STRING Word separator [-]
43
+ -c, --count=COUNT Number of passwords [1]
37
44
 
38
45
  ## Contributing
39
46
 
@@ -1,5 +1,6 @@
1
1
  require "chbs/version"
2
2
  require "chbs/generator"
3
+ require 'json'
3
4
 
4
5
  module Chbs
5
6
  CORPORA_DIRECTORY = File.expand_path('../../corpora/', __FILE__)
@@ -1,6 +1,3 @@
1
- require 'json'
2
- require 'nokogiri'
3
-
4
1
  class Chbs::Generator
5
2
  DEFAULT_MIN_LENGTH = 4
6
3
  DEFAULT_MAX_LENGTH = 10
@@ -1,3 +1,3 @@
1
1
  module Chbs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-05 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri