simple-password-gen 0.1.3 → 0.1.4

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.
@@ -1,13 +1,19 @@
1
- == Simple password generator
1
+ == Simple Password Generator
2
2
 
3
3
  This class will generate either a pronouncable or complete random
4
4
  password.
5
5
 
6
+ == Installation
7
+
8
+ Simply install the generator with Rubygems:
9
+
10
+ $ gem install simple-password-generator
11
+
6
12
  == Example
7
13
 
8
14
  You may +require+ this file and generate some password, like:
9
15
 
10
- require '.../passwd-gen.rb'
16
+ require 'simple-password-generator'
11
17
  puts Password.pronouncable # => "nduslihefrash"
12
18
  puts Password.random(4) # => "w'ds"
13
19
  pw = Password.new (1..10) # => #<Password:0x9678514 ...>
@@ -20,8 +26,8 @@ You may +require+ this file and generate some password, like:
20
26
 
21
27
  Alternatively, you may simply run this file as commandline application:
22
28
 
23
- $ ruby passwd-gen.rb -h
24
- passwd-gen.rb [--length/-l len] [--number/-n num]
29
+ $ simple-password-generator -h
30
+ simple-password-generator [--length/-l len] [--number/-n num]
25
31
  Generates <n> password(s) with appox. length <len>.
26
32
  Will fail if n is less than 1 or len is less than 5.
27
33
  Defaults: length=10, number=3
data/Rakefile CHANGED
@@ -4,5 +4,7 @@ Bundler::GemHelper.install_tasks
4
4
 
5
5
  Rake::RDocTask.new(:docs) do |rd|
6
6
  rd.main = "README.rdoc"
7
+ rd.title = "Simple Password Generator"
7
8
  rd.rdoc_files.include('README.rdoc', 'LICENSE', 'lib/**/*.rb')
9
+ rd.options << '--show-hash'
8
10
  end
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class Password
4
- MAJOR = "0"
5
- MINOR = "1"
6
- PATCH = "3"
7
- VERSION = [MAJOR, MINOR, PATCH].join '.'
4
+ MAJOR = 0 # :nodoc:
5
+ MINOR = 1 # :nodoc:
6
+ PATCH = 4 # :nodoc:
7
+ VERSION = [MAJOR, MINOR, PATCH].join '.' # :nodoc:
8
8
  end
@@ -10,12 +10,15 @@ Gem::Specification.new do |s|
10
10
  s.email = ["dmke@tzi.de"]
11
11
  s.homepage = "http://github.org/dmke/simple-password-gen"
12
12
  s.summary = %q{Simple password generator to create pronounceable or random passowords.}
13
- s.description = %q{This gem comes with an executable and might also be required.}
14
-
15
- s.rubyforge_project = ""
13
+ s.description = s.summary + "\n\nThis gem comes with an executable and might also be required."
16
14
 
17
15
  s.files = `git ls-files`.split("\n")
18
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
18
  s.require_paths = ["lib"]
19
+
20
+ s.rdoc_options << '--title' << 'Simple Password Generator' <<
21
+ '--main' << 'README.rdoc' << '--show-hash' <<
22
+ `git ls-files -- lib/*`.split("\n") <<
23
+ 'README.rdoc' << 'LICENSE'
21
24
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dominik Menke
@@ -18,7 +18,10 @@ date: 2011-01-19 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
- description: This gem comes with an executable and might also be required.
21
+ description: |-
22
+ Simple password generator to create pronounceable or random passowords.
23
+
24
+ This gem comes with an executable and might also be required.
22
25
  email:
23
26
  - dmke@tzi.de
24
27
  executables:
@@ -42,8 +45,16 @@ homepage: http://github.org/dmke/simple-password-gen
42
45
  licenses: []
43
46
 
44
47
  post_install_message:
45
- rdoc_options: []
46
-
48
+ rdoc_options:
49
+ - --title
50
+ - Simple Password Generator
51
+ - --main
52
+ - README.rdoc
53
+ - --show-hash
54
+ - - lib/simple-password-gen.rb
55
+ - lib/simple-password-gen/version.rb
56
+ - README.rdoc
57
+ - LICENSE
47
58
  require_paths:
48
59
  - lib
49
60
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -64,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
75
  version: "0"
65
76
  requirements: []
66
77
 
67
- rubyforge_project: ""
78
+ rubyforge_project:
68
79
  rubygems_version: 1.3.7
69
80
  signing_key:
70
81
  specification_version: 3