From f09f45a113ebe9dffb65618a53d38f15c4f89d5d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:36:05 -0500 Subject: v3: use rb1.9.2 "require_relative" syntax --- lib/sisu/v3/harvest.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/sisu/v3/harvest.rb') diff --git a/lib/sisu/v3/harvest.rb b/lib/sisu/v3/harvest.rb index 989957bf..117028e2 100644 --- a/lib/sisu/v3/harvest.rb +++ b/lib/sisu/v3/harvest.rb @@ -65,7 +65,7 @@ def help WOK end def css(opt) - require "#{SiSU_lib}/css" # css.rb + require_relative 'css' # css.rb css=SiSU_Style::CSS.new fn_css=SiSU_Env::CSS_default.new style=File.new("#{@env.path.pwd}/#{fn_css.harvest}",'w') @@ -79,17 +79,17 @@ def cases(opt) HARVEST_authors::Songsheet.new(opt).songsheet HARVEST_topics::Songsheet.new(opt).songsheet if opt.cmd.inspect =~/R/ - require "#{SiSU_lib}/remote" # remote.rb + require_relative 'remote' # remote.rb SiSU_Remote::Put.new(opt).rsync_harvest end else help end end -require "#{SiSU_lib}/options" # options.rb -require "#{SiSU_lib}/harvest_topics" # harvest_topics.rb -require "#{SiSU_lib}/harvest_authors" # harvest_authors.rb -require "#{SiSU_lib}/sysenv" # sysenv.rb +require_relative 'options' # options.rb +require_relative 'harvest_topics' # harvest_topics.rb +require_relative 'harvest_authors' # harvest_authors.rb +require_relative 'sysenv' # sysenv.rb include SiSU_Env @env=SiSU_Env::Info_env.new @@the_idx_topics,@@the_idx_authors={},{} -- cgit v1.2.3