Land #6684, remove obsolete warn_about_rubies
commit
1790f039c3
|
@ -163,14 +163,4 @@ class Msf::DBManager
|
|||
|
||||
true
|
||||
end
|
||||
|
||||
# Mainly, it's Ruby 1.9.1 that cause a lot of problems now, along with Ruby 1.8.6.
|
||||
# Ruby 1.8.7 actually seems okay, but why tempt fate? Let's say 1.9.3 and beyond.
|
||||
def warn_about_rubies
|
||||
if ::RUBY_VERSION =~ /^1\.9\.[012]($|[^\d])/
|
||||
$stderr.puts "**************************************************************************************"
|
||||
$stderr.puts "Metasploit requires at least Ruby 1.9.3. For an easy upgrade path, see https://rvm.io/"
|
||||
$stderr.puts "**************************************************************************************"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -52,5 +52,4 @@ RSpec.describe Msf::DBManager do
|
|||
it { is_expected.to respond_to :error }
|
||||
it { is_expected.to respond_to :initialize_database_support }
|
||||
it { is_expected.to respond_to :service_name_map }
|
||||
it { is_expected.to respond_to :warn_about_rubies }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue