From dc00882e6139ccbee72bad4f96cabe950ba0c338 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Tue, 14 Jun 2005 15:11:35 +0000 Subject: [PATCH] Use OPTIONS instead of @options when trying to generate the output filename. --- ChangeLog | 6 +++++- lib/redact/app.rb | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.30.2