From 3505e326871e9752f002c5e3d2f9d5e2070d280d Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Fri, 1 Feb 2013 22:46:16 +0000 Subject: [PATCH] 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 Patch by Nathan de Vries 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 --- Websites/bugs.webkit.org/ChangeLog | 9 +++++++++ Websites/bugs.webkit.org/PrettyPatch/prettify.rb | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Websites/bugs.webkit.org/ChangeLog b/Websites/bugs.webkit.org/ChangeLog index d7d2db0b63e5..6beebbc8a64f 100644 --- a/Websites/bugs.webkit.org/ChangeLog +++ b/Websites/bugs.webkit.org/ChangeLog @@ -1,3 +1,12 @@ +2013-02-01 Nathan de Vries + + 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 Avoid mixed content when expanding context in code review tool diff --git a/Websites/bugs.webkit.org/PrettyPatch/prettify.rb b/Websites/bugs.webkit.org/PrettyPatch/prettify.rb index 07d41fe15384..a9c211fbe1c8 100755 --- a/Websites/bugs.webkit.org/PrettyPatch/prettify.rb +++ b/Websites/bugs.webkit.org/PrettyPatch/prettify.rb @@ -1,9 +1,13 @@ -#!/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 } -- 2.36.0