X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=lib%2Fredact%2Fredact.rb;h=379bb026c2464988fd5460bf4409daec0ec70de1;hb=66f2eadb07d3fdba45f556db4480883d70f86e2a;hp=a4c37fd332f1fd3dc8f01e70c2c97bf3a9f3230c;hpb=4b21b0683362eeaa4435c9e245f9d849d3b1276e;p=redact.git diff --git a/lib/redact/redact.rb b/lib/redact/redact.rb index a4c37fd..379bb02 100644 --- a/lib/redact/redact.rb +++ b/lib/redact/redact.rb @@ -1,5 +1,5 @@ #-- -# $Id: redact.rb 64 2005-08-25 21:22:04Z tilman $ +# $Id: redact.rb 73 2005-09-21 16:20:52Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -57,7 +57,7 @@ class String end module Redact - VERSION = "0.1.4" + VERSION = "0.1.5" class RedactError < StandardError; end @@ -259,7 +259,8 @@ module Redact end def script=(v) - @script = v.to_str.dup + v = v.to_str + @script = (File.exist?(v) ? File.read(v) : v).dup end def part(name, type = :invalid) # :yields: part