password_strength 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +9 -1
- data/app/assets/javascripts/password_strength.js +2 -2
- data/lib/password_strength/version.rb +1 -1
- data/package.json +2 -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: cae14dd435d11cf26fbe180ecf7a5e6105f3dee0
|
4
|
+
data.tar.gz: e37c94fc204afcfa60a372d703a002dd9c513faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed381b2f3eb3f565b76512e508574facca2b7dd077128fe1b422878c9d149ab968735bc22e890930396e47deecb1a08db095c432b346cdfafaee3d9c45616807
|
7
|
+
data.tar.gz: 548adfea4713d9e9830a55ae5cd98d5c2a33366905d1c0f1b7a075a7720c779bb495468e701909aa09fe847c926ef68bc6aa2a039933ddd47181728f61a31dc4
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Introduction
|
2
2
|
|
3
|
+
Check password strength against several rules. Includes ActiveRecord/ActiveModel support.
|
4
|
+
|
3
5
|
<a href="https://travis-ci.org/fnando/password_strength"><img src="https://travis-ci.org/fnando/password_strength.svg" alt="Build Status" /></a>
|
4
6
|
|
5
7
|
Validates the strength of a password according to several rules:
|
@@ -34,6 +36,12 @@ or put this in your Gemfile:
|
|
34
36
|
gem "password_strength"
|
35
37
|
```
|
36
38
|
|
39
|
+
The JavaScript code is also available as a NPM package.
|
40
|
+
|
41
|
+
```
|
42
|
+
npm install @fnando/password_strength --save
|
43
|
+
```
|
44
|
+
|
37
45
|
If you want the source go to http://github.com/fnando/password_strength
|
38
46
|
|
39
47
|
## Usage
|
@@ -212,7 +220,7 @@ If you're using asset pipeline, just add the following lines to your `applicatio
|
|
212
220
|
|
213
221
|
(The MIT License)
|
214
222
|
|
215
|
-
Copyright © 2010-
|
223
|
+
Copyright © 2010-2016 Nando Vieira (http://nandovieira.com)
|
216
224
|
|
217
225
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
218
226
|
|
@@ -67,7 +67,7 @@
|
|
67
67
|
};
|
68
68
|
|
69
69
|
PasswordStrength.fn.scoreFor = function(name) {
|
70
|
-
score = 0;
|
70
|
+
var score = 0;
|
71
71
|
|
72
72
|
switch (name) {
|
73
73
|
case "password_size":
|
@@ -275,7 +275,7 @@
|
|
275
275
|
};
|
276
276
|
|
277
277
|
PasswordStrength.test = function(username, password) {
|
278
|
-
strength = new PasswordStrength();
|
278
|
+
var strength = new PasswordStrength();
|
279
279
|
strength.username = username;
|
280
280
|
strength.password = password;
|
281
281
|
strength.test();
|
data/package.json
CHANGED
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|