diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..661646e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + ruby: ['2.5', '2.6', '2.7', '3.0'] + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1890fb5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -before_install: - - gem install bundler -language: ruby -rvm: - - '2.5' - - '2.6' - - '2.7' - - '3.0' - - ruby-head -matrix: - allow_failures: - - rvm: ruby-head - fast_finish: true diff --git a/CHANGELOG.md b/CHANGELOG.md index a1dea21..b9a618e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + - Support for Ruby 3 (thanks [@RSO] ([#32])) + +### Changed + - Use [mini\_racer] for running JavaScript specs (thanks [@RSO] ([#33])) + - Moved CI to GitHub Actions ([#34]) [Unreleased]: https://github.com/envato/zxcvbn-ruby/compare/v1.1.0...HEAD +[@rso]: https://github.com/RSO +[mini\_racer]: https://rubygems.org/gems/mini_racer/ +[#32]: https://github.com/envato/zxcvbn-ruby/pull/32 +[#33]: https://github.com/envato/zxcvbn-ruby/pull/33 +[#34]: https://github.com/envato/zxcvbn-ruby/pull/34 ## [1.1.0] - 2020-07-16 ### Added @@ -21,8 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Invalid user dictionaries are handled more robustly ([#28]) [1.1.0]: https://github.com/envato/zxcvbn-ruby/compare/v1.0.0...v1.1.0 -[28]: https://github.com/envato/zxcvbn-ruby/pull/28 -[29]: https://github.com/envato/zxcvbn-ruby/pull/29 +[#28]: https://github.com/envato/zxcvbn-ruby/pull/28 +[#29]: https://github.com/envato/zxcvbn-ruby/pull/29 ## [1.0.0] - 2019-05-14 ### Added diff --git a/README.md b/README.md index 4d4b258..cd9d386 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a Ruby port of Dropbox's [zxcvbn.js][zxcvbn.js] JavaScript library. -## Development status [![Build Status](https://travis-ci.org/envato/zxcvbn-ruby.svg?branch=master)](https://travis-ci.org/envato/zxcvbn-ruby) +## Development status [![CI Status](https://github.com/envato/zxcvbn-ruby/workflows/CI/badge.svg)](https://github.com/envato/zxcvbn-ruby/actions?query=workflow%3ACI) `zxcvbn-ruby` is considered stable and is used in projects around [Envato][envato]. @@ -137,16 +137,16 @@ attacker. For this reason we advise you not to store the results of - [Matthieu Aussaguel](https://github.com/matthieua) - [_et al._](https://github.com/envato/zxcvbn-ruby/graphs/contributors) -## License [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/envato/zxcvbn-ruby/blob/master/LICENSE.txt) +## License [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/envato/zxcvbn-ruby/blob/HEAD/LICENSE.txt) `zxcvbn-ruby` uses MIT license, the same as [zxcvbn.js][zxcvbn.js] itself. See -[`LICENSE.txt`](https://github.com/envato/zxcvbn-ruby/blob/master/LICENSE.txt) +[`LICENSE.txt`](https://github.com/envato/zxcvbn-ruby/blob/HEAD/LICENSE.txt) for details. ## Code of Conduct We welcome contribution from everyone. Read more about it in -[`CODE_OF_CONDUCT.md`](https://github.com/envato/zxcvbn-ruby/blob/master/CODE_OF_CONDUCT.md). +[`CODE_OF_CONDUCT.md`](https://github.com/envato/zxcvbn-ruby/blob/HEAD/CODE_OF_CONDUCT.md). ## Contributing [![PRs welcome](https://img.shields.io/badge/PRs-welcome-orange.svg?style=flat-square)](https://github.com/envato/zxcvbn-ruby/issues) diff --git a/zxcvbn-ruby.gemspec b/zxcvbn-ruby.gemspec index 34f405f..6486958 100644 --- a/zxcvbn-ruby.gemspec +++ b/zxcvbn-ruby.gemspec @@ -1,6 +1,8 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/zxcvbn/version', __FILE__) +GITHUB_URL = 'https://github.com/envato/zxcvbn-ruby' + Gem::Specification.new do |gem| gem.authors = ["Steve Hodgkiss", "Matthieu Aussaguel"] gem.email = ["steve@hodgkiss.me", "matthieu.aussaguel@gmail.com"] @@ -22,10 +24,10 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'rspec' gem.metadata = { - "bug_tracker_uri" => "https://github.com/envato/zxcvbn-ruby/issues", - "changelog_uri" => "https://github.com/envato/zxcvbn-ruby/blob/master/CHANGELOG.md", - "documentation_uri" => "https://github.com/envato/zxcvbn-ruby/blob/master/README.md", - "homepage_uri" => "https://github.com/envato/zxcvbn-ruby", - "source_code_uri" => "https://github.com/envato/zxcvbn-ruby" + 'bug_tracker_uri' => "#{GITHUB_URL}/issues", + 'changelog_uri' => "#{GITHUB_URL}/blob/HEAD/CHANGELOG.md", + 'documentation_uri' => "#{GITHUB_URL}/blob/HEAD/README.md", + 'homepage_uri' => GITHUB_URL, + 'source_code_uri' => GITHUB_URL } end