From 3a2d538cd3a1862bdff62ddf6e38700d9184164b Mon Sep 17 00:00:00 2001 From: Stefan Neidig Date: Tue, 27 Aug 2024 11:22:41 +0200 Subject: [PATCH] chore: setup minimum ruby version to 3.0 --- .github/workflows/test_and_scan.yml | 2 +- PCP-server-Ruby-SDK.gemspec | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_and_scan.yml b/.github/workflows/test_and_scan.yml index 49eb697..52f06f8 100644 --- a/.github/workflows/test_and_scan.yml +++ b/.github/workflows/test_and_scan.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.4"] + ruby-version: ["3.0", "3.1", "3.2", "3.4"] steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/PCP-server-Ruby-SDK.gemspec b/PCP-server-Ruby-SDK.gemspec index 15eb582..e8b6cb3 100644 --- a/PCP-server-Ruby-SDK.gemspec +++ b/PCP-server-Ruby-SDK.gemspec @@ -25,10 +25,9 @@ Gem::Specification.new do |s| s.summary = "Commerce Platform API Ruby Gem" s.description = "RESTful API for the creation of Commerce Cases with Checkouts and the execution of Payments. " s.license = "MIT" - s.required_ruby_version = ">= 2.7" + s.required_ruby_version = ">= 3.0" s.metadata = {} - s.add_runtime_dependency 'httpx', '~> 1.0', '>= 1.0.0' s.add_runtime_dependency 'net-http' s.add_runtime_dependency 'json' s.add_runtime_dependency 'openssl' @@ -38,7 +37,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'simplecov', '~> 0.22.0' s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } - s.test_files = `find spec/*`.split("\n") + s.test_files = `find test/*`.split("\n") s.executables = [] s.require_paths = ["lib"] end