diff options
Diffstat (limited to 'lib/sisu/v2/manifest.rb')
-rw-r--r-- | lib/sisu/v2/manifest.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sisu/v2/manifest.rb b/lib/sisu/v2/manifest.rb index 85881263..c8dd3753 100644 --- a/lib/sisu/v2/manifest.rb +++ b/lib/sisu/v2/manifest.rb @@ -83,11 +83,13 @@ module SiSU_Manifest xbrowser=@env.program.web_browser browser=@env.program.console_web_browser webserv_url=@env.path.url.output_tell - url_html="#{webserv_url}/#{@md.fnb}/#{@md.fn[:manifest]}" - tell=SiSU_Screen::Ansi.new(@opt.cmd,'Manifest',"#{xbrowser} #{url_html}") - tell.green_hi_blue unless @opt.cmd =~/q/ - tell=SiSU_Screen::Ansi.new(@opt.cmd,"#{browser} #{url_html}") - tell.grey_tab if @opt.cmd =~/v/i + unless @opt.cmd =~/q/ + url_html="#{webserv_url}/#{@md.fnb}/#{@md.fn[:manifest]}" + @opt.cmd=~/[MVvz]/ \ + ? SiSU_Screen::Ansi.new(@opt.cmd,'Manifest',"#{xbrowser} #{url_html}").green_hi_blue \ + : SiSU_Screen::Ansi.new(@opt.cmd,'Manifest',@opt.fns).green_title_hi + SiSU_Screen::Ansi.new(@opt.cmd,"#{browser} #{url_html}").grey_tab if @opt.cmd =~/v/i + end data=SiSU_HTML::Source::Html_environment.new(@particulars).tuned_file_instructions Output_Info.new(@md).check_output(data) rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error @@ -134,8 +136,7 @@ module SiSU_Manifest dgst =if @dg =~/^sha(?:2|256)$/; sys.sha256("#{@base_path_src}/#{file}") else sys.md5("#{@base_path_src}/#{file}") end - tell=SiSU_Screen::Ansi.new(@md.cmd,"#{dgst[1]} #{file}") - tell.warn if @md.cmd =~/[vVM]/ + SiSU_Screen::Ansi.new(@md.cmd,"#{dgst[1]} #{file}").warn if @md.cmd =~/[vVM]/ size=(File.size("#{@base_path_src}/#{file}")/1024.00).to_s kb=/([0-9]+\.[0-9]{0,1})/m.match(size)[1] @manifest[:txt] << "#{file} #{id} #{kb}\n" @@ -147,8 +148,7 @@ module SiSU_Manifest dgst =if @dg =~/^sha(?:2|256)$/; sys.sha256("#{@base_path_pod}/#{file}") else sys.md5("#{@base_path_pod}/#{file}") end - tell=SiSU_Screen::Ansi.new(@md.cmd,"#{dgst[1]} #{file}") - tell.warn if @md.cmd =~/[vVM]/ + SiSU_Screen::Ansi.new(@md.cmd,"#{dgst[1]} #{file}").warn if @md.cmd =~/[vVM]/ size=(File.size("#{@base_path_pod}/#{file}")/1024.00).to_s kb=/([0-9]+\.[0-9]{0,1})/m.match(size)[1] @manifest[:txt] << "#{file} #{id} #{kb}\n" @@ -196,7 +196,7 @@ module SiSU_Manifest summarize(id,file,img) end if FileTest.file?("#{@base_path}/#{@md.fn[:book_index]}")==true - id,file='HTML, index',@md.fn[:book_index] + id,file='HTML, (book type) index',@md.fn[:book_index] summarize(id,file) end if FileTest.file?("#{@base_path}/#{@md.fn[:concordance]}")==true |