Merge pull request #2986 from TheGuy920/master

Update Ruby Version - Complete
This commit is contained in:
Stephen
2023-12-22 08:09:09 +10:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -21,9 +21,9 @@ Or cloning the Git repository from Github:
Prerequisites
--------------
BeEF requires Ruby 2.7+.
BeEF requires Ruby 3.0+.
If your operating system package manager does not support Ruby version 2.7,
If your operating system package manager does not support Ruby version 3.0,
you can add the brightbox ppa repository for the latest version of Ruby:
$ sudo apt-add-repository -y ppa:brightbox/ruby-ng

4
beef
View File

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