Skip to content

Commit 7c8b7d0

Browse files
authored
Upgrade to modern supported Rubies (3.1, 3.2, 3.3) (#46)
* Upgrade to modern supported Rubies * Update pathspec.gemspec * Update gem-push.yml * Update README.md: Remove sonar * Update README.md * Update CHANGELOG.md
1 parent 5e8982c commit 7c8b7d0

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

.github/workflows/gem-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Set up Ruby 3.0
19+
- name: Set up Ruby 3.1
2020
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88
2121
with:
22-
ruby-version: '3.0'
22+
ruby-version: '3.1'
2323
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2424

2525
- name: Generate man page

.github/workflows/ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['3.0']
22+
ruby-version: ['3.1', '3.2', '3.3']
2323

2424
steps:
2525
- uses: actions/checkout@v4
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
strategy:
4343
matrix:
44-
ruby-version: ['3.0']
44+
ruby-version: ['3.1', '3.2', '3.3']
4545
# TODO: Fix rubocop issues
4646
# raketasks: ['rubocop', 'spec', 'docs']
4747
raketasks: ['spec', 'docs']

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# pathspec-ruby CHANGELOG
22

3+
## 2.0.0
4+
5+
- (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.
6+
37
## 1.1.0 (Minor Release)
48

59
- (Maint) Updated Supported Ruby Versions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# pathspec-ruby
22

3-
[![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)
3+
[![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)
44

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

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

9-
- 2.6 (Security Maintenance)
10-
- 2.7 (Stable, Tested)
11-
- 3.0 (Stable, Tested)
9+
- 3.1 (Stable, Tested)
10+
- 3.2 (Stable, Tested)
11+
- 3.3 (Stable, Tested)
1212

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

pathspec.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33

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

0 commit comments

Comments
 (0)