X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=blobdiff_plain;f=lib%2Fredact%2Fapp.rb;h=351897e2ef4c7e693535af593a5d7192d3d438c8;hp=72175162e2424c86930db4166b8ab19d9c30246a;hb=aede8571f4811523c2e8cfc0ceb86f1d328ad9ae;hpb=1c7f10346bf5a3639736d9179a492d01c2a4d127 diff --git a/lib/redact/app.rb b/lib/redact/app.rb index 7217516..351897e 100644 --- a/lib/redact/app.rb +++ b/lib/redact/app.rb @@ -1,5 +1,5 @@ #-- -# $Id: app.rb 7 2005-03-28 16:27:18Z tilman $ +# $Id: app.rb 30 2005-04-23 15:25:21Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -206,7 +206,7 @@ EOT method = (sane == @filename) ? :unshift : :push s.send(method, SourceFile.new(sane, value.join)) - # include files that are with File.read, too + # include files that are read with File.read, too value.join.grep(/File\.read\(\"(.+)\"\)/) do sane = Pathname.new($1).cleanpath.to_s s << SourceFile.new(sane, File.read(sane))