From: Tilman Sauerbeck Date: Tue, 14 Jun 2005 15:11:35 +0000 (+0000) Subject: Use OPTIONS instead of @options when trying to generate the output filename. X-Git-Tag: redact-0.1.3~3 X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=commitdiff_plain;h=dc00882e6139ccbee72bad4f96cabe950ba0c338 Use OPTIONS instead of @options when trying to generate the output filename. --- diff --git a/ChangeLog b/ChangeLog index dccf210..81b5bf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ -- -$Id: ChangeLog 53 2005-06-11 13:21:38Z tilman $ +$Id: ChangeLog 57 2005-06-14 15:11:35Z tilman $ ++ +2005-06-14 Tilman Sauerbeck (tilman at code-monkey de) + * lib/redact/app.rb: Use OPTIONS instead of @options when trying + to generate the output filename + 2005-06-11 Tilman Sauerbeck (tilman at code-monkey de) * Released version 0.1.2 diff --git a/lib/redact/app.rb b/lib/redact/app.rb index 9e892db..5a22910 100644 --- a/lib/redact/app.rb +++ b/lib/redact/app.rb @@ -1,5 +1,5 @@ #-- -# $Id: app.rb 48 2005-06-08 21:38:34Z tilman $ +# $Id: app.rb 57 2005-06-14 15:11:35Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -55,7 +55,7 @@ module Redact exit end - OPTIONS.output ||= @options.input.sub(/.[^.]+$/, ".edj") + OPTIONS.output ||= OPTIONS.input.sub(/.[^.]+$/, ".edj") end def run