diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-25 19:29:19 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-25 19:29:19 -0400 |
commit | 2cf222a23dfda7fb35b03ffeb4438eabbac7ec90 (patch) | |
tree | 598a3b205bc91c28ac7b944bde995f83a663e87a /lib | |
parent | v4 v5: version & changelog (diff) |
v4 v5: "general code cleaning" fixsisu_4.1.7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v4/dal_expand_insertions.rb | 28 | ||||
-rw-r--r-- | lib/sisu/v5/dal_expand_insertions.rb | 28 |
2 files changed, 28 insertions, 28 deletions
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 /(?<m_pre>.+?)\{(?<m_txt>.+?)\s\[(?<m_cmd>\d[sS]*)\]\}(?<m_source>(?<m_linked_doc>\S+?)\.ss[tm]\b)(?<m_note>.*)/m =~ para m_pre=m_pre.strip @@ -289,10 +290,9 @@ module SiSU_DAL_Insertions if /\{(?:~\^\s+)?(?<m_txt>.+?)\s\[(?<m_cmd>\d[sS]*)\]\}\.\.\/(?<m_linked_doc>\S+?)\/(?<m_note>\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 /(?<m_pre>.+?)\{(?<m_txt>.+?)\s\[(?<m_cmd>\d[sS]*)\]\}(?<m_source>(?<m_linked_doc>\S+?)\.ss[tm]\b)(?<m_note>.*)/m =~ para m_pre=m_pre.strip @@ -289,10 +290,9 @@ module SiSU_DAL_Insertions if /\{(?:~\^\s+)?(?<m_txt>.+?)\s\[(?<m_cmd>\d[sS]*)\]\}\.\.\/(?<m_linked_doc>\S+?)\/(?<m_note>\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 |