Bump minimum required Ruby version from 2.5 to 2.7

This commit is contained in:
Brendan Coles
2022-01-22 07:09:51 +00:00
parent 20f9f2e530
commit afec9fbaa2
3 changed files with 7 additions and 6 deletions

7
beef
View File

@@ -12,11 +12,12 @@
$VERBOSE = nil
#
# @note Version check to ensure BeEF is running Ruby 2.5+
# @note Version check to ensure BeEF is running Ruby 2.7+
#
if RUBY_VERSION < '2.5'
min_ruby_version = '2.7'
if RUBY_VERSION < min_ruby_version
puts
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.5 or later."
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version #{min_ruby_version} or later."
puts
exit 1
end