Update minimum required version of Ruby to 2.1

This commit is contained in:
Brendan Coles
2016-10-09 20:11:24 +00:00
parent 6d7f799abf
commit f20528e13b
5 changed files with 13 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
language: ruby
rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0

View File

@@ -20,13 +20,15 @@ Installation
1. Prerequisites (platform independent)
BeEF requires Ruby 2.0+ and the "bundler" gem. Bundler can be installed by:
BeEF requires Ruby 2.1+ and the "bundler" gem. Bundler can be installed by:
gem install bundler
2. Prerequisites (Windows)
Windows is no longer supported. The following instructions are outdated.
!!! This must be done PRIOR to running the bundle install command !!!
Windows requires the sqlite.dll. Simply grab the zip file below and extract it to your Ruby bin directory:
@@ -76,7 +78,7 @@ Installation
- XCode: provides the sqlite support BeEF needs
- Ruby 2.0
- Ruby 2.1
To install RVM and Ruby 2.1.5 on Mac OS:
$ bash -s stable < <(curl -Ls https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer) source ~/.bash_profile
$ rvm install 2.1.5

6
README
View File

@@ -36,8 +36,8 @@ Twitter: @beefproject
Requirements
------------
* OSX 10.5.0 or higher, Modern Linux, Windows XP or higher
* [Ruby](http://rubylang.org) 2.0 or higher
* OSX 10.5.0 or higher, modern Linux
* [Ruby](http://rubylang.org) 2.1 or higher
* [SQLite](http://sqlite.org) 3.x
* The gems listed in the Gemfile: https://github.com/beefproject/beef/blob/master/Gemfile
@@ -47,7 +47,7 @@ Quick Start
__The following is for the impatient.__
For full installation details (including on Microsoft Windows), please refer to INSTALL.txt.
For full installation details, please refer to INSTALL.txt.
We also have a Wiki page at https://github.com/beefproject/beef/wiki/Installation
$ bash -s stable < <(curl -Ls https://raw.githubusercontent.com/beefproject/beef/a6a7536e736e7788e12df91756a8f132ced24970/install-beef)

View File

@@ -36,8 +36,8 @@ __Twitter:__ @beefproject
Requirements
------------
* OSX 10.5.0 or higher, Modern Linux, Windows XP or higher
* [Ruby](http://rubylang.org) 1.9.2 or higher
* OSX 10.5.0 or higher, modern Linux
* [Ruby](http://rubylang.org) 2.1 or higher
* [SQLite](http://sqlite.org) 3.x
* The gems listed in the Gemfile: https://github.com/beefproject/beef/blob/master/Gemfile
@@ -47,7 +47,7 @@ Quick Start
__The following is for the impatient.__
For full installation details (including on Microsoft Windows), please refer to INSTALL.txt.
For full installation details, please refer to INSTALL.txt.
We also have a Wiki page at https://github.com/beefproject/beef/wiki/Installation
$ curl -L https://raw.githubusercontent.com/beefproject/beef/a6a7536e/install-beef | bash -s stable
@@ -60,6 +60,3 @@ To get started, simply execute beef and follow the instructions:
$ ./beef
On windows use
$ ruby beef

6
beef
View File

@@ -9,10 +9,10 @@
# stop deprecation warning from being displayed
$VERBOSE = nil
# @note Version check to ensure BeEF is running Ruby 2.0+
if RUBY_VERSION < '2.0'
# @note Version check to ensure BeEF is running Ruby 2.1+
if RUBY_VERSION < '2.1'
puts "\n"
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.0 or later."
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version 2.1 or later."
puts "\n"
exit 1
end