keepass-password-generator 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +11 -0
- data/README.md +6 -0
- data/keepass-password-generator.gemspec +2 -3
- data/lib/keepass/password/version.rb +1 -1
- data/lib/keepass/random.rb +2 -2
- data/spec/random_spec.rb +3 -3
- metadata +17 -19
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# keepass-password-generator
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/patdeegan/keepass-password-generator.png?branch=master)](http://travis-ci.org/patdeegan/keepass-password-generator)
|
4
|
+
|
3
5
|
Generate passwords using KeePass password generator patterns.
|
4
6
|
|
5
7
|
## RubyGems installation
|
@@ -56,3 +58,7 @@ Invalid patterns raise an exception:
|
|
56
58
|
|
57
59
|
* <https://github.com/dmke/simple-password-gen>
|
58
60
|
* <http://rubygems.org/gems/ruby-password>
|
61
|
+
|
62
|
+
## Contributors
|
63
|
+
|
64
|
+
* [Pavel Argentov](https://github.com/argent-smith)
|
@@ -18,11 +18,10 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
|
-
|
22
|
-
s.add_dependency 'activesupport', '>= 2.2.0'
|
23
21
|
|
22
|
+
s.add_development_dependency 'rake'
|
24
23
|
s.add_development_dependency 'yard'
|
25
|
-
s.add_development_dependency '
|
24
|
+
s.add_development_dependency 'redcarpet'
|
26
25
|
s.add_development_dependency 'rspec'
|
27
26
|
|
28
27
|
end
|
data/lib/keepass/random.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'securerandom'
|
2
2
|
|
3
3
|
module KeePass
|
4
4
|
|
@@ -14,7 +14,7 @@ module KeePass
|
|
14
14
|
# @return [Integer|Float] the random number
|
15
15
|
# @see ActiveSupport::SecureRandom#random_number
|
16
16
|
def self.random_number(n = 0)
|
17
|
-
|
17
|
+
SecureRandom.random_number(n)
|
18
18
|
end
|
19
19
|
|
20
20
|
# Returns a randomly sampled item from the array.
|
data/spec/random_spec.rb
CHANGED
@@ -4,13 +4,13 @@ describe KeePass::Random do
|
|
4
4
|
|
5
5
|
describe "#random_number" do
|
6
6
|
|
7
|
-
it "should use
|
8
|
-
|
7
|
+
it "should use Ruby's native SecureRandom" do
|
8
|
+
SecureRandom.should_receive(:random_number).once.with(12)
|
9
9
|
described_class.random_number(12)
|
10
10
|
end
|
11
11
|
|
12
12
|
it "should accept default argument" do
|
13
|
-
|
13
|
+
SecureRandom.should_receive(:random_number).with(0)
|
14
14
|
described_class.random_number
|
15
15
|
end
|
16
16
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keepass-password-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Nishinaga
|
@@ -15,27 +15,23 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-03-30 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
type: :runtime
|
21
|
+
type: :development
|
24
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
23
|
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
27
|
+
hash: 3
|
30
28
|
segments:
|
31
|
-
- 2
|
32
|
-
- 2
|
33
29
|
- 0
|
34
|
-
version:
|
35
|
-
name:
|
30
|
+
version: "0"
|
31
|
+
name: rake
|
36
32
|
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
33
|
prerelease: false
|
34
|
+
- !ruby/object:Gem::Dependency
|
39
35
|
type: :development
|
40
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
37
|
none: false
|
@@ -48,8 +44,8 @@ dependencies:
|
|
48
44
|
version: "0"
|
49
45
|
name: yard
|
50
46
|
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
47
|
prerelease: false
|
48
|
+
- !ruby/object:Gem::Dependency
|
53
49
|
type: :development
|
54
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
51
|
none: false
|
@@ -60,10 +56,10 @@ dependencies:
|
|
60
56
|
segments:
|
61
57
|
- 0
|
62
58
|
version: "0"
|
63
|
-
name:
|
59
|
+
name: redcarpet
|
64
60
|
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
61
|
prerelease: false
|
62
|
+
- !ruby/object:Gem::Dependency
|
67
63
|
type: :development
|
68
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
65
|
none: false
|
@@ -76,6 +72,7 @@ dependencies:
|
|
76
72
|
version: "0"
|
77
73
|
name: rspec
|
78
74
|
version_requirements: *id004
|
75
|
+
prerelease: false
|
79
76
|
description: Generate passwords using KeePass password generator patterns
|
80
77
|
email:
|
81
78
|
- jingoro@casa-z.org
|
@@ -88,6 +85,7 @@ extra_rdoc_files: []
|
|
88
85
|
files:
|
89
86
|
- .gitignore
|
90
87
|
- .rspec
|
88
|
+
- .travis.yml
|
91
89
|
- .yardopts
|
92
90
|
- CHANGELOG.md
|
93
91
|
- Gemfile
|
@@ -105,7 +103,6 @@ files:
|
|
105
103
|
- spec/generator_spec.rb
|
106
104
|
- spec/random_spec.rb
|
107
105
|
- spec/spec_helper.rb
|
108
|
-
has_rdoc: true
|
109
106
|
homepage: https://github.com/patdeegan/keepass-password-generator
|
110
107
|
licenses: []
|
111
108
|
|
@@ -135,12 +132,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
132
|
requirements: []
|
136
133
|
|
137
134
|
rubyforge_project: keepass-password-generator
|
138
|
-
rubygems_version: 1.
|
135
|
+
rubygems_version: 1.8.10
|
139
136
|
signing_key:
|
140
137
|
specification_version: 3
|
141
|
-
summary: keepass-password-generator-0.1.
|
138
|
+
summary: keepass-password-generator-0.1.1
|
142
139
|
test_files:
|
143
140
|
- spec/char_set_spec.rb
|
144
141
|
- spec/generator_spec.rb
|
145
142
|
- spec/random_spec.rb
|
146
143
|
- spec/spec_helper.rb
|
144
|
+
has_rdoc:
|