From 105d2c523b1393b8ba8eebffe1633e4d0f112ea8 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 18 Jan 2012 22:03:50 +0100 Subject: [PATCH] Fix Windows installation problems: added additional missing checks and specific eventmachine version --- Gemfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 0e04b50fa..71e9a15c9 100644 --- a/Gemfile +++ b/Gemfile @@ -16,6 +16,14 @@ # limitations under the License. # +# Gems only required on Windows, or with specific Windows issues +if RUBY_PLATFORM.downcase.include?("mswin") || RUBY_PLATFORM.downcase.include?("mingw") + gem "win32console" + gem "eventmachine", "1.0.0.beta.4.1" +else + gem "eventmachine", "0.12.10" +end + gem "thin" gem "ansi" gem "term-ansicolor", :require => "term/ansicolor" @@ -28,11 +36,6 @@ gem "erubis" gem "dm-migrations" gem "msfrpc-client" -# Gems only required one windows -if RUBY_PLATFORM.downcase.include?("mswin") - gem "win32console" -end - if ENV['BEEF_TEST'] # for running unit tests gem "test-unit"