From ed6af26685a586605164161d5aeb4c0c4d907ecc Mon Sep 17 00:00:00 2001
From: Lyle Johnson <lyle@lylejohnson.name>
Date: Mon, 9 Nov 2009 17:29:53 -0600
Subject: [PATCH] Modified the generate_kwargs_lib.rb script so that it
remembers the previous warning level the user had set instead of just
assuming that warnings were turned on. [#8 state:resolved]
---
scripts/generate_kwargs_lib.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/generate_kwargs_lib.rb b/scripts/generate_kwargs_lib.rb
index 0c9cc8a..5d2b152 100644
--- a/scripts/generate_kwargs_lib.rb
+++ b/scripts/generate_kwargs_lib.rb
@@ -110,7 +110,7 @@ class Generator
out.puts <<-END
require 'fox16'
-$VERBOSE = nil
+old_verbose = $VERBOSE; $VERBOSE = nil
module Fox
@@ -132,7 +132,7 @@ END
def generate_closing(out)
out.puts "end"
out.puts ""
- out.puts "$VERBOSE = true"
+ out.puts "$VERBOSE = old_verbose"
end
def scan_for_descriptions(filename)
--
GitLab