Skip to content

Commit a630802

Browse files
committed
Refs #38856 - bump ruby requirement to 3.0 to match Dynflow
1 parent 9578da5 commit a630802

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
1919
with:
2020
command: bundle exec rubocop --parallel --format github
21+
ruby-version: '3.0'
2122

2223
test:
2324
name: Ruby
@@ -26,6 +27,7 @@ jobs:
2627
with:
2728
plugin: katello
2829
foreman_version: develop # set to the Foreman release branch after branching :)
30+
ruby-version: '3.0'
2931

3032
angular:
3133
name: Angular ${{ matrix.engine }} - NodeJS ${{ matrix.node }}

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ AllCops:
2727
- '**/*.rb'
2828
- app/views/**/*.rabl
2929
- '**/*.rake'
30-
TargetRubyVersion: 2.7
30+
TargetRubyVersion: 3.0
3131

3232
Metrics/MethodLength:
3333
Description: 'Avoid methods longer than 30 lines of code.'

katello.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
1313
gem.homepage = "http://www.katello.org"
1414
gem.summary = "Content and Subscription Management plugin for Foreman"
1515
gem.description = "Katello adds Content and Subscription Management to Foreman. For this it relies on Candlepin and Pulp."
16-
gem.required_ruby_version = '>= 2.7', '< 4'
16+
gem.required_ruby_version = '>= 3.0', '< 4'
1717

1818
gem.files = Dir["{app,webpack,vendor,lib,db,ca,config,locale}/**/*"] +
1919
Dir['LICENSE.txt', 'README.md', 'package.json']

0 commit comments

Comments
 (0)