(PUP-11786) Beaker 5 compatibility

Vox Pupuli has released Beaker 5, which drops older (< 2.7) Ruby
compatibility and adds compatibility for Ruby 3.2

This commit adds testing for Ruby 3.2, sets the dependency on
Beaker to ~> 5.0, replaces the File#exists? method that's been
deprecated since Ruby 2.7 and removed in 3.2, and updates the
dependency on FakeFS to the same version that Beaker uses (FakeFS
~> 2.4).
This commit is contained in:
Michael Hashizume 2023-03-27 13:59:30 -07:00
parent 278515e460
commit 4f5ee09807
3 changed files with 4 additions and 12 deletions

View file

@ -20,12 +20,7 @@ Gem::Specification.new do |s|
# Testing dependencies
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'rspec-its'
# pin fakefs for Ruby < 2.3
if RUBY_VERSION < "2.3"
s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14'
else
s.add_development_dependency 'fakefs', '~> 0.6'
end
s.add_development_dependency 'fakefs', '~> 2.4'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'pry', '~> 0.10'