Removed support for Ruby 1.8. Fixes issue 389.

git-svn-id: https://beef.googlecode.com/svn/trunk@1068 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-07-17 00:50:32 +00:00
parent 6b00485b97
commit 090d9d6782
2 changed files with 18 additions and 0 deletions

8
beef
View File

@@ -16,6 +16,14 @@
# limitations under the License.
#
# check version supported
if RUBY_VERSION < '1.9'
puts "\n"
puts "Ruby version " + RUBY_VERSION + " is no longer supported. Please upgrade 1.9 or later."
puts "\n"
exit
end
$:.unshift(File.join(File.expand_path(File.dirname(__FILE__)), '.'))
$root_dir = File.expand_path('..', __FILE__)

10
install
View File

@@ -20,6 +20,16 @@ require 'rubygems'
puts "\nWelcome to the BEeF installer!"
if RUBY_VERSION < '1.9'
puts "\n"
puts "Ruby version " + RUBY_VERSION + " is no longer supported. Please upgrade 1.9 or later."
puts "\n"
exit
end
puts "\nPlease make sure you have installed SQLite before proceeding. For instructions on how to do this please see the README file"
puts "\nPlease make sure you have installed SQLite before proceeding. For instructions on how to do this please see the README file"
# array of required gems - add to as needed (specify a version if needed eg "gem_name, =x.x.x")