Sha256: 045bc19a2a553934df2953f6383c3ec9028b1738e6262bb1ea6c77b766084eea

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

TARANTULA_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "../.."))

require 'forwardable'
require 'erb'
require 'active_support'
require 'action_controller'
# bringing in xss-shield requires a bunch of other dependencies
# still not certain about this, if it ruins your world please let me know
#xss_shield_path = File.join(TARANTULA_ROOT, %w{vendor xss-shield})
#$: << File.join(xss_shield_path, "lib")
#require File.join(xss_shield_path, "init")

require 'htmlentities'

module Relevance; end
module Relevance; module CoreExtensions; end; end
module Relevance
  module Tarantula
    def tarantula_home
      File.expand_path(File.join(File.dirname(__FILE__), "../.."))
    end
    def log(msg)
      puts msg if verbose
    end
    def rails_root
      ::Rails.root.to_s
    end
    def verbose
      ENV["VERBOSE"]
    end
  end
end

require "relevance/core_extensions/test_case"
require "relevance/core_extensions/ellipsize"
require "relevance/core_extensions/file"
require "relevance/core_extensions/response"
require "relevance/core_extensions/metaclass"
require "relevance/core_extensions/string_chars_fix"

require "relevance/tarantula/html_reporter"
require "relevance/tarantula/html_report_helper"
require "relevance/tarantula/io_reporter"
require "relevance/tarantula/recording"
require "relevance/tarantula/response"
require "relevance/tarantula/result"
require "relevance/tarantula/log_grabber"
require "relevance/tarantula/invalid_html_handler"
require "relevance/tarantula/transform"
require "relevance/tarantula/crawler"
require "relevance/tarantula/basic_attack"
require "relevance/tarantula/form"
require "relevance/tarantula/form_submission"
require "relevance/tarantula/attack"
require "relevance/tarantula/attack_handler"
require "relevance/tarantula/link"

require "relevance/tarantula/tidy_handler" if ENV['TIDY_PATH']

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tarantula-0.4.1 lib/relevance/tarantula.rb
tarantula-0.4.0 lib/relevance/tarantula.rb