Skip to content

Commit

Permalink
Bump minimal Ruby version requirement to v3.0
Browse files Browse the repository at this point in the history
Ruby v2.7 reached EOL on 2023-03-31 [1].

This also fixes testing against Solidus master, which also dropped Ruby
2.7 support [2].

[1] - https://www.ruby-lang.org/en/downloads/branches/
[2] - solidusio/solidus#5012
  • Loading branch information
waiting-for-dev authored and kennyadsl committed May 11, 2023
1 parent 05cefe4 commit 867dded
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,28 @@ jobs:
run-specs-with-postgres:
executor:
name: solidusio_extensions/postgres
ruby_version: '3.1'
ruby_version: '3.2'
steps:
- test-with-starter-frontend

run-specs-with-mysql:
executor:
name: solidusio_extensions/mysql
ruby_version: '3.0'
ruby_version: '3.1'
steps:
- test-with-starter-frontend

run-specs-with-sqlite:
executor:
name: solidusio_extensions/sqlite
ruby_version: '2.7'
ruby_version: '3.0'
steps:
- test-with-starter-frontend

lint-code:
executor: solidusio_extensions/sqlite-memory
executor:
name: solidusio_extensions/sqlite-memory
ruby_version: '3.0'
steps:
- solidusio_extensions/lint-code

Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require:

AllCops:
NewCops: disable
TargetRubyVersion: '2.7'
TargetRubyVersion: '3.0'
Exclude:
- sandbox/**/*
- dummy-app/**/*
Expand Down
2 changes: 1 addition & 1 deletion solidus_paypal_commerce_platform.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_paypal_commerce_platform/releases'
spec.metadata['rubygems_mfa_required'] = 'true'

spec.required_ruby_version = Gem::Requirement.new('>= 2.7')
spec.required_ruby_version = Gem::Requirement.new('>= 3.0')

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand Down

0 comments on commit 867dded

Please sign in to comment.