zxcvbn-ruby 1.1.0 → 1.2.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: 871b2fb9d5b2db321db8625aae3ecff0f0ae13f3e9eb834ca79153c950951a89
4
- data.tar.gz: 1eba0af7e3e6b6e982149d45a43356f91890b71328db17d03ee0bfa3cc45f37e
3
+ metadata.gz: fa14ec0484793f1034f5dda8b84c6265e2fc8b161e47fa323be7e78dc3223cc4
4
+ data.tar.gz: e42207b60f1d6b1c4a198e6e7b466e7dcc68caaaf610bdf6e4d29a85978da58d
5
5
  SHA512:
6
- metadata.gz: 6dd4ec7906a109a2094e6f2d44606748a778c6aa35111f967cbaa143313b8b7e149b21bb926dc9d31d96c14a53489a7ec879fbc5618c6f804117a262673b5d81
7
- data.tar.gz: d2b3b14f62904c31db52da50066fe6a4cccdb3acb058407fd1fdef5bbdac0b9e045eca99835f2875c8cb31350158f868276976a3f54d15e85d4d02ce5f3052db
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
@@ -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.1.0...HEAD
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 [![Build Status](https://travis-ci.org/envato/zxcvbn-ruby.svg?branch=master)](https://travis-ci.org/envato/zxcvbn-ruby)
5
+ ## Development status [![CI Status](https://github.com/envato/zxcvbn-ruby/workflows/CI/badge.svg)](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 [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/envato/zxcvbn-ruby/blob/master/LICENSE.txt)
140
+ ## License [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](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/master/LICENSE.txt)
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/master/CODE_OF_CONDUCT.md).
149
+ [`CODE_OF_CONDUCT.md`](https://github.com/envato/zxcvbn-ruby/blob/HEAD/CODE_OF_CONDUCT.md).
150
150
 
151
151
  ## Contributing [![PRs welcome](https://img.shields.io/badge/PRs-welcome-orange.svg?style=flat-square)](https://github.com/envato/zxcvbn-ruby/issues)
152
152
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Zxcvbn
2
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.2.0'
3
5
  end
@@ -1,4 +1,4 @@
1
- require 'v8'
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 = V8::Context.new do |ctx|
10
- ctx.eval(JS_SOURCE_PATH.join('compiled.js').read)
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)
@@ -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 = '~> 2.5'
21
+ gem.required_ruby_version = '>= 2.5'
20
22
 
21
- gem.add_development_dependency 'therubyracer'
23
+ gem.add_development_dependency 'mini_racer'
22
24
  gem.add_development_dependency 'rspec'
23
25
 
24
26
  gem.metadata = {
25
- "bug_tracker_uri" => "https://github.com/envato/zxcvbn-ruby/issues",
26
- "changelog_uri" => "https://github.com/envato/zxcvbn-ruby/blob/master/CHANGELOG.md",
27
- "documentation_uri" => "https://github.com/envato/zxcvbn-ruby/blob/master/README.md",
28
- "homepage_uri" => "https://github.com/envato/zxcvbn-ruby",
29
- "source_code_uri" => "https://github.com/envato/zxcvbn-ruby"
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.1.0
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: 2020-07-15 00:00:00.000000000 Z
12
+ date: 2021-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: therubyracer
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/master/CHANGELOG.md
127
- documentation_uri: https://github.com/envato/zxcvbn-ruby/blob/master/README.md
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.1.2
146
- signing_key:
145
+ rubygems_version: 3.2.3
146
+ signing_key:
147
147
  specification_version: 4
148
148
  summary: ''
149
149
  test_files:
@@ -1,12 +0,0 @@
1
- before_install:
2
- - gem install bundler
3
- language: ruby
4
- rvm:
5
- - '2.5'
6
- - '2.6'
7
- - '2.7'
8
- - ruby-head
9
- matrix:
10
- allow_failures:
11
- - rvm: ruby-head
12
- fast_finish: true