From 5da9d034886b66f426444207718eb18e5dcd8326 Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Sat, 17 Aug 2024 19:09:35 -0500 Subject: [PATCH] BREAKING CHANGE: Explicity set supported ruby versions, dropping support for < 3.0 --- .github/workflows/ruby.yml | 2 +- tracking_number.gemspec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index bf3542f..18e3664 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ] + ruby: [ '3.0', '3.1', '3.2', '3.3' ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/tracking_number.gemspec b/tracking_number.gemspec index 8823d17..a182c1c 100644 --- a/tracking_number.gemspec +++ b/tracking_number.gemspec @@ -9,6 +9,7 @@ Gem::Specification.new do |s| s.version = TrackingNumber::VERSION s.platform = Gem::Platform::RUBY s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version= + s.required_ruby_version = Gem::Requirement.new('>= 3.0.0') s.authors = ['Jeff Keen'] s.description = "This gem identifies valid tracking numbers and the service they're associated with. It can also tell you a little bit about the package purely from the number—there's quite a bit of info tucked away into those numbers, it turns out." s.email = 'jeff@keen.me'