From e3ea5d6336530245ee9f0c180176e82840b1f6fd Mon Sep 17 00:00:00 2001 From: Finn Smith Date: Fri, 23 Apr 2010 07:33:02 +0800 Subject: [PATCH] Move require of tempfile lib to file that actually uses it. --- bin/whenever | 3 +-- lib/whenever/command_line.rb | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/whenever b/bin/whenever index d221e10..7f2146f 100644 --- a/bin/whenever +++ b/bin/whenever @@ -3,7 +3,6 @@ require 'rubygems' require 'optparse' require 'fileutils' -require 'tempfile' require 'whenever' options = Hash.new @@ -27,4 +26,4 @@ OptionParser.new do |opts| end end.parse! -Whenever::CommandLine.execute(options) \ No newline at end of file +Whenever::CommandLine.execute(options) diff --git a/lib/whenever/command_line.rb b/lib/whenever/command_line.rb index 76cbd1e..af3b754 100644 --- a/lib/whenever/command_line.rb +++ b/lib/whenever/command_line.rb @@ -1,3 +1,5 @@ +require 'tempfile' + module Whenever class CommandLine @@ -105,4 +107,4 @@ module Whenever end end -end \ No newline at end of file +end