Merge branch 'bug/msftidy-check-rubies' of github.com:todb-r7/metasploit-framework into todb-r7-bug/msftidy-check-rubies

unstable
sinn3r 2013-02-04 14:20:28 -06:00
commit 801a97a32b
1 changed files with 1 additions and 3 deletions

View File

@ -226,9 +226,7 @@ class Msftidy
puts "Checking syntax for #{f_rel}."
rubies ||= RVM.list_strings
res = %x{rvm all do ruby -c #{f_rel}}.split("\n").select {|msg| msg =~ /Syntax OK/}
rubies.size == res.size
error("Fails alternate Ruby version check") if rubies.size
error("Fails alternate Ruby version check") if rubies.size != res.size
end
def check_ranking