Skip to content

Commit

Permalink
Centralize Ruby Version to .ruby-version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrocha committed Mar 25, 2024
1 parent bba9630 commit 97da99d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ inherit_gem:
rubocop-shopify: rubocop.yml

AllCops:
TargetRubyVersion: 2.6.4
Exclude:
- vendor/**/*
UseCache: true
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.1
2 changes: 1 addition & 1 deletion dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: recordstore

up:
- ruby: 3.2.1
- ruby
- bundler

commands:
Expand Down
2 changes: 1 addition & 1 deletion record_store.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 97da99d

Please sign in to comment.