Skip to content

Commit

Permalink
Upgrade to modern supported Rubies (3.1, 3.2, 3.3) (#46)
Browse files Browse the repository at this point in the history
* Upgrade to modern supported Rubies

* Update pathspec.gemspec

* Update gem-push.yml

* Update README.md: Remove sonar

* Update README.md

* Update CHANGELOG.md
  • Loading branch information
highb authored Jan 16, 2024
1 parent 5e8982c commit 7c8b7d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.0
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88
with:
ruby-version: '3.0'
ruby-version: '3.1'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Generate man page
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0']
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0']
ruby-version: ['3.1', '3.2', '3.3']
# TODO: Fix rubocop issues
# raketasks: ['rubocop', 'spec', 'docs']
raketasks: ['spec', 'docs']
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# pathspec-ruby CHANGELOG

## 2.0.0

- (Maint) Remove deprecated/security release versions of Ruby. The Gem will now only support and be tested against >= 3.1.0 e.g. 3.1, 3.2, and 3.3.

## 1.1.0 (Minor Release)

- (Maint) Updated Supported Ruby Versions
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# pathspec-ruby

[![Gem Version](https://badge.fury.io/rb/pathspec.svg)](https://badge.fury.io/rb/pathspec) [![Ruby](https://github.com/highb/pathspec-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/highb/pathspec-ruby/actions/workflows/ruby.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/4f3b5917e01fb34f790d/maintainability)](https://codeclimate.com/github/highb/pathspec-ruby/maintainability) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=highb_pathspec-ruby&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=highb_pathspec-ruby)
[![Gem Version](https://badge.fury.io/rb/pathspec.svg)](https://badge.fury.io/rb/pathspec) [![Ruby](https://github.com/highb/pathspec-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/highb/pathspec-ruby/actions/workflows/ruby.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/4f3b5917e01fb34f790d/maintainability)](https://codeclimate.com/github/highb/pathspec-ruby/maintainability)

[man Page as HTML](http://highb.github.io/pathspec-ruby/)

[Supported Rubies](https://www.ruby-lang.org/en/downloads/):

- 2.6 (Security Maintenance)
- 2.7 (Stable, Tested)
- 3.0 (Stable, Tested)
- 3.1 (Stable, Tested)
- 3.2 (Stable, Tested)
- 3.3 (Stable, Tested)

Match Path Specifications, such as .gitignore, in Ruby!

Expand Down
4 changes: 2 additions & 2 deletions pathspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |s|
s.name = 'pathspec'
s.version = '1.1.3'
s.version = '2.0.0'
s.summary = 'PathSpec: for matching path patterns'
s.description = 'Use to match path patterns such as gitignore'
s.authors = ['Brandon High']
Expand All @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.metadata['rubygems_mfa_required'] = 'true'
s.homepage = 'https://github.com/highb/pathspec-ruby'
s.license = 'Apache-2.0'
s.required_ruby_version = '>= 2.6.9'
s.required_ruby_version = '>= 3.1.0'
s.add_development_dependency 'bundler', '~> 2.2'
s.add_development_dependency 'fakefs', '~> 1.3'
s.add_development_dependency 'kramdown', '~> 2.3'
Expand Down

0 comments on commit 7c8b7d0

Please sign in to comment.