senha 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +3 -3
- data/NEWS.markdown +4 -1
- data/README.markdown +7 -1
- data/Rakefile +4 -3
- data/TODO.markdown +5 -0
- data/bin/senha +0 -1
- data/lib/senha.rb +1 -3
- data/lib/senha/base.rb +1 -3
- data/lib/senha/base/generator.rb +3 -5
- data/lib/senha/cli/application.rb +3 -3
- metadata +43 -49
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2010-
|
1
|
+
Copyright (c) 2010-2012 Jacob Hammack, Arxopia LLC
|
2
2
|
All rights reserved.
|
3
3
|
|
4
4
|
Redistribution and use in source and binary forms, with or without
|
@@ -9,14 +9,14 @@ modification, are permitted provided that the following conditions are met:
|
|
9
9
|
* Redistributions in binary form must reproduce the above copyright
|
10
10
|
notice, this list of conditions and the following disclaimer in the
|
11
11
|
documentation and/or other materials provided with the distribution.
|
12
|
-
* Neither the name of the Jacob Hammack or
|
12
|
+
* Neither the name of the Jacob Hammack or Arxopia LLC nor the
|
13
13
|
names of its contributors may be used to endorse or promote products
|
14
14
|
derived from this software without specific prior written permission.
|
15
15
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
17
17
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18
18
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
-
DISCLAIMED. IN NO EVENT SHALL JACOB HAMMACK or
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL JACOB HAMMACK or ARXOPIA LLC BE LIABLE FOR ANY
|
20
20
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
21
21
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
22
22
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
data/NEWS.markdown
CHANGED
data/README.markdown
CHANGED
@@ -2,9 +2,15 @@
|
|
2
2
|
|
3
3
|
Senha is a password generation tool for making random passwords based on a input requirement.
|
4
4
|
|
5
|
+
#Installation
|
6
|
+
Senha is released through [RubyGems](http://www.rubygems.org). This allows for an easier installation.
|
7
|
+
|
8
|
+
% gem update
|
9
|
+
% gem install senha
|
10
|
+
|
5
11
|
# Usage
|
6
12
|
|
7
|
-
Using senha is
|
13
|
+
Using senha is relatively simple. Some example usage would be:
|
8
14
|
|
9
15
|
% senha -l
|
10
16
|
kpsyzatdpu
|
data/Rakefile
CHANGED
@@ -3,11 +3,12 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
3
3
|
require "senha"
|
4
4
|
|
5
5
|
task :build do
|
6
|
-
system "gem build
|
6
|
+
system "gem build #{Senha::APP_NAME}.gemspec"
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
task :release => :build do
|
10
|
-
system "gem push
|
10
|
+
system "gem push #{Senha::APP_NAME}-#{Senha::VERSION}.gem"
|
11
|
+
puts "Just released #{Senha::APP_NAME} v#{Senha::VERSION}. #{Senha::APP_NAME} is always available in RubyGems! More information at http://hammackj.com/projects/senha/"
|
11
12
|
end
|
12
13
|
|
13
14
|
task :clean do
|
data/TODO.markdown
ADDED
data/bin/senha
CHANGED
data/lib/senha.rb
CHANGED
data/lib/senha/base.rb
CHANGED
data/lib/senha/base/generator.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module Senha::Base
|
4
2
|
|
5
3
|
# A class for handling the generation of a password based on options
|
@@ -17,9 +15,9 @@ module Senha::Base
|
|
17
15
|
@numbers = ('0'..'9').to_a
|
18
16
|
@lower_case = ('a'..'z').to_a
|
19
17
|
@upper_case = ('A'..'Z').to_a
|
20
|
-
@punctuation = %w(. , ! :
|
21
|
-
@symbols = %w(! @ # $ % ^ & *
|
22
|
-
|
18
|
+
@punctuation = %w(. , ! :).to_a
|
19
|
+
@symbols = %w(~ ! @ # $ % ^ & * ( ) _).to_a
|
20
|
+
|
23
21
|
if options[:all]
|
24
22
|
@available_chars.concat @numbers
|
25
23
|
@available_chars.concat @lower_case
|
@@ -66,15 +66,15 @@ module Senha
|
|
66
66
|
options[:length] = length#.to_i
|
67
67
|
end
|
68
68
|
|
69
|
-
opt.
|
69
|
+
opt.on_tail('-v', '--version', "Shows application version information") do
|
70
70
|
puts "#{APP_NAME} - #{VERSION}"
|
71
71
|
exit
|
72
72
|
end
|
73
73
|
|
74
|
-
opt.on_tail("-?", "--help", "Show this message")
|
74
|
+
opt.on_tail("-?", "--help", "Show this message") do
|
75
75
|
puts opt.to_s + "\n"
|
76
76
|
exit
|
77
|
-
|
77
|
+
end
|
78
78
|
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -1,66 +1,64 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: senha
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jacob Hammack
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-03-02 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: rspec
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70179446946840 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 2.4.0
|
25
22
|
type: :development
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rcov
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *70179446946840
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rcov
|
27
|
+
requirement: &70179446946360 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
35
32
|
version: 0.9.9
|
36
33
|
type: :development
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: yard
|
40
34
|
prerelease: false
|
41
|
-
|
35
|
+
version_requirements: *70179446946360
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: yard
|
38
|
+
requirement: &70179446945900 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
46
43
|
version: 0.6.4
|
47
44
|
type: :development
|
48
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70179446945900
|
49
47
|
description: senha is a password generation tool
|
50
48
|
email: jacob.hammack@hammackj.com
|
51
|
-
executables:
|
49
|
+
executables:
|
52
50
|
- senha
|
53
51
|
extensions: []
|
54
|
-
|
55
|
-
extra_rdoc_files:
|
52
|
+
extra_rdoc_files:
|
56
53
|
- README.markdown
|
57
54
|
- LICENSE
|
58
55
|
- NEWS.markdown
|
59
|
-
files:
|
56
|
+
files:
|
60
57
|
- LICENSE
|
61
58
|
- NEWS.markdown
|
62
59
|
- Rakefile
|
63
60
|
- README.markdown
|
61
|
+
- TODO.markdown
|
64
62
|
- lib/senha/base/generator.rb
|
65
63
|
- lib/senha/base.rb
|
66
64
|
- lib/senha/cli/application.rb
|
@@ -68,33 +66,29 @@ files:
|
|
68
66
|
- lib/senha.rb
|
69
67
|
- senha.gemspec
|
70
68
|
- bin/senha
|
71
|
-
has_rdoc: yard
|
72
69
|
homepage: http://www.hammackj.com/
|
73
|
-
licenses:
|
70
|
+
licenses:
|
74
71
|
- BSD
|
75
72
|
post_install_message:
|
76
73
|
rdoc_options: []
|
77
|
-
|
78
|
-
require_paths:
|
74
|
+
require_paths:
|
79
75
|
- lib
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
77
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version:
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
83
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
91
87
|
version: 1.3.6
|
92
88
|
requirements: []
|
93
|
-
|
94
89
|
rubyforge_project: senha
|
95
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.8.6
|
96
91
|
signing_key:
|
97
92
|
specification_version: 3
|
98
93
|
summary: senha
|
99
94
|
test_files: []
|
100
|
-
|