password_strength 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/password_strength/version.rb +1 -1
- data/support/common.txt +11 -0
- data/test/password_strength_test.rb +3 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6004f5ff1b8ed1037dc979a2a00eed04139de64b
|
4
|
+
data.tar.gz: ad0444c76209014a1cde44f35a36ba8f2fc50294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa9ca95c397d05e479ee4b54fafd5f327a610b37cda1c82a800dc1a4dddc167cb175946ab51d22a939b363cd893f4359c9c69047304e1bd1bcd81c432421fe8
|
7
|
+
data.tar.gz: dadcf0753748e41f11e9e8145bf3b5da754a6a8531440b0d9a6c7c2acba9795d1862d29ab38c4a528447543451ce117d2cfda9deb4335ca256aaec83d8a73290
|
data/Rakefile
CHANGED
data/support/common.txt
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
1212
|
14
14
|
121212
|
15
15
|
123123
|
16
|
+
12
|
17
|
+
123
|
16
18
|
1234
|
17
19
|
12345
|
18
20
|
123456
|
@@ -20,6 +22,15 @@
|
|
20
22
|
12345678
|
21
23
|
123456789
|
22
24
|
1234567890
|
25
|
+
09
|
26
|
+
098
|
27
|
+
0987
|
28
|
+
09876
|
29
|
+
098765
|
30
|
+
0987654
|
31
|
+
09876543
|
32
|
+
098765432
|
33
|
+
0987654321
|
23
34
|
123qweasd
|
24
35
|
12qw!@qw
|
25
36
|
1313
|
@@ -45,7 +45,7 @@ class TestPasswordStrength < Minitest::Test
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def test_short_password
|
48
|
-
@strength.password = "
|
48
|
+
@strength.password = "xyz"
|
49
49
|
@strength.test
|
50
50
|
|
51
51
|
assert_equal 0, @strength.score
|
@@ -115,7 +115,7 @@ class TestPasswordStrength < Minitest::Test
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def test_penalize_number_sequence
|
118
|
-
@strength.password = "
|
118
|
+
@strength.password = "234"
|
119
119
|
assert_equal -15, @strength.score_for(:sequences)
|
120
120
|
|
121
121
|
@strength.password = "123123"
|
@@ -157,7 +157,7 @@ class TestPasswordStrength < Minitest::Test
|
|
157
157
|
end
|
158
158
|
|
159
159
|
def test_penalize_short_password
|
160
|
-
@strength.password = "
|
160
|
+
@strength.password = "abc"
|
161
161
|
assert_equal -100, @strength.score_for(:password_size)
|
162
162
|
end
|
163
163
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: password_strength
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Check password strength against several rules. Includes ActiveRecord/ActiveModel
|
@@ -136,4 +136,3 @@ test_files:
|
|
136
136
|
- test/test_helper.rb
|
137
137
|
- test/user.rb
|
138
138
|
- test/validators/windows2008_test.rb
|
139
|
-
has_rdoc:
|