From 754618d7785d87ee52b22c54577a6a260f7d794b Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Tue, 30 Jan 2024 11:46:17 -0800 Subject: [PATCH] feat: Drop support for Ruby 2.6 (#237) --- .github/sync-repo-settings.yaml | 8 ++++---- .github/workflows/ci.yml | 18 +++++++++--------- README.md | 2 +- signet.gemspec | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 42ded29..561cdd7 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -6,13 +6,13 @@ branchProtectionRules: isAdminEnforced: false requiredStatusCheckContexts: - 'cla/google' - - 'CI (macos-latest, 3.0, spec)' - - 'CI (ubuntu-latest, 2.6, spec)' + - 'CI (macos-latest, 3.2, spec)' - 'CI (ubuntu-latest, 2.7, spec)' - - 'CI (ubuntu-latest, 3.0, rubocop , build , yardoc , linkinator)' - 'CI (ubuntu-latest, 3.0, spec)' - 'CI (ubuntu-latest, 3.1, spec)' - - 'CI (windows-latest, 3.0, spec)' + - 'CI (ubuntu-latest, 3.2, spec)' + - 'CI (ubuntu-latest, 3.2, rubocop , build , yardoc , linkinator)' + - 'CI (windows-latest, 3.2, spec)' requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true requiresStrictStatusChecks: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99df6fa..7854f50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,6 @@ jobs: strategy: matrix: include: - - os: ubuntu-latest - ruby: "2.6" - task: spec - os: ubuntu-latest ruby: "2.7" task: spec @@ -25,14 +22,17 @@ jobs: - os: ubuntu-latest ruby: "3.1" task: spec + - os: ubuntu-latest + ruby: "3.2" + task: spec - os: macos-latest - ruby: "3.0" + ruby: "3.2" task: spec - os: windows-latest - ruby: "3.0" + ruby: "3.2" task: spec - os: ubuntu-latest - ruby: "3.0" + ruby: "3.2" task: rubocop , build , yardoc , linkinator fail-fast: false runs-on: ${{ matrix.os }} @@ -43,13 +43,13 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: "${{ matrix.ruby }}" - - name: Install NodeJS 16.x + - name: Install NodeJS 18.x uses: actions/setup-node@v4 with: - node-version: "16.x" + node-version: "18.x" - name: Install dependencies shell: bash - run: "gem install --no-document bundler toys && bundle install" + run: "gem install --no-document toys && bundle install" - name: Test ${{ matrix.task }} shell: bash run: toys do ${{ matrix.task }} < /dev/null diff --git a/README.md b/README.md index efd3de4..48a3ce7 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Be sure `https://rubygems.org` is in your gem sources. ## Supported Ruby Versions -This library is supported on Ruby 2.6+. +This library is supported on Ruby 2.7+. Google provides official support for Ruby versions that are actively supported by Ruby Core—that is, Ruby versions that are either in normal maintenance or diff --git a/signet.gemspec b/signet.gemspec index 41336f5..93c65c4 100644 --- a/signet.gemspec +++ b/signet.gemspec @@ -17,14 +17,14 @@ Gem::Specification.new do |gem| gem.rdoc_options = ["--main", "README.md"] gem.summary = "Signet is an OAuth 1.0 / OAuth 2.0 implementation." - gem.required_ruby_version = ">= 2.6" + gem.required_ruby_version = ">= 2.7" gem.add_runtime_dependency "addressable", "~> 2.8" gem.add_runtime_dependency "faraday", ">= 0.17.5", "< 3.a" gem.add_runtime_dependency "jwt", ">= 1.5", "< 3.0" gem.add_runtime_dependency "multi_json", "~> 1.10" - gem.add_development_dependency "google-style", "~> 1.26.1" + gem.add_development_dependency "google-style", "~> 1.27.1" gem.add_development_dependency "kramdown", "~> 1.5" gem.add_development_dependency "launchy", "~> 2.4" gem.add_development_dependency "rake", "~> 13.0"