Added checks for old ruby. Otherwise there will be syntax errors

This commit is contained in:
Christian Mehlmauer
2013-03-17 22:05:34 +01:00
parent 5e36be4f63
commit 08f9d0e67a
4 changed files with 412 additions and 383 deletions

View File

@@ -17,6 +17,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++
require 'rubygems'
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create(1.9)
puts "Ruby >= 1.9 required to run wpscan (You have #{RUBY_VERSION})"
exit(1)
end
begin
# Standard libs
require 'rubygems'