From da82e36f250ca4ef258aa637285e555a91e05418 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 6 May 2012 23:52:26 -0400 Subject: v3: qrcode, fixes * ensure manifest is run * urls fix --- lib/sisu/v3/options.rb | 10 +++++----- lib/sisu/v3/urls.rb | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb index 0876604d..0af13902 100644 --- a/lib/sisu/v3/options.rb +++ b/lib/sisu/v3/options.rb @@ -397,14 +397,14 @@ module SiSU_Commandline end extra='' if cmd !~/[mn]/ - extra+=if cmd =~/[abegHhIiNOoPpTtwXxyz]/ \ + extra+=if cmd =~/[abegHhIiNOoPpQTtwXxyz]/ \ and cmd !~/[mn]/ 'm' #% add dal elsif ((cmd =~/[Dd]/ \ or (mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/)) \ and mod.inspect !~/(?:remove|(?:(?:re)?create(?:all)?|dropall|drop)$)/) \ and cmd !~/[mn]/ - 'm' #% add dal + 'm' #% add dal else '' end end @@ -416,14 +416,14 @@ module SiSU_Commandline end end if cmd !~/y/ - extra+=if cmd =~/[abeHhIiNopsSstwXxz]/ \ + extra+=if cmd =~/[abeHhIiNopQsSstwXxz]/ \ and cmd !~/y/ - 'ym' #% add manifest + 'ym' #% add manifest elsif (cmd =~/[Dd]/ \ or mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/) \ and files[0] !~/^remove$/ \ and cmd !~/y/ - 'ym' #% add manifest + 'ym' #% add manifest else '' end end diff --git a/lib/sisu/v3/urls.rb b/lib/sisu/v3/urls.rb index 78650a42..d68334e2 100644 --- a/lib/sisu/v3/urls.rb +++ b/lib/sisu/v3/urls.rb @@ -165,14 +165,14 @@ module SiSU_Urls def concordance(x) SiSU_Screen::Ansi.new(@opt.cmd,"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.html_concordance.dir}/#{@md.file.base_filename.html_concordance}").result end - def qrcode(x) - SiSU_Screen::Ansi.new(@opt.cmd,"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.manifest.dir}/#{@md.file.base_filename.manifest}").result - end def manifest(x) SiSU_Screen::Ansi.new(@opt.cmd,"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.manifest.dir}/#{@md.file.base_filename.manifest}").result end self end + def qrcode(x) + SiSU_Screen::Ansi.new(@opt.cmd,"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.manifest.dir}/#{@md.file.base_filename.manifest}").result + end def odt(x) SiSU_Screen::Ansi.new(@opt.cmd,"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.odf_viewer} file://#{@md.file.output_path.odt.dir}/#{@md.file.base_filename.odt}").result end -- cgit v1.2.3