mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Indicate lack of support for ruby 1.9.0, indicate experimental support for ruby 1.9.1
git-svn-id: file:///home/svn/framework3/trunk@6661 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
5757685b59
commit
f78482d3f5
@ -23,10 +23,14 @@ if (RUBY_VERSION =~ /^1\.[0-7]\./ or RUBY_VERSION =~ /^1\.8\.[0-1]$/)
|
||||
end
|
||||
|
||||
# Check for ruby 1.9.0 and throw a big nasty warning
|
||||
if (RUBY_VERSION =~ /^1\.9\./)
|
||||
puts "*** Ruby 1.9.x is not currently supported, you may experience significant"
|
||||
puts " issues trying to use this version with the Metasploit Framework"
|
||||
if (RUBY_VERSION =~ /^1\.9\.0/)
|
||||
puts "*** Ruby 1.9.0 is not supported, please upgrade to Ruby 1.9.1 or newer."
|
||||
exit(0)
|
||||
end
|
||||
|
||||
if(RUBY_VERSION =~ /^1\.9\./)
|
||||
puts "*** Metasploit only has EXPERIMENTAL support for Ruby 1.9.1 and newer, things may break!"
|
||||
puts "*** Please report bugs to msfdev[at]metasploit.com"
|
||||
|
||||
# Force binary encoding for Ruby versions that support it
|
||||
if(Object.const_defined?('Encoding') and Encoding.respond_to?('default_external='))
|
||||
|
@ -265,4 +265,4 @@ protected
|
||||
attr_accessor :waiters # :nodoc:
|
||||
end
|
||||
|
||||
end; end; end
|
||||
end; end; end
|
||||
|
@ -120,4 +120,4 @@ protected
|
||||
Rex::Arch::X86::ESI ], nil, state.badchars)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user