password_mate 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/password_mate.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4835df46088f2bdc4d71c3d42b23d4343659721
|
4
|
+
data.tar.gz: 751162659e7095d74abc4b997d222a445cc2511d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e1b17b50873346406f4047eb33b13aaed927b44c956c65209fbaf4b25a5bc39fb5f7bbc6922193f741109d277cb7ac722c4045df85927e2d6ecbfbdf3327c2
|
7
|
+
data.tar.gz: 8f9b1b68c776c07e57759388e57e8a41479f2ebf48183719b0f6eafc6244d0d46d17925f57aae541f4f7ce1f324528cd92eef9e56a9590bb2f15a1406c616376
|
data/lib/password_mate.rb
CHANGED
@@ -8,7 +8,7 @@ module PasswordMate
|
|
8
8
|
PasswordLength = 8
|
9
9
|
|
10
10
|
def strong?(str)
|
11
|
-
return false if str.
|
11
|
+
return false if str && str.empty?
|
12
12
|
return false unless str =~ Regexp.union(*SpecialCharacters)
|
13
13
|
return false unless str =~ Regexp.union(*LowercaseLetters)
|
14
14
|
return false unless str =~ Regexp.union(*UppercaseLetters)
|