From c5bcd11e6484462073ded7472110a7f16c53e9f5 Mon Sep 17 00:00:00 2001 From: Clayton Parker Date: Tue, 5 Mar 2024 21:36:46 -0500 Subject: [PATCH] test against ruby 3.x --- .codeclimate.yml | 2 +- .github/workflows/ci.yml | 4 ++-- .rubocop.yml | 2 +- .ruby-version | 2 +- CHANGELOG.md | 4 ++++ Gemfile.lock | 2 +- augury.gemspec | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 8fac1a2..c72296c 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -4,7 +4,7 @@ plugins: enabled: true rubocop: enabled: true - channel: rubocop-1-31-0 + channel: rubocop-1-56-3 markdownlint: enabled: true bundler-audit: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95fbe46..0ec8323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - ruby: [2.7, '3.0', '3.1'] + ruby: ['3.0', '3.1', '3.2', "3.3"] runs-on: ${{ matrix.os }} env: TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} @@ -23,7 +23,7 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle exec rake - - if: matrix.os == 'ubuntu-latest' && matrix.ruby == '3.1' + - if: matrix.os == 'ubuntu-latest' && matrix.ruby == '3.2' run: | curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter diff --git a/.rubocop.yml b/.rubocop.yml index 35ab436..767f5f2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.2 Exclude: - bin/**/* - vendor/**/* diff --git a/.ruby-version b/.ruby-version index 49cdd66..15a2799 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.6 +3.3.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2833e3b..d3b1df2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes +## 2.0.0 (2024-03-05) + +- Test against latest Ruby 3.3 and minimum 3.0.x + ## 1.2.0 (2022-10-26) - Test against latest Ruby 3.1, minimum version 2.7 diff --git a/Gemfile.lock b/Gemfile.lock index 55e9871..7477edc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -182,4 +182,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.3.24 + 2.5.3 diff --git a/augury.gemspec b/augury.gemspec index b68a408..b7da746 100644 --- a/augury.gemspec +++ b/augury.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = 'This gem turns a twitter feed into a fortune file that you can use with the fortune program' spec.homepage = 'https://github.com/claytron/augury' spec.license = 'MIT' - spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0') + spec.required_ruby_version = Gem::Requirement.new('>= 3.0') spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.bindir = 'exe'