bin/brakeman in brakeman-0.1.1 vs bin/brakeman in brakeman-0.2.0

- old
+ new

@@ -1,12 +1,13 @@ #!/usr/bin/env ruby require "optparse" require 'set' require 'yaml' +$:.unshift "#{File.expand_path(File.dirname(__FILE__))}/../lib" -Version = "0.1.0" +require 'version' trap("INT") do $stderr.puts "\nInterrupted - exiting." exit! end @@ -240,17 +241,10 @@ #Load scanner begin require 'scanner' rescue LoadError - #Try to find lib directory locally - $:.unshift "#{File.expand_path(File.dirname(__FILE__))}/../lib" - - begin - require 'scanner' - rescue LoadError - abort "Cannot find lib/ directory." - end + abort "Cannot find lib/ directory." end #Start scanning scanner = Scanner.new app_path