From dd922b2692f70341d3a84b61d148a9b5214b6e4f Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:46:03 -0800 Subject: [PATCH 1/6] Upgrade to modern supported Rubies --- .github/workflows/ruby.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 076c7f8..f25bc63 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -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 @@ -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'] From 1846be255c8b6f29c4d8a3b32a0622d7754472d3 Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:47:21 -0800 Subject: [PATCH 2/6] Update pathspec.gemspec --- pathspec.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pathspec.gemspec b/pathspec.gemspec index e25e5bf..7d81b12 100644 --- a/pathspec.gemspec +++ b/pathspec.gemspec @@ -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'] @@ -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' From 230e1867420a42cd0843368cd1c917f820cc3f0c Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:48:16 -0800 Subject: [PATCH 3/6] Update gem-push.yml --- .github/workflows/gem-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index e0b648d..051278a 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -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 From c36114b09833054d58d62ac718a68cd2f847541e Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:49:02 -0800 Subject: [PATCH 4/6] Update README.md: Remove sonar --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f582b03..de1e716 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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/) From 313796377aed6345cdfd5751ad7a0041e45c5964 Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:50:31 -0800 Subject: [PATCH 5/6] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de1e716..76686a8 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ [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! From 4f3a416d248e88b3ab47cded59a7a47b9a462923 Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 15 Jan 2024 19:53:30 -0800 Subject: [PATCH 6/6] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a3529d..9b6fe95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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