stephencelis-haddock 0.1.1 → 0.2.0

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/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.2.0 / 2009-03-29
2
+
3
+ * 1 major enhancement
4
+
5
+ * Changed "haddock" to "ha-gen" for Haskell compliance.
6
+
7
+
1
8
  === 0.1.1 / 2009-03-29
2
9
 
3
10
  * 2 minor enhancements
data/Manifest.txt CHANGED
@@ -2,7 +2,7 @@ History.txt
2
2
  Manifest.txt
3
3
  README.txt
4
4
  Rakefile
5
- bin/haddock
5
+ bin/ha-gen
6
6
  lib/haddock.rb
7
7
  test/names.txt
8
8
  test/test_haddock.rb
data/README.txt CHANGED
@@ -28,23 +28,24 @@ In your apps:
28
28
 
29
29
  On the command line:
30
30
 
31
- % haddock
31
+ % ha-gen
32
32
  bowl9&bracky
33
- % haddock -l31
33
+ % ha-gen -l31
34
34
  symbolistically5<overthwartways
35
35
 
36
36
 
37
37
  == REQUIREMENTS
38
38
 
39
39
  A newline-delimited words file. By default, it uses "/usr/share/dict/words" or
40
- "/usr/share/words". Otherwise:
40
+ "/usr/share/wo".
41
+ Otherwise:
41
42
 
42
43
  Haddock::Password.diction = "/path/to/words"
43
44
 
44
45
 
45
46
  Or:
46
47
 
47
- % haddock -w /path/to/words
48
+ % ha-gen -w /path/to/words
48
49
 
49
50
 
50
51
  == INSTALL
@@ -10,7 +10,7 @@ parser = OptionParser.new do |opts|
10
10
 
11
11
  opts.on("-V", "--version") do
12
12
  require 'capistrano/version'
13
- puts "haddock: v#{Haddock::VERSION}"
13
+ puts "#{File.basename($0)}: v#{Haddock::VERSION}"
14
14
  exit
15
15
  end
16
16
 
@@ -33,12 +33,12 @@ begin
33
33
  parser.parse!
34
34
  puts @length ? Password.generate(@length) : Password.generate
35
35
  rescue OptionParser::ParseError, Password::LengthError => error
36
- warn "haddock: #{error.message} " +
36
+ warn "#{File.basename($0)}: #{error.message} " +
37
37
  "(must be between #{Password::MINIMUM} and #{Password::MAXIMUM})."
38
38
  puts parser
39
39
  exit 1
40
40
  rescue Password::NoWordsError => error
41
- warn "haddock: #{error.message}."
41
+ warn "#{File.basename($0)}: #{error.message}."
42
42
  puts "Word lists are available here: http://wordlist.sourceforge.net"
43
43
  puts parser
44
44
  exit 1
data/lib/haddock.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # A more memorable password generator. Swordfish? No, I got tired of that. I
2
2
  # changed it.
3
3
  module Haddock
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
 
6
6
  module Password
7
7
  MINIMUM = 8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stephencelis-haddock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis
@@ -10,7 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2009-03-29 00:00:00 -07:00
13
- default_executable: haddock
13
+ default_executable: ha-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe
@@ -26,7 +26,7 @@ description: A more memorable password generator. Swordfish? No, I got tired of
26
26
  email:
27
27
  - stephen@stephencelis.com
28
28
  executables:
29
- - haddock
29
+ - ha-gen
30
30
  extensions: []
31
31
 
32
32
  extra_rdoc_files:
@@ -38,7 +38,7 @@ files:
38
38
  - Manifest.txt
39
39
  - README.txt
40
40
  - Rakefile
41
- - bin/haddock
41
+ - bin/ha-gen
42
42
  - lib/haddock.rb
43
43
  - test/names.txt
44
44
  - test/test_haddock.rb