From 4732d6658617448e6deb8b80944f3334db0e97e4 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Mon, 6 Jan 2014 16:13:32 +0000 Subject: [PATCH] Fixed issue #951: BeEF can now be installed correctly on Windows. --- Gemfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index eef5c663f..906fc6903 100644 --- a/Gemfile +++ b/Gemfile @@ -6,20 +6,20 @@ # See the file 'doc/COPYING' for copying permission # -# Gems only required on Windows, or with specific Windows issues -if RUBY_PLATFORM.downcase.include?("mswin") || RUBY_PLATFORM.downcase.include?("mingw") - gem "win32console" -end - gem "eventmachine", "1.0.3" gem "thin" gem "sinatra", "1.4.2" gem "rack", "1.5.2" gem "em-websocket", "~> 0.3.6" gem "uglifier", "~> 2.2.1" -# install https://github.com/cowboyd/therubyracer if the OS is != than OSX -if !RUBY_PLATFORM.downcase.include?("darwin") - gem "therubyracer", "~> 0.12.0" +if RUBY_PLATFORM.downcase.include?("mswin") || RUBY_PLATFORM.downcase.include?("mingw") + # make sure you install this gem following https://github.com/hiranpeiris/therubyracer_for_windows + gem "therubyracer", "~> 0.11.0beta1" + gem "execjs" + gem "win32console" +elsif !RUBY_PLATFORM.downcase.include?("darwin") + gem "therubyracer" + gem "execjs" end gem "ansi" gem "term-ansicolor", :require => "term/ansicolor"