memorable_password 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/memorable_password/version.rb +1 -1
- data/lib/memorable_password.rb +2 -2
- metadata +3 -3
data/lib/memorable_password.rb
CHANGED
@@ -20,7 +20,7 @@ module MemorablePassword
|
|
20
20
|
opts = DEFAULT_OPTIONS.merge(opts)
|
21
21
|
|
22
22
|
if opts[:length]
|
23
|
-
password = [(opts[:length] >=
|
23
|
+
password = [(opts[:length] >= 8 ? long_word : word), (opts[:special_characters] ? character : digit)]
|
24
24
|
password << word(opts[:length] - password.compact.join.length)
|
25
25
|
|
26
26
|
if (count = opts[:length] - password.compact.join.length) > 0
|
@@ -30,7 +30,7 @@ module MemorablePassword
|
|
30
30
|
if opts[:special_characters]
|
31
31
|
password = [word, character, word, digit]
|
32
32
|
else
|
33
|
-
password = [word, digit,
|
33
|
+
password = [word, digit, long_word]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memorable_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin McPhillips
|