Skip to content

Commit 795f985

Browse files
authored
Merge pull request #73 from bastelfreak/ruby323
Require Ruby 3.2 or newer
2 parents f5e909e + 0be1509 commit 795f985

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ RSpec/SubjectStub:
1212

1313
RSpec/StubbedMock:
1414
Enabled: false
15+
16+
AllCops:
17+
TargetRubyVersion: 3.2

Gemfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ group :development do
1212
gem 'yard'
1313
end
1414

15-
group :rubocop do
16-
gem 'voxpupuli-rubocop', '~> 3.1.0'
17-
end
18-
1915
group :test do
2016
gem 'rspec', '~> 3.0'
2117
end

beaker_puppet_helpers.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ Gem::Specification.new do |s|
1010
s.description = 'For use for the Beaker acceptance testing tool'
1111
s.license = 'Apache-2.0'
1212

13-
s.required_ruby_version = '>= 2.7', '< 4'
13+
s.required_ruby_version = '>= 3.2', '< 4'
1414

1515
s.files = `git ls-files`.split("\n")
1616
s.require_paths = ['lib']
1717

1818
# Run time dependencies
19-
s.add_dependency 'beaker', '>= 5.8.1', '< 7'
19+
s.add_dependency 'beaker', '>= 5.8.1', '< 8'
2020
s.add_dependency 'puppet-modulebuilder', '>= 0.3', '< 3'
21+
22+
s.add_development_dependency 'voxpupuli-rubocop', '~> 4.1.0'
2123
end

lib/beaker_puppet_helpers/dsl.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def apply_manifest_on(hosts, manifest, opts = {}, &block)
189189
# @return [Array<Result>, Result, nil] An array of results, a result
190190
# object, or nil. Check {Beaker::Shared::HostManager#run_block_on} for
191191
# more details on this.
192-
def apply_manifest(manifest, opts = {}, &block)
193-
apply_manifest_on(default, manifest, opts, &block)
192+
def apply_manifest(manifest, opts = {}, &)
193+
apply_manifest_on(default, manifest, opts, &)
194194
end
195195

196196
# Get a facter fact from a provided host

0 commit comments

Comments
 (0)