Land #6684, remove obsolete warn_about_rubies

bug/bundler_fix
Brent Cook 2016-03-17 08:26:57 -05:00
commit 1790f039c3
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
2 changed files with 0 additions and 11 deletions

View File

@ -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

View File

@ -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