From 97da99df9cfb17eb233c8a011832476a8916cd74 Mon Sep 17 00:00:00 2001 From: Alex Rocha Date: Mon, 25 Mar 2024 14:23:48 -0700 Subject: [PATCH] Centralize Ruby Version to `.ruby-version` The `.ruby-version` file is the ecosystem standard for defining a Ruby version. This commit adds the `.ruby-version` file and removes all other references as they will read from this file. --- .github/workflows/ci.yml | 2 +- .rubocop.yml | 1 - .ruby-version | 1 + dev.yml | 2 +- record_store.gemspec | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .ruby-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 041a3b96..5e06d26f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ 2.7.1, 3.2.1 ] + ruby: [ 3.0, 3.1, 3.2 ] name: Test Ruby ${{ matrix.ruby }} steps: - uses: actions/checkout@v4 diff --git a/.rubocop.yml b/.rubocop.yml index 72370257..89b7f4d0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,6 @@ inherit_gem: rubocop-shopify: rubocop.yml AllCops: - TargetRubyVersion: 2.6.4 Exclude: - vendor/**/* UseCache: true diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..e4604e3a --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.1 diff --git a/dev.yml b/dev.yml index 4f9c7af2..ffb2cfa7 100644 --- a/dev.yml +++ b/dev.yml @@ -2,7 +2,7 @@ name: recordstore up: - - ruby: 3.2.1 + - ruby - bundler commands: diff --git a/record_store.gemspec b/record_store.gemspec index d438013d..c3d865f7 100644 --- a/record_store.gemspec +++ b/record_store.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.executables = ['record-store'] spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.0' + spec.required_ruby_version = '>= 3.0.0' spec.add_runtime_dependency 'activemodel', '>= 4.2' spec.add_runtime_dependency 'activesupport', '>= 4.2'