diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 809c8e5..0dfd26d 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0"] + ruby: ["2.6", "2.7", "3.0", "3.1"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -14,3 +14,8 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle exec rake + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage/lcov.info diff --git a/.ruby-version b/.ruby-version index 4a36342..fd2a018 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.0 +3.1.0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5fcc6f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: ruby -rvm: - - 2.4 - - 2.5 - - 2.6 -script: "bundle exec rake spec" -sudo: false -cache: bundler -before_install: - - gem install bundler diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b2b38f..179737f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/). +## Unreleased + +- [PLAT-183] Ruby 3.1 and publish coverage with github action + ## 0.6.0 - [TT-8626] Update to build with github actions / ruby 3.0 / rails 6.1 diff --git a/README.md b/README.md index 4df456d..90fe47a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![Gem Version](https://badge.fury.io/rb/sensitive_data_filter.svg)](http://badge.fury.io/rb/sensitive_data_filter) [![Build Status](https://github.com/sealink/sensitive_data_filter/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/sensitive_data_filter/actions) [![Coverage Status](https://coveralls.io/repos/sealink/sensitive_data_filter/badge.svg)](https://coveralls.io/r/sealink/sensitive_data_filter) -[![Code Climate](https://codeclimate.com/github/sealink/sensitive_data_filter/badges/gpa.svg)](https://codeclimate.com/github/sealink/sensitive_data_filter) A Rack Middleware filter for sensitive data diff --git a/sensitive_data_filter.gemspec b/sensitive_data_filter.gemspec index 1c17644..b0f1f25 100644 --- a/sensitive_data_filter.gemspec +++ b/sensitive_data_filter.gemspec @@ -31,8 +31,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec' spec.add_development_dependency 'coverage-kit' - spec.add_development_dependency 'simplecov-rcov' - spec.add_development_dependency 'coveralls' spec.add_development_dependency 'rubocop' spec.add_development_dependency 'pry' end diff --git a/spec/sensitive_data_filter/types/credit_card_spec.rb b/spec/sensitive_data_filter/types/credit_card_spec.rb index 4aab448..3e71cc0 100644 --- a/spec/sensitive_data_filter/types/credit_card_spec.rb +++ b/spec/sensitive_data_filter/types/credit_card_spec.rb @@ -11,7 +11,8 @@ 'American Express Corporate' => ['3787 344936 71000'], 'Australian BankCard' => ['5610 5910 8101 8250'], 'Diners Club' => ['3056 930902 5904', '3852 000002 3237'], - 'Discover' => ['6011 1111 1111 1117', '6011 0009 9013 9424'], + # https://github.com/didww/credit_card_validations/issues/110 + 'Discover' => [CreditCardValidations::Factory.random(:discover), '6011 0009 9013 9424'], 'JCB' => ['3530 1113 3330 0000', '3566 0020 2036 0505'], 'MasterCard' => ['5555 5555 5555 4444', '5105 1051 0510 5100'], 'Visa' => ['4111 1111 1111 1111', '4012 8888 8888 1881', diff --git a/spec/support/coverage_loader.rb b/spec/support/coverage_loader.rb index 455914b..91054bd 100644 --- a/spec/support/coverage_loader.rb +++ b/spec/support/coverage_loader.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -require 'simplecov-rcov' -require 'coveralls' require 'coverage/kit' + Coverage::Kit.setup(minimum_coverage: 100.0)