Skip to content

Commit 114d3ef

Browse files
authored
Merge pull request #2536 from mhashizume/FACT-3147/main/min-ruby-25
(FACT-3147) Updates minimum Ruby version to 2.5
2 parents 912c337 + 37d0f59 commit 114d3ef

File tree

19 files changed

+34
-50
lines changed

19 files changed

+34
-50
lines changed

.github/actions/presuite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize_beaker
3131

3232
def beaker_platform
3333
{
34-
'ubuntu-latest' => 'ubuntu2004-64a',
34+
'ubuntu-20.04' => 'ubuntu2004-64a',
3535
'macos-latest' => 'osx11-64a',
3636
'windows-2016' => 'windows2016-64a',
3737
'windows-2019' => 'windows2019-64a'

.github/workflows/acceptance_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Platform
1515
strategy:
1616
matrix:
17-
os: [ windows-2019, ubuntu-latest, macos-latest ]
17+
os: [ windows-2019, ubuntu-20.04, macos-latest ]
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
BEAKER_debug: true

.github/workflows/checks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
rubocop_checks:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-20.04
1515
name: RuboCop
1616
steps:
1717
- name: Checkout current PR
@@ -25,7 +25,7 @@ jobs:
2525
- run: bundle exec rubocop --parallel
2626

2727
rtc:
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-20.04
2929
name: RuboCop TODO
3030
steps:
3131
- uses: actions/checkout@v1
@@ -38,7 +38,7 @@ jobs:
3838
FORCE_ERROR_EXIT: true
3939

4040
commit_checks:
41-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-20.04
4242
name: commit message
4343
steps:
4444
- name: Checkout current PR

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
coverage_checks:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
name: coverage
1313
steps:
1414
- name: Checkout current PR

.github/workflows/snyk_monitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
snyk_monitor:
99
if: ${{ github.repository_owner == 'puppetlabs' }}
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
1111
name: Snyk Monitor
1212
steps:
1313
- name: Checkout current PR

.github/workflows/unit_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
strategy:
1919
matrix:
2020
ruby:
21-
- '2.3'
21+
- '2.5'
2222
- '2.7'
2323
- '3.0'
2424
- '3.2.0-preview2'
2525
- 'jruby-9.3.7.0'
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-20.04
2727
steps:
2828
- name: Checkout current PR
2929
uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ site](https://puppet.com/docs/puppet/latest/facter.html).
2828
* AIX
2929

3030
## Requirements
31-
* Ruby 2.3+
31+
* Ruby 2.5+
3232
* FFI (for facts like `mountpoints` which are resolved using C API calls)
3333

3434
## Basic concepts

agent/facter-ng.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55

66
Gem::Specification.new do |spec|
77
spec.name = 'facter-ng'
8-
spec.version = '4.2.15'
8+
spec.version = '4.3.0'
99
spec.authors = ['Puppet']
1010
spec.email = ['[email protected]']
1111
spec.homepage = 'https://github.com/puppetlabs/facter'
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
2727

2828
spec.files = dirs.map { |path| path.sub(base, '') }
2929

30-
spec.required_ruby_version = '>= 2.3', '< 4.0'
30+
spec.required_ruby_version = '>= 2.5', '< 4.0'
3131

3232
spec.bindir = 'bin'
3333
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }

ext/project_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem_require_path: 'lib'
1212
gem_executables: 'facter'
1313
gem_license: 'Apache-2.0'
1414
gem_default_executables: 'facter'
15-
gem_required_ruby_version: ['>= 2.3', '< 4.0']
15+
gem_required_ruby_version: ['>= 2.5', '< 4.0']
1616
gem_runtime_dependencies:
1717
hocon: ~> 1.3
1818
thor: ['>= 1.0.1', '< 2.0']

facter.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55

66
Gem::Specification.new do |spec|
77
spec.name = 'facter'
8-
spec.version = '4.2.15'
8+
spec.version = '4.3.0'
99
spec.authors = ['Puppet']
1010
spec.email = ['[email protected]']
1111
spec.homepage = 'https://github.com/puppetlabs/facter'
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
2424
base = "#{__dir__}#{File::SEPARATOR}"
2525
spec.files = dirs.map { |path| path.sub(base, '') }
2626

27-
spec.required_ruby_version = '>= 2.3', '< 4.0'
27+
spec.required_ruby_version = '>= 2.5', '< 4.0'
2828
spec.bindir = 'bin'
2929
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
3030
spec.require_paths = ['lib']

0 commit comments

Comments
 (0)