devise_zxcvbn 5.2.0 → 6.0.0

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
  SHA256:
3
- metadata.gz: 29a27562ca5f466efb3b539991c9225fe0b5ace2a0197f3a848eff3994434267
4
- data.tar.gz: 257eed7f6d7d7e5acda27b277ef4f05adb8e627171bf69ad85a8304cf3ff442d
3
+ metadata.gz: d9199b7dc373b012f84a98f47e9c70ebc0e229a7749d70c1d72c73aef57f4b81
4
+ data.tar.gz: 9b914ad4c1fefca97261f09625ca4ec891a46808bbcaf24ae83bb9b5a848f5e5
5
5
  SHA512:
6
- metadata.gz: 6702e9416336fcd426457b9b42c4a201e9479eb1a867a119e29a138034c8376cae66e1c4e4aa2a2f16da857ad227354624799d1b1fd6bf099d1bedd975162fd1
7
- data.tar.gz: c98f24762ef54f12fff069fb5c7ea4ff4741531819a119271bc9a90ba28070dcfca5b4fca12474880aba24a4554a6dfb98252aa3fb07be9649c14440dbd9c6d1
6
+ metadata.gz: 0645cd5046baf76e3f88f2ca2d60c67823b083a2cc38c17d31c674d2e77578a807cdc810fcb7d8ce7f7d73b3df644ec679a4a1d5676d86f3a751cf79a8351c3a
7
+ data.tar.gz: 662aec05fc6ff3349cd75b1b63361f61add2eba284454a9c0f75d27d14e9bf7b984665375fc51eb7a1a956a32c05a1cf0a88a25f9a654c19704b488b928b8c58
@@ -3,8 +3,6 @@ name: Ruby Gem
3
3
  on:
4
4
  push:
5
5
  branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
6
 
9
7
  jobs:
10
8
  build:
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ ## 6.0 - 2021-12-17
2
+
3
+ - Switching to [zxcvbn-rb](https://github.com/formigarafa/zxcvbn-rb) so that we do not need to run execjs but still keep compatability with Dropbox's zxcvbn.js.
4
+ `zxcvbn-rb` is not the same as `zxcvbn-ruby` (which produces different scores which is why we originally used `zxcvbn-js`).
5
+
6
+ ## 5.2 - 2021-12-17
7
+
8
+ - Fix Ruby 3.0 compatability
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Ruby](https://github.com/bitzesty/devise_zxcvbn/actions/workflows/ruby.yml/badge.svg?branch=master)](https://github.com/bitzesty/devise_zxcvbn/actions/workflows/ruby.yml)
5
5
  [![Code Climate](https://codeclimate.com/github/bitzesty/devise_zxcvbn/badges/gpa.svg)](https://codeclimate.com/github/bitzesty/devise_zxcvbn)
6
6
 
7
- Plugin for [devise](https://github.com/plataformatec/devise) to reject weak passwords, using [zxcvbn-js](https://github.com/bitzesty/zxcvbn-js) which is a ruby port of [zxcvbn: realistic password strength estimation](https://tech.dropbox.com/2012/04/zxcvbn-realistic-password-strength-estimation/).
7
+ Plugin for [devise](https://github.com/plataformatec/devise) to reject weak passwords, using [zxcvbn-rb](https://github.com/formigarafa/zxcvbn-rb) which is a ruby port of [zxcvbn: realistic password strength estimation](https://tech.dropbox.com/2012/04/zxcvbn-realistic-password-strength-estimation/).
8
8
 
9
9
  The user's password will be rejected if the score is below 4 by default. It also uses the email as user input to zxcvbn, to reject passwords containing parts of the email (if using zxcvbn.js on the frontend you should also do this to get the same score).
10
10
 
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "byebug"
27
27
 
28
28
  spec.add_runtime_dependency "devise"
29
- spec.add_runtime_dependency("zxcvbn-js", "~> 4.4.1")
29
+ spec.add_runtime_dependency("zxcvbn", "~> 0.1.7")
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseZxcvbn
2
- VERSION = "5.2.0"
2
+ VERSION = "6.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_zxcvbn
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bit Zesty
@@ -109,19 +109,19 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: zxcvbn-js
112
+ name: zxcvbn
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 4.4.1
117
+ version: 0.1.7
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 4.4.1
124
+ version: 0.1.7
125
125
  description: 'This gems works with devise to provide backend password strength checking
126
126
  via zxcvbn-js to reject weak passwords '
127
127
  email:
@@ -134,6 +134,7 @@ files:
134
134
  - ".github/workflows/ruby.yml"
135
135
  - ".gitignore"
136
136
  - ".rspec"
137
+ - CHANGELOG.md
137
138
  - Gemfile
138
139
  - LICENSE.txt
139
140
  - README.md