Skip to content

Commit

Permalink
Merge pull request #25 from DARIAEngineering/main
Browse files Browse the repository at this point in the history
Add support for ruby 3.1
  • Loading branch information
jzhang2-civis authored Feb 23, 2022
2 parents dd42c3d + 69d0c0c commit b825c8d
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 16 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
strategy:
matrix:
ruby_version: [2.5, 2.6, 2.7, '3.0', 3.1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Install dependencies
run: bundle install --jobs=3 --retry=3
- name: Initialize submodule
run: git submodule update --init
- name: Run tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.1.0
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.1.0] - 2022-02-23

### Added

* Support for ruby 3.1
* Require bundler-audit >= 0.9

## [2.0.0] - 2021-03-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RubyAudit

[![Build Status](https://travis-ci.com/civisanalytics/ruby_audit.svg?branch=master)](https://travis-ci.com/civisanalytics/ruby_audit)
![Build Status](https://github.com/civisanalytics/ruby_audit/actions/workflows/test.yml/badge.svg)
[![Gem Version](https://badge.fury.io/rb/ruby_audit.svg)](http://badge.fury.io/rb/ruby_audit)

RubyAudit checks your current version of Ruby and RubyGems against known security vulnerabilities (CVEs), alerting you if you are using an insecure version.
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_audit/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubyAudit
VERSION = '2.0.0'.freeze
VERSION = '2.1.0'.freeze
end
6 changes: 3 additions & 3 deletions ruby_audit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'ruby_audit/version'
Gem::Specification.new do |spec|
spec.name = 'ruby_audit'
spec.version = RubyAudit::VERSION
spec.authors = ['Jeff Cousens, Mike Saelim', 'John Zhang']
spec.authors = ['Jeff Cousens, Mike Saelim', 'John Zhang', 'Cristina Muñoz']
spec.email = ['[email protected]']

spec.summary = 'Checks Ruby and RubyGems against known vulnerabilities.'
Expand All @@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/civisanalytics/ruby_audit'
spec.license = 'GPL-3.0-or-later'

spec.required_ruby_version = ['>= 2.5', '< 3.1']
spec.required_ruby_version = ['>= 2.5', '< 3.2']
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'bundler-audit', '~> 0.8.0'
spec.add_dependency 'bundler-audit', '~> 0.9.0'
spec.add_development_dependency 'pry', '~> 0.13.0'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.9'
Expand Down

0 comments on commit b825c8d

Please sign in to comment.