From 2cf222a23dfda7fb35b03ffeb4438eabbac7ec90 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 25 Jun 2013 19:29:19 -0400 Subject: v4 v5: "general code cleaning" fix --- lib/sisu/v4/dal_expand_insertions.rb | 28 ++++++++++++++-------------- lib/sisu/v5/dal_expand_insertions.rb | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v4/dal_expand_insertions.rb b/lib/sisu/v4/dal_expand_insertions.rb index b8972489..9a242b28 100644 --- a/lib/sisu/v4/dal_expand_insertions.rb +++ b/lib/sisu/v4/dal_expand_insertions.rb @@ -154,7 +154,7 @@ module SiSU_DAL_Insertions "#{@base_path}/src/#{@src}" end def sisupod - "#{@base_path}/pod/#{@src}.zip" + "#{@base_path}/src/#{@src}.zip" end self end @@ -204,7 +204,7 @@ module SiSU_DAL_Insertions "#{@base_path}/src/#{@src}" end def sisupod - "#{@base_path}/pod/#{@src}.zip" + "#{@base_path}/src/#{@src}.zip" end self end @@ -274,6 +274,7 @@ module SiSU_DAL_Insertions and para =~/\{(?:~\^\s+)?(.+?)\s\[(?:\d(?:[sS]*))\]\}(?:\.\.\/\S+?\/|\S+?\.ss[tm]\b)/ manifest=nil @u=SiSU_Env::InfoEnv.new.url + m_cmd='' if defined? @u.remote if /(?.+?)\{(?.+?)\s\[(?\d[sS]*)\]\}(?(?\S+?)\.ss[tm]\b)(?.*)/m =~ para m_pre=m_pre.strip @@ -289,10 +290,9 @@ module SiSU_DAL_Insertions if /\{(?:~\^\s+)?(?.+?)\s\[(?\d[sS]*)\]\}\.\.\/(?\S+?)\/(?\s+#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]})?/ =~ para end end - lnk={} - case @md.opt.dir_structure_by + lnk=case @md.opt.dir_structure_by when :language - lnk={ + { manifest: by_language(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_language(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_language(m_linked_doc,m_linked_doc_lang).html_doc, @@ -306,11 +306,11 @@ module SiSU_DAL_Insertions txt: by_language(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_language(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_language(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_language(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_language(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_language(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_language(m_linked_doc,m_linked_doc_lang,m_source).source, } when :filetype - lnk={ + { manifest: by_filetype(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_filetype(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_filetype(m_linked_doc,m_linked_doc_lang).html_doc, @@ -324,11 +324,11 @@ module SiSU_DAL_Insertions txt: by_filetype(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_filetype(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_filetype(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_filetype(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_filetype(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_filetype(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_filetype(m_linked_doc,m_linked_doc_lang,m_source).source, } else - lnk={ + { manifest: by_filename(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_filename(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_filename(m_linked_doc,m_linked_doc_lang).html_doc, @@ -342,13 +342,13 @@ module SiSU_DAL_Insertions txt: by_filename(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_filename(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_filename(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_filename(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_filename(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_filename(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_filename(m_linked_doc,m_linked_doc_lang,m_source).source, } end linked_title="#{m_pre}{#{m_txt} }#{lnk[:manifest]}#{m_note}\n\n" tuned_file_tmp << linked_title - output_filetypes=output_filetypes_in_cmd(cmd,lnk) + output_filetypes=output_filetypes_in_cmd(m_cmd,lnk) output_filetypes[:gen].each do |o_f| describe = o_f if describe diff --git a/lib/sisu/v5/dal_expand_insertions.rb b/lib/sisu/v5/dal_expand_insertions.rb index b29bca6b..77e4934c 100644 --- a/lib/sisu/v5/dal_expand_insertions.rb +++ b/lib/sisu/v5/dal_expand_insertions.rb @@ -154,7 +154,7 @@ module SiSU_DAL_Insertions "#{@base_path}/src/#{@src}" end def sisupod - "#{@base_path}/pod/#{@src}.zip" + "#{@base_path}/src/#{@src}.zip" end self end @@ -204,7 +204,7 @@ module SiSU_DAL_Insertions "#{@base_path}/src/#{@src}" end def sisupod - "#{@base_path}/pod/#{@src}.zip" + "#{@base_path}/src/#{@src}.zip" end self end @@ -274,6 +274,7 @@ module SiSU_DAL_Insertions and para =~/\{(?:~\^\s+)?(.+?)\s\[(?:\d(?:[sS]*))\]\}(?:\.\.\/\S+?\/|\S+?\.ss[tm]\b)/ manifest=nil @u=SiSU_Env::InfoEnv.new.url + m_cmd='' if defined? @u.remote if /(?.+?)\{(?.+?)\s\[(?\d[sS]*)\]\}(?(?\S+?)\.ss[tm]\b)(?.*)/m =~ para m_pre=m_pre.strip @@ -289,10 +290,9 @@ module SiSU_DAL_Insertions if /\{(?:~\^\s+)?(?.+?)\s\[(?\d[sS]*)\]\}\.\.\/(?\S+?)\/(?\s+#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]})?/ =~ para end end - lnk={} - case @md.opt.dir_structure_by + lnk=case @md.opt.dir_structure_by when :language - lnk={ + { manifest: by_language(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_language(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_language(m_linked_doc,m_linked_doc_lang).html_doc, @@ -306,11 +306,11 @@ module SiSU_DAL_Insertions txt: by_language(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_language(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_language(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_language(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_language(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_language(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_language(m_linked_doc,m_linked_doc_lang,m_source).source, } when :filetype - lnk={ + { manifest: by_filetype(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_filetype(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_filetype(m_linked_doc,m_linked_doc_lang).html_doc, @@ -324,11 +324,11 @@ module SiSU_DAL_Insertions txt: by_filetype(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_filetype(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_filetype(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_filetype(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_filetype(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_filetype(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_filetype(m_linked_doc,m_linked_doc_lang,m_source).source, } else - lnk={ + { manifest: by_filename(m_linked_doc,m_linked_doc_lang).manifest, html_toc: by_filename(m_linked_doc,m_linked_doc_lang).html_toc, html_doc: by_filename(m_linked_doc,m_linked_doc_lang).html_doc, @@ -342,13 +342,13 @@ module SiSU_DAL_Insertions txt: by_filename(m_linked_doc,m_linked_doc_lang).txt, html_concordance: by_filename(m_linked_doc,m_linked_doc_lang).html_concordance, digest: by_filename(m_linked_doc,m_linked_doc_lang).digest, - sisupod: by_filename(m_linked_doc,m_linked_doc_lang,source).sisupod, - source: by_filename(m_linked_doc,m_linked_doc_lang,source).source, + sisupod: by_filename(m_linked_doc,m_linked_doc_lang,m_source).sisupod, + source: by_filename(m_linked_doc,m_linked_doc_lang,m_source).source, } end linked_title="#{m_pre}{#{m_txt} }#{lnk[:manifest]}#{m_note}\n\n" tuned_file_tmp << linked_title - output_filetypes=output_filetypes_in_cmd(cmd,lnk) + output_filetypes=output_filetypes_in_cmd(m_cmd,lnk) output_filetypes[:gen].each do |o_f| describe = o_f if describe -- cgit v1.2.3