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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2fa304fc47ccd30db833384a5ad819f202b7a6b
4
- data.tar.gz: 8e480804a0dc165ca2a31d4512a64aa1e9438722
3
+ metadata.gz: 6004f5ff1b8ed1037dc979a2a00eed04139de64b
4
+ data.tar.gz: ad0444c76209014a1cde44f35a36ba8f2fc50294
5
5
  SHA512:
6
- metadata.gz: e3cb592bb95b7ed5940909325281583c9bcb140f0c85482155d8db49275897595b0a01dea1ada56343c006155cc44b3d95949f250bb4a2292de1ce903ac627cf
7
- data.tar.gz: 4b61dc10372e6eb6f49203af948b3afc057becb8dbb4f4e48e423a4f9c2d33e2476aa4f656cacf7b51a5791a600cfc44aea2476efbb3d51868401bf559a2ef98
6
+ metadata.gz: caa9ca95c397d05e479ee4b54fafd5f327a610b37cda1c82a800dc1a4dddc167cb175946ab51d22a939b363cd893f4359c9c69047304e1bd1bcd81c432421fe8
7
+ data.tar.gz: dadcf0753748e41f11e9e8145bf3b5da754a6a8531440b0d9a6c7c2acba9795d1862d29ab38c4a528447543451ce117d2cfda9deb4335ca256aaec83d8a73290
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ Rake::TestTask.new do |t|
7
7
  t.libs += %w[test lib]
8
8
  t.ruby_opts = %w[-rubygems]
9
9
  t.test_files = FileList["test/**/*_test.rb"]
10
- t.verbose = true
10
+ t.warning = false
11
11
  end
12
12
 
13
13
  task :default => :test
@@ -2,7 +2,7 @@ module PasswordStrength
2
2
  module Version # :nodoc: all
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
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 = "123"
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 = "123"
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 = "123"
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.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: 2015-12-18 00:00:00.000000000 Z
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.4.5.1
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: