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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6004f5ff1b8ed1037dc979a2a00eed04139de64b
4
- data.tar.gz: ad0444c76209014a1cde44f35a36ba8f2fc50294
3
+ metadata.gz: cae14dd435d11cf26fbe180ecf7a5e6105f3dee0
4
+ data.tar.gz: e37c94fc204afcfa60a372d703a002dd9c513faf
5
5
  SHA512:
6
- metadata.gz: caa9ca95c397d05e479ee4b54fafd5f327a610b37cda1c82a800dc1a4dddc167cb175946ab51d22a939b363cd893f4359c9c69047304e1bd1bcd81c432421fe8
7
- data.tar.gz: dadcf0753748e41f11e9e8145bf3b5da754a6a8531440b0d9a6c7c2acba9795d1862d29ab38c4a528447543451ce117d2cfda9deb4335ca256aaec83d8a73290
6
+ metadata.gz: ed381b2f3eb3f565b76512e508574facca2b7dd077128fe1b422878c9d149ab968735bc22e890930396e47deecb1a08db095c432b346cdfafaee3d9c45616807
7
+ data.tar.gz: 548adfea4713d9e9830a55ae5cd98d5c2a33366905d1c0f1b7a075a7720c779bb495468e701909aa09fe847c926ef68bc6aa2a039933ddd47181728f61a31dc4
data/.travis.yml CHANGED
@@ -1,10 +1,11 @@
1
1
  language: ruby
2
2
  script: "bundle exec rake test"
3
+ cache: bundler
3
4
  sudo: false
4
5
  rvm:
6
+ - '2.3.0'
5
7
  - '2.2'
6
8
  - '2.1'
7
- - '2.0'
8
9
 
9
10
  gemfile:
10
11
  - gemfiles/am_3_2.gemfile
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-2014 Nando Vieira (http://simplesideias.com.br)
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();
@@ -2,7 +2,7 @@ module PasswordStrength
2
2
  module Version # :nodoc: all
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "password__strength",
3
- "version": "1.1.1",
2
+ "name": "@fnando/password_strength",
3
+ "version": "1.1.3",
4
4
  "repository": "http://github.com/fnando/password_strength",
5
5
  "license": "MIT",
6
6
  "main": "app/assets/javascripts/password_strength.js",
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.2
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-03-15 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel