From 1abdb5d8ba520a6575968c2042831d39027d5e38 Mon Sep 17 00:00:00 2001 From: Samir Jha Date: Wed, 19 Nov 2025 16:23:45 +0000 Subject: [PATCH] Remove ruby 2.7 and use 3.0 --- .github/workflows/test.yml | 1 + .rubocop.yml | 2 +- smart_proxy_container_gateway.gemspec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 392fb13..a2585de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: name: Rubocop uses: theforeman/actions/.github/workflows/rubocop.yml@v0 with: + ruby: "3.0" command: bundle exec rubocop --parallel --format github test: diff --git a/.rubocop.yml b/.rubocop.yml index 88a4f26..96cf3c6 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,7 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 # Don't prefer is_a? over kind_of? Style/ClassCheck: diff --git a/smart_proxy_container_gateway.gemspec b/smart_proxy_container_gateway.gemspec index 138b520..08a5602 100644 --- a/smart_proxy_container_gateway.gemspec +++ b/smart_proxy_container_gateway.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/Katello/smart_proxy_container_gateway' s.license = 'GPL-3.0-only' - s.required_ruby_version = '>= 2.7' + s.required_ruby_version = '>= 3.0' s.add_dependency 'activesupport', '>= 6.1', '< 8' s.add_dependency 'pg', '~> 1.5' s.add_dependency 'sequel', '~> 5.0'