updated the version from 2.4 - 2.5

This commit is contained in:
root
2019-12-17 01:45:16 +00:00
parent 9e31f7d1eb
commit feb57aca91
6 changed files with 10 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ AllCops:
- 'tmp/**/*' - 'tmp/**/*'
- 'tools/**/*' - 'tools/**/*'
- 'doc/**/*' - 'doc/**/*'
TargetRubyVersion: 2.4 TargetRubyVersion: 2.5
Metrics/AbcSize: Metrics/AbcSize:
Enabled: false Enabled: false

View File

@@ -1,8 +1,9 @@
language: ruby language: ruby
rvm: rvm:
- 2.4.0 - 2.5.0
- 2.5.3 - 2.5.3
- 2.6.0 - 2.6.0
- 2.6.5
notifications: notifications:
email: email:
recipients: recipients:

View File

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

View File

@@ -37,7 +37,7 @@ Requirements
------------ ------------
* Operating System: Mac OSX 10.5.0 or higher / modern Linux. Note: Windows is not supported. * Operating System: Mac OSX 10.5.0 or higher / modern Linux. Note: Windows is not supported.
* [Ruby](http://ruby-lang.org): 2.4 or newer * [Ruby](http://ruby-lang.org): 2.5 or newer
* [SQLite](http://sqlite.org): 3.x * [SQLite](http://sqlite.org): 3.x
* [Node.js](https://nodejs.org): 6 or newer * [Node.js](https://nodejs.org): 6 or newer
* The gems listed in the Gemfile: https://github.com/beefproject/beef/blob/master/Gemfile * The gems listed in the Gemfile: https://github.com/beefproject/beef/blob/master/Gemfile

6
beef
View File

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

View File

@@ -156,7 +156,7 @@ check_ruby_version () {
info 'Detecting Ruby environment...' info 'Detecting Ruby environment...'
MIN_RUBY_VER='2.4' MIN_RUBY_VER='2.5'
if command_exists ruby${RUBYSUFFIX} if command_exists ruby${RUBYSUFFIX}
then then
RUBY_VERSION=$(ruby${RUBYSUFFIX} -e "puts RUBY_VERSION") RUBY_VERSION=$(ruby${RUBYSUFFIX} -e "puts RUBY_VERSION")