zxcvbn-ruby 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/CHANGELOG.md +19 -3
- data/README.md +4 -4
- data/lib/zxcvbn/version.rb +3 -1
- data/spec/support/js_helpers.rb +3 -4
- data/zxcvbn-ruby.gemspec +9 -7
- metadata +11 -11
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa14ec0484793f1034f5dda8b84c6265e2fc8b161e47fa323be7e78dc3223cc4
|
4
|
+
data.tar.gz: e42207b60f1d6b1c4a198e6e7b466e7dcc68caaaf610bdf6e4d29a85978da58d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6b789be21697b782a87bc8c946fed85e8f088d8097f75f2e50ae8f9f95954c01dd1df76d8eb58f031b5b6e4ee43bbb14e15264c102371cdbb20696b50e0f3c1
|
7
|
+
data.tar.gz: a9a0fa505d0896c58cd1e34780ddd07a37d1d5fe34e103c09c86c4b9bdff3d8ddb78c607e2c158ef4d562f93b5a16f20e0f41b0db89dfddc1b7522c4467f1171
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
strategy:
|
8
|
+
fail-fast: false
|
9
|
+
matrix:
|
10
|
+
ruby: ['2.5', '2.6', '2.7', '3.0']
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- name: Checkout
|
15
|
+
uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
- name: Install dependencies
|
21
|
+
run: bundle install
|
22
|
+
- name: Run tests
|
23
|
+
run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
[Unreleased]: https://github.com/envato/zxcvbn-ruby/compare/v1.
|
9
|
+
[Unreleased]: https://github.com/envato/zxcvbn-ruby/compare/v1.2.0...HEAD
|
10
|
+
|
11
|
+
## [1.2.0] - 2021-01-05
|
12
|
+
|
13
|
+
### Added
|
14
|
+
- Support for Ruby 3 (thanks [@RSO] ([#32]))
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- Use [mini\_racer] for running JavaScript specs (thanks [@RSO] ([#33]))
|
18
|
+
- Moved CI to GitHub Actions ([#34])
|
19
|
+
|
20
|
+
[1.2.0]: https://github.com/envato/zxcvbn-ruby/compare/v1.1.0...v.1.2.0
|
21
|
+
[@rso]: https://github.com/RSO
|
22
|
+
[mini\_racer]: https://rubygems.org/gems/mini_racer/
|
23
|
+
[#32]: https://github.com/envato/zxcvbn-ruby/pull/32
|
24
|
+
[#33]: https://github.com/envato/zxcvbn-ruby/pull/33
|
25
|
+
[#34]: https://github.com/envato/zxcvbn-ruby/pull/34
|
10
26
|
|
11
27
|
## [1.1.0] - 2020-07-16
|
12
28
|
### Added
|
@@ -21,8 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
21
37
|
- Invalid user dictionaries are handled more robustly ([#28])
|
22
38
|
|
23
39
|
[1.1.0]: https://github.com/envato/zxcvbn-ruby/compare/v1.0.0...v1.1.0
|
24
|
-
[28]: https://github.com/envato/zxcvbn-ruby/pull/28
|
25
|
-
[29]: https://github.com/envato/zxcvbn-ruby/pull/29
|
40
|
+
[#28]: https://github.com/envato/zxcvbn-ruby/pull/28
|
41
|
+
[#29]: https://github.com/envato/zxcvbn-ruby/pull/29
|
26
42
|
|
27
43
|
## [1.0.0] - 2019-05-14
|
28
44
|
### Added
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
This is a Ruby port of Dropbox's [zxcvbn.js][zxcvbn.js] JavaScript library.
|
4
4
|
|
5
|
-
## Development status [](https://github.com/envato/zxcvbn-ruby/actions?query=workflow%3ACI)
|
6
6
|
|
7
7
|
`zxcvbn-ruby` is considered stable and is used in projects around [Envato][envato].
|
8
8
|
|
@@ -137,16 +137,16 @@ attacker. For this reason we advise you not to store the results of
|
|
137
137
|
- [Matthieu Aussaguel](https://github.com/matthieua)
|
138
138
|
- [_et al._](https://github.com/envato/zxcvbn-ruby/graphs/contributors)
|
139
139
|
|
140
|
-
## License [](https://github.com/envato/zxcvbn-ruby/blob/
|
140
|
+
## License [](https://github.com/envato/zxcvbn-ruby/blob/HEAD/LICENSE.txt)
|
141
141
|
|
142
142
|
`zxcvbn-ruby` uses MIT license, the same as [zxcvbn.js][zxcvbn.js] itself. See
|
143
|
-
[`LICENSE.txt`](https://github.com/envato/zxcvbn-ruby/blob/
|
143
|
+
[`LICENSE.txt`](https://github.com/envato/zxcvbn-ruby/blob/HEAD/LICENSE.txt)
|
144
144
|
for details.
|
145
145
|
|
146
146
|
## Code of Conduct
|
147
147
|
|
148
148
|
We welcome contribution from everyone. Read more about it in
|
149
|
-
[`CODE_OF_CONDUCT.md`](https://github.com/envato/zxcvbn-ruby/blob/
|
149
|
+
[`CODE_OF_CONDUCT.md`](https://github.com/envato/zxcvbn-ruby/blob/HEAD/CODE_OF_CONDUCT.md).
|
150
150
|
|
151
151
|
## Contributing [](https://github.com/envato/zxcvbn-ruby/issues)
|
152
152
|
|
data/lib/zxcvbn/version.rb
CHANGED
data/spec/support/js_helpers.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'mini_racer'
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
module JsHelpers
|
@@ -6,9 +6,8 @@ module JsHelpers
|
|
6
6
|
JS_SOURCE_PATH = Pathname(File.expand_path('../js_source/', __FILE__))
|
7
7
|
|
8
8
|
def initialize
|
9
|
-
@ctx =
|
10
|
-
|
11
|
-
end
|
9
|
+
@ctx = MiniRacer::Context.new
|
10
|
+
@ctx.eval(JS_SOURCE_PATH.join('compiled.js').read)
|
12
11
|
end
|
13
12
|
|
14
13
|
def eval(string)
|
data/zxcvbn-ruby.gemspec
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
require File.expand_path('../lib/zxcvbn/version', __FILE__)
|
3
3
|
|
4
|
+
GITHUB_URL = 'https://github.com/envato/zxcvbn-ruby'
|
5
|
+
|
4
6
|
Gem::Specification.new do |gem|
|
5
7
|
gem.authors = ["Steve Hodgkiss", "Matthieu Aussaguel"]
|
6
8
|
gem.email = ["steve@hodgkiss.me", "matthieu.aussaguel@gmail.com"]
|
@@ -16,16 +18,16 @@ Gem::Specification.new do |gem|
|
|
16
18
|
gem.version = Zxcvbn::VERSION
|
17
19
|
gem.license = 'MIT'
|
18
20
|
|
19
|
-
gem.required_ruby_version = '
|
21
|
+
gem.required_ruby_version = '>= 2.5'
|
20
22
|
|
21
|
-
gem.add_development_dependency '
|
23
|
+
gem.add_development_dependency 'mini_racer'
|
22
24
|
gem.add_development_dependency 'rspec'
|
23
25
|
|
24
26
|
gem.metadata = {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
'bug_tracker_uri' => "#{GITHUB_URL}/issues",
|
28
|
+
'changelog_uri' => "#{GITHUB_URL}/blob/HEAD/CHANGELOG.md",
|
29
|
+
'documentation_uri' => "#{GITHUB_URL}/blob/HEAD/README.md",
|
30
|
+
'homepage_uri' => GITHUB_URL,
|
31
|
+
'source_code_uri' => GITHUB_URL
|
30
32
|
}
|
31
33
|
end
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zxcvbn-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Hodgkiss
|
8
8
|
- Matthieu Aussaguel
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: mini_racer
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
@@ -47,9 +47,9 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
+
- ".github/workflows/ci.yml"
|
50
51
|
- ".gitignore"
|
51
52
|
- ".rspec"
|
52
|
-
- ".travis.yml"
|
53
53
|
- CHANGELOG.md
|
54
54
|
- CODE_OF_CONDUCT.md
|
55
55
|
- Gemfile
|
@@ -123,17 +123,17 @@ licenses:
|
|
123
123
|
- MIT
|
124
124
|
metadata:
|
125
125
|
bug_tracker_uri: https://github.com/envato/zxcvbn-ruby/issues
|
126
|
-
changelog_uri: https://github.com/envato/zxcvbn-ruby/blob/
|
127
|
-
documentation_uri: https://github.com/envato/zxcvbn-ruby/blob/
|
126
|
+
changelog_uri: https://github.com/envato/zxcvbn-ruby/blob/HEAD/CHANGELOG.md
|
127
|
+
documentation_uri: https://github.com/envato/zxcvbn-ruby/blob/HEAD/README.md
|
128
128
|
homepage_uri: https://github.com/envato/zxcvbn-ruby
|
129
129
|
source_code_uri: https://github.com/envato/zxcvbn-ruby
|
130
|
-
post_install_message:
|
130
|
+
post_install_message:
|
131
131
|
rdoc_options: []
|
132
132
|
require_paths:
|
133
133
|
- lib
|
134
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '2.5'
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -142,8 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
146
|
-
signing_key:
|
145
|
+
rubygems_version: 3.2.3
|
146
|
+
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: ''
|
149
149
|
test_files:
|