https://bugs.webkit.org/show_bug.cgi?id=108569
Patch by Nathan de Vries <ndevries@apple.com> on 2013-02-01
Reviewed by Joseph Pecoraro.
* PrettyPatch/prettify.rb:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141646
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-02-01 Nathan de Vries <ndevries@apple.com>
+
+ Allow prettify.rb to be run from any directory, and don't hard-code the system ruby path
+ https://bugs.webkit.org/show_bug.cgi?id=108569
+
+ Reviewed by Joseph Pecoraro.
+
+ * PrettyPatch/prettify.rb:
+
2013-01-03 James Robinson <jamesr@chromium.org>
Avoid mixed content when expanding context in code review tool
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
-require 'PrettyPatch'
require 'optparse'
+require 'pathname'
require 'webrick/htmlutils'
+$LOAD_PATH << Pathname.new(__FILE__).dirname.realpath.to_s
+
+require 'PrettyPatch'
+
BACKTRACE_SEPARATOR = "\n\tfrom "
options = { :html_exceptions => false }