diff options
Diffstat (limited to 'lib/sisu/v3/dal.rb')
-rw-r--r-- | lib/sisu/v3/dal.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/sisu/v3/dal.rb b/lib/sisu/v3/dal.rb index 2475a6ea..5c059677 100644 --- a/lib/sisu/v3/dal.rb +++ b/lib/sisu/v3/dal.rb @@ -114,7 +114,7 @@ module SiSU_DAL dal=[] @@dal_array=[] @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns create_dal rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@@fns).error @@ -128,7 +128,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@dal_array=[] end @@ -144,7 +144,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@idx_arr[:sst]=[] end @@ -160,7 +160,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@idx_arr[:tex]=[] end @@ -176,7 +176,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@idx_arr[:html]=[] end @@ -192,7 +192,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@idx_arr[:xthml]=[] end @@ -208,7 +208,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@map_arr[:nametags]=[] end @@ -224,7 +224,7 @@ module SiSU_DAL unless @@fns==@opt.fns \ or @@fns==@fnx @@fns=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns @@map_arr[:ocn_htmlseg]=[] end @@ -239,12 +239,12 @@ module SiSU_DAL dal_array=[] unless @opt.cmd =~/q/ tell=(@opt.cmd=~/[vVM]/) \ - ? SiSU_Screen::Ansi.new(@opt.cmd,'Document Abstraction') \ + ? SiSU_Screen::Ansi.new(@opt.cmd,'Document Abstraction') : SiSU_Screen::Ansi.new(@opt.cmd,'Document Abstraction',"[#{@opt.f_pth[:lng_is]}] #{@opt.fns}") tell.green_title_hi end fn=(@fnx && @fnx =~/\.ss[tmi]$/) \ - ? @fnx \ + ? @fnx : @opt.fns file_array=@env.read_source_file(fn) file_array.each do |l| @@ -268,7 +268,7 @@ module SiSU_DAL dal=[] dal=if FileTest.file?(@fnm) (RUBY_VERSION < '1.9') \ - ? (File.open(@fnm){ |f| dal=Marshal.load(f)}) \ + ? (File.open(@fnm){ |f| dal=Marshal.load(f)}) : (File.open(@fnm,'r:utf-8'){ |f| dal=Marshal.load(f)}) else SiSU_DAL::Source.new(@opt).create_dal end @@ -277,7 +277,7 @@ module SiSU_DAL dal=[] dal=if FileTest.file?(@fnc) (RUBY_VERSION < '1.9') \ - ? (File.open(@fnc){ |f| dal=Marshal.load(f)}) \ + ? (File.open(@fnc){ |f| dal=Marshal.load(f)}) : (File.open(@fnc,'r:utf-8'){ |f| dal=Marshal.load(f)}) else SiSU_DAL::Source.new(@opt).create_dal end @@ -286,7 +286,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@idx_sst) (RUBY_VERSION < '1.9') \ - ? (File.open(@idx_sst){ |f| m=Marshal.load(f)}) \ + ? (File.open(@idx_sst){ |f| m=Marshal.load(f)}) : (File.open(@idx_sst,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end @@ -295,7 +295,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@idx_tex) (RUBY_VERSION < '1.9') \ - ? (File.open(@idx_tex){ |f| m=Marshal.load(f)}) \ + ? (File.open(@idx_tex){ |f| m=Marshal.load(f)}) : (File.open(@idx_tex,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end @@ -304,7 +304,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@idx_html) (RUBY_VERSION < '1.9') \ - ? (File.open(@idx_html){ |f| m=Marshal.load(f)}) \ + ? (File.open(@idx_html){ |f| m=Marshal.load(f)}) : (File.open(@idx_html,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end @@ -313,7 +313,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@idx_xhtml) (RUBY_VERSION < '1.9') \ - ? (File.open(@idx_xhtml){ |f| m=Marshal.load(f)}) \ + ? (File.open(@idx_xhtml){ |f| m=Marshal.load(f)}) : (File.open(@idx_xhtml,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end @@ -322,7 +322,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@map_nametags) (RUBY_VERSION < '1.9') \ - ? (File.open(@map_nametags){ |f| m=Marshal.load(f)}) \ + ? (File.open(@map_nametags){ |f| m=Marshal.load(f)}) : (File.open(@map_nametags,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end @@ -331,7 +331,7 @@ module SiSU_DAL m=[] m=if FileTest.file?(@map_ocn_htmlseg) (RUBY_VERSION < '1.9') \ - ? (File.open(@map_ocn_htmlseg){ |f| m=Marshal.load(f)}) \ + ? (File.open(@map_ocn_htmlseg){ |f| m=Marshal.load(f)}) : (File.open(@map_ocn_htmlseg,'r:utf-8'){ |f| m=Marshal.load(f)}) else nil end |