ig-validator-utils 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ig-validator-utils.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7e6d15d4db4a59b369e596c83742ea8bc4a55f
|
4
|
+
data.tar.gz: e59ad2208f0c09fc72206ef74f7ff749a1abfaec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 385c289e80601a9b7782d94eb5ba80358c2f0279eaeb1a63769049ebc261e51d6bd469d8f7be33cc3062b40134528237070efe7aab643abdc34daeae198004eb
|
7
|
+
data.tar.gz: f1ec5f965120f15d8954a0117b86220e0b59784efd9263497385bdb0e479d56a3c20a6e1ca433680700fd138701de59ab4a582051b31aa34a174edb15243593e
|
data/lib/ig-validator-utils.rb
CHANGED
@@ -50,9 +50,16 @@ module ValidatorUtils
|
|
50
50
|
# At least one lower case letter
|
51
51
|
# At least one digit
|
52
52
|
# Minimum 6 in length
|
53
|
-
# Maximum
|
53
|
+
# Maximum 20 in length
|
54
54
|
def self.validate_password(value)
|
55
|
-
value =~ /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{6,
|
55
|
+
value =~ /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{6,20}$/
|
56
|
+
end
|
57
|
+
|
58
|
+
# Match any non-whitespace character
|
59
|
+
# Minimum 6 in length
|
60
|
+
# Maximum 20 in length
|
61
|
+
def self.validate_password_relaxed(value)
|
62
|
+
value =~ /^\S{6,20}$/
|
56
63
|
end
|
57
64
|
|
58
65
|
# for a 256-bit ECDSA curve, the uncompressed pubkey is 512 bits (256 bits of x, 256 bits of y, no sign bit).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ig-validator-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infinity-G
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: General validator for request data
|
14
14
|
email: developer@infinity-g.com
|