Update minimum required Ruby version to 2.3.x
This commit is contained in:
6
beef
6
beef
@@ -12,11 +12,11 @@
|
||||
$VERBOSE = nil
|
||||
|
||||
#
|
||||
# @note Version check to ensure BeEF is running Ruby 2.2+
|
||||
# @note Version check to ensure BeEF is running Ruby 2.3+
|
||||
#
|
||||
if RUBY_VERSION < '2.2'
|
||||
if RUBY_VERSION < '2.3'
|
||||
puts
|
||||
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.2 or later."
|
||||
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.3 or later."
|
||||
puts
|
||||
exit 1
|
||||
end
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#
|
||||
|
||||
# @note Version check to ensure BeEF is running Ruby 2.0+
|
||||
if RUBY_VERSION < '2.2'
|
||||
if RUBY_VERSION < '2.3'
|
||||
puts "\n"
|
||||
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.2 or later."
|
||||
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.3 or later."
|
||||
puts "\n"
|
||||
exit 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user