bin/earthquake in earthquake-0.7.0 vs bin/earthquake in earthquake-0.7.1

- old
+ new

@@ -8,20 +8,23 @@ end options = opts.to_hash(true) options.delete(:help) options[:dir] = argv.shift unless argv.empty? -$:.unshift(File.expand_path('../../lib', __FILE__)) if $0 == __FILE__ +require 'pathname' +eq_dir = Pathname.new(File.expand_path('../..', __FILE__)).realpath +$:.unshift eq_dir.join('lib') if $0 == __FILE__ + print "\e[31m" puts %q{ _ _ _ ___ __ _ _ __| |_| |__ __ _ _ _ __ _| | _____ / _ \/ _` | '__| __| '_ \ / _` | | | |/ _` | |/ / _ \ | __/ (_| | | | |_| | | | (_| | |_| | (_| | < __/ \___|\__,_|_| \__|_| |_|\__, |\__,_|\__,_|_|\_\___| |_| }. -gsub(/^\n/, '') + "v#{File.read(File.expand_path('../../VERSION', __FILE__))}".rjust(10) + "\n\n" +gsub(/^\n/, '') + "v#{eq_dir.join('VERSION').read}".rjust(10) + "\n\n" print "\e[0m" require 'earthquake' Earthquake.start(options) \ No newline at end of file