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.
@@ -1,3 +1,3 @@
1
1
  module MemorablePassword
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -20,7 +20,7 @@ module MemorablePassword
20
20
  opts = DEFAULT_OPTIONS.merge(opts)
21
21
 
22
22
  if opts[:length]
23
- password = [(opts[:length] >= 9 ? long_word : word), (opts[:special_characters] ? character : digit)]
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, word]
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kevin McPhillips