stephencelis-haddock 0.2.0 → 0.2.1

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/.autotest ADDED
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
@@ -1,3 +1,11 @@
1
+ === 0.2.1 / 2009-05-14
2
+
3
+ * 1 major, minor enhancement
4
+
5
+ * Ruby 1.9 compatibility.
6
+
7
+
8
+
1
9
  === 0.2.0 / 2009-03-29
2
10
 
3
11
  * 1 major enhancement
data/Manifest.txt CHANGED
@@ -1,6 +1,7 @@
1
- History.txt
1
+ .autotest
2
+ History.rdoc
2
3
  Manifest.txt
3
- README.txt
4
+ README.rdoc
4
5
  Rakefile
5
6
  bin/ha-gen
6
7
  lib/haddock.rb
@@ -34,10 +34,16 @@ On the command line:
34
34
  symbolistically5<overthwartways
35
35
 
36
36
 
37
+ For more information:
38
+
39
+ http://stephencelis.com/2009/03/29/whats-the-password-haddock.html
40
+
41
+
37
42
  == REQUIREMENTS
38
43
 
39
44
  A newline-delimited words file. By default, it uses "/usr/share/dict/words" or
40
- "/usr/share/wo".
45
+ "/usr/share/words".
46
+
41
47
  Otherwise:
42
48
 
43
49
  Haddock::Password.diction = "/path/to/words"
@@ -45,14 +51,19 @@ Otherwise:
45
51
 
46
52
  Or:
47
53
 
48
- % ha-gen -w /path/to/words
54
+ % ha-gen -f /path/to/words
49
55
 
50
56
 
51
57
  == INSTALL
52
58
 
59
+ RubyForge:
60
+
61
+ % gem install haddock
62
+
63
+
53
64
  GitHub:
54
65
 
55
- sudo gem install stephencelis-haddock --source=http://gems.github.com
66
+ % gem install stephencelis-haddock --source=http://gems.github.com
56
67
 
57
68
 
58
69
  == LICENSE
data/Rakefile CHANGED
@@ -5,4 +5,7 @@ require "haddock"
5
5
 
6
6
  Hoe.new('haddock', Haddock::VERSION) do |p|
7
7
  p.developer('Stephen Celis', 'stephen@stephencelis.com')
8
+ p.remote_rdoc_dir = ''
9
+ p.readme_file = "README.rdoc"
10
+ p.history_file = "History.rdoc"
8
11
  end
data/bin/ha-gen CHANGED
@@ -9,7 +9,6 @@ parser = OptionParser.new do |opts|
9
9
  opts.banner = "usage: #{File.basename($0)} [options]"
10
10
 
11
11
  opts.on("-V", "--version") do
12
- require 'capistrano/version'
13
12
  puts "#{File.basename($0)}: v#{Haddock::VERSION}"
14
13
  exit
15
14
  end
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.2.0'
4
+ VERSION = '0.2.1'
5
5
 
6
6
  module Password
7
7
  MINIMUM = 8
@@ -33,7 +33,7 @@ module Haddock
33
33
 
34
34
  begin
35
35
  words = %W(#{random_word} #{random_symbol}#{random_word})
36
- words_length = words.to_s.length
36
+ words_length = words.join.length
37
37
  end until words_length < length && words_length > words_limit
38
38
 
39
39
  words.join random_number(length - words_length)
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-29 00:00:00 -07:00
12
+ date: 2009-05-14 00:00:00 -07:00
13
13
  default_executable: ha-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.11.0
23
+ version: 1.12.2
24
24
  version:
25
25
  description: A more memorable password generator. Swordfish? No, I got tired of that. I changed it.
26
26
  email:
@@ -30,24 +30,23 @@ executables:
30
30
  extensions: []
31
31
 
32
32
  extra_rdoc_files:
33
- - History.txt
34
33
  - Manifest.txt
35
- - README.txt
36
34
  files:
37
- - History.txt
35
+ - .autotest
36
+ - History.rdoc
38
37
  - Manifest.txt
39
- - README.txt
38
+ - README.rdoc
40
39
  - Rakefile
41
40
  - bin/ha-gen
42
41
  - lib/haddock.rb
43
42
  - test/names.txt
44
43
  - test/test_haddock.rb
45
- has_rdoc: true
44
+ has_rdoc: false
46
45
  homepage: http://github.com/stephencelis/haddock
47
46
  post_install_message:
48
47
  rdoc_options:
49
48
  - --main
50
- - README.txt
49
+ - README.rdoc
51
50
  require_paths:
52
51
  - lib
53
52
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -67,7 +66,7 @@ requirements: []
67
66
  rubyforge_project: haddock
68
67
  rubygems_version: 1.2.0
69
68
  signing_key:
70
- specification_version: 2
69
+ specification_version: 3
71
70
  summary: A more memorable password generator
72
71
  test_files:
73
72
  - test/test_haddock.rb