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,6 +34,11 @@ 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
@@ -51,6 +56,11 @@ Or:
51
56
 
52
57
  == INSTALL
53
58
 
59
+ RubyForge:
60
+
61
+ % gem install haddock
62
+
63
+
54
64
  GitHub:
55
65
 
56
66
  % gem install stephencelis-haddock --source=http://gems.github.com
data/Rakefile CHANGED
@@ -6,4 +6,6 @@ require "haddock"
6
6
  Hoe.new('haddock', Haddock::VERSION) do |p|
7
7
  p.developer('Stephen Celis', 'stephen@stephencelis.com')
8
8
  p.remote_rdoc_dir = ''
9
+ p.readme_file = "README.rdoc"
10
+ p.history_file = "History.rdoc"
9
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: 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,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-01 00:00:00 -05:00
13
- default_executable:
12
+ date: 2009-05-14 00:00:00 -05:00
13
+ default_executable: ha-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe
@@ -20,9 +20,11 @@ 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
- description: A more memorable password generator. Swordfish? No, I got tired of that. I changed it.
25
+ description: |-
26
+ A more memorable password generator. Swordfish? No, I got tired of that. I
27
+ changed it.
26
28
  email:
27
29
  - stephen@stephencelis.com
28
30
  executables:
@@ -30,13 +32,14 @@ executables:
30
32
  extensions: []
31
33
 
32
34
  extra_rdoc_files:
33
- - History.txt
35
+ - History.rdoc
34
36
  - Manifest.txt
35
- - README.txt
37
+ - README.rdoc
36
38
  files:
37
- - History.txt
39
+ - .autotest
40
+ - History.rdoc
38
41
  - Manifest.txt
39
- - README.txt
42
+ - README.rdoc
40
43
  - Rakefile
41
44
  - bin/ha-gen
42
45
  - lib/haddock.rb
@@ -44,10 +47,12 @@ files:
44
47
  - test/test_haddock.rb
45
48
  has_rdoc: true
46
49
  homepage: http://github.com/stephencelis/haddock
50
+ licenses: []
51
+
47
52
  post_install_message:
48
53
  rdoc_options:
49
54
  - --main
50
- - README.txt
55
+ - README.rdoc
51
56
  require_paths:
52
57
  - lib
53
58
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -65,9 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
70
  requirements: []
66
71
 
67
72
  rubyforge_project: haddock
68
- rubygems_version: 1.3.1
73
+ rubygems_version: 1.3.5
69
74
  signing_key:
70
- specification_version: 2
75
+ specification_version: 3
71
76
  summary: A more memorable password generator
72
77
  test_files:
73
78
  - test/test_haddock.rb