aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-09-01 23:19:49 -0400
committerRalph Amissah <ralph@amissah.com>2014-09-01 23:19:49 -0400
commitc9acb5260b823d1b9de50e237918d38e5e885a5f (patch)
treeef7d82adad7c5f3b4a81f5c336de8c3a181b17cb /lib
parentdebian/control fcgi (alternative for wheezy) (diff)
parentv5 v6: version, touch date (diff)
Merge tag 'sisu_5.6.4' into debian/sid
SiSU 5.6.4
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v5/cgi_sqlite.rb2
-rw-r--r--lib/sisu/v5/html_tune.rb3
-rw-r--r--lib/sisu/v5/manifest.rb1
-rw-r--r--lib/sisu/v5/qrcode.rb1
-rw-r--r--lib/sisu/v5/se_info_env.rb2
-rw-r--r--lib/sisu/v6/cgi_sqlite.rb2
-rw-r--r--lib/sisu/v6/html_tune.rb3
-rw-r--r--lib/sisu/v6/manifest.rb1
-rw-r--r--lib/sisu/v6/qrcode.rb1
-rw-r--r--lib/sisu/v6/se_info_env.rb2
10 files changed, 10 insertions, 8 deletions
diff --git a/lib/sisu/v5/cgi_sqlite.rb b/lib/sisu/v5/cgi_sqlite.rb
index 4644dbc0..9cd91676 100644
--- a/lib/sisu/v5/cgi_sqlite.rb
+++ b/lib/sisu/v5/cgi_sqlite.rb
@@ -112,7 +112,7 @@ module SiSU_CGI_SQLite #% database building doc
serve.each do |x|
f3 << %{ when /#{Db[:name_prefix]}#{x}/ then "#{@env.path.webserv}/#{x}/\#{db_name}"\n}
end
- f3 << %{ else '#{@env.path.webserv}/#{serve[0]}/\#{db_name}'\n end\n}
+ f3 << %{ else "#{@env.path.webserv}/#{serve[0]}/\#{db_name}"\n end\n}
if FileTest.writable?('.')
output=File.open(@cgi_file_name,'w')
output << header0 << header1 << header_desc << header2 << f1 << buttons1 << buttons2 << search_request << search_statement << search_statement_common << search_query1 << @common.pages << search_query2 << @common.tail << @common.main1 << f2 << f3 << dbi_connect << @common.main2 << @common.dir_structure << @common.main3
diff --git a/lib/sisu/v5/html_tune.rb b/lib/sisu/v5/html_tune.rb
index 3e8c2d68..1ccd3cf2 100644
--- a/lib/sisu/v5/html_tune.rb
+++ b/lib/sisu/v5/html_tune.rb
@@ -129,9 +129,8 @@ module SiSU_HTML_Tune
def initialize(data,md)
@data,@md=data,md
@vz=SiSU_Viz::Defaults.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
@sys=SiSU_Env::SystemCall.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
+ @env=SiSU_Env::InfoEnv.new(@md.fns,@md)
@brace_url=SiSU_Viz::Defaults.new.url_decoration
end
def songsheet
diff --git a/lib/sisu/v5/manifest.rb b/lib/sisu/v5/manifest.rb
index 0b4f79a4..f19f8b38 100644
--- a/lib/sisu/v5/manifest.rb
+++ b/lib/sisu/v5/manifest.rb
@@ -189,6 +189,7 @@ module SiSU_Manifest
sys.md5("#{pth}/#{file}")
else
end
+ dgst=dgst ? dgst : [ '', 'n/a' ]
if (@md.opt.act[:verbose][:set]==:on \
|| @md.opt.act[:verbose_plus][:set]==:on \
|| @md.opt.act[:maintenance][:set]==:on)
diff --git a/lib/sisu/v5/qrcode.rb b/lib/sisu/v5/qrcode.rb
index 3a7d9406..448de004 100644
--- a/lib/sisu/v5/qrcode.rb
+++ b/lib/sisu/v5/qrcode.rb
@@ -189,6 +189,7 @@ WOK
else
(sys.sha256("#{pth}/#{file}"))
end
+ dgst=dgst ? dgst : [ '', 'n/a' ]
if (@md.opt.act[:verbose][:set]==:on \
|| @md.opt.act[:verbose_plus][:set]==:on \
|| @md.opt.act[:maintenance][:set]==:on)
diff --git a/lib/sisu/v5/se_info_env.rb b/lib/sisu/v5/se_info_env.rb
index 777644d7..c460195c 100644
--- a/lib/sisu/v5/se_info_env.rb
+++ b/lib/sisu/v5/se_info_env.rb
@@ -1785,7 +1785,7 @@ WOK
path.image_source_include
else
if @@local_image==true
- cmd=@selections.str ? @selections.str : ''
+ cmd=@md.opt.selections.str ? @md.opt.selections.str : ''
SiSU_Screen::Ansi.new(
cmd,
"WARNING - no local image directory or images:",
diff --git a/lib/sisu/v6/cgi_sqlite.rb b/lib/sisu/v6/cgi_sqlite.rb
index 722d9033..8559b7a8 100644
--- a/lib/sisu/v6/cgi_sqlite.rb
+++ b/lib/sisu/v6/cgi_sqlite.rb
@@ -112,7 +112,7 @@ module SiSU_CGI_SQLite #% database building doc
serve.each do |x|
f3 << %{ when /#{Db[:name_prefix]}#{x}/ then "#{@env.path.webserv}/#{x}/\#{db_name}"\n}
end
- f3 << %{ else '#{@env.path.webserv}/#{serve[0]}/\#{db_name}'\n end\n}
+ f3 << %{ else "#{@env.path.webserv}/#{serve[0]}/\#{db_name}"\n end\n}
if FileTest.writable?('.')
output=File.open(@cgi_file_name,'w')
output << header0 << header1 << header_desc << header2 << f1 << buttons1 << buttons2 << search_request << search_statement << search_statement_common << search_query1 << @common.pages << search_query2 << @common.tail << @common.main1 << f2 << f3 << dbi_connect << @common.main2 << @common.dir_structure << @common.main3
diff --git a/lib/sisu/v6/html_tune.rb b/lib/sisu/v6/html_tune.rb
index d9245a30..10b5b964 100644
--- a/lib/sisu/v6/html_tune.rb
+++ b/lib/sisu/v6/html_tune.rb
@@ -129,9 +129,8 @@ module SiSU_HTML_Tune
def initialize(data,md)
@data,@md=data,md
@vz=SiSU_Viz::Defaults.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
@sys=SiSU_Env::SystemCall.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
+ @env=SiSU_Env::InfoEnv.new(@md.fns,@md)
@brace_url=SiSU_Viz::Defaults.new.url_decoration
end
def songsheet
diff --git a/lib/sisu/v6/manifest.rb b/lib/sisu/v6/manifest.rb
index 6f22eefb..a0d4102f 100644
--- a/lib/sisu/v6/manifest.rb
+++ b/lib/sisu/v6/manifest.rb
@@ -189,6 +189,7 @@ module SiSU_Manifest
sys.md5("#{pth}/#{file}")
else
end
+ dgst=dgst ? dgst : [ '', 'n/a' ]
if (@md.opt.act[:verbose][:set]==:on \
|| @md.opt.act[:verbose_plus][:set]==:on \
|| @md.opt.act[:maintenance][:set]==:on)
diff --git a/lib/sisu/v6/qrcode.rb b/lib/sisu/v6/qrcode.rb
index aa31236c..4c752963 100644
--- a/lib/sisu/v6/qrcode.rb
+++ b/lib/sisu/v6/qrcode.rb
@@ -189,6 +189,7 @@ WOK
else
(sys.sha256("#{pth}/#{file}"))
end
+ dgst=dgst ? dgst : [ '', 'n/a' ]
if (@md.opt.act[:verbose][:set]==:on \
|| @md.opt.act[:verbose_plus][:set]==:on \
|| @md.opt.act[:maintenance][:set]==:on)
diff --git a/lib/sisu/v6/se_info_env.rb b/lib/sisu/v6/se_info_env.rb
index abd46542..76e0d17d 100644
--- a/lib/sisu/v6/se_info_env.rb
+++ b/lib/sisu/v6/se_info_env.rb
@@ -1785,7 +1785,7 @@ WOK
path.image_source_include
else
if @@local_image==true
- cmd=@selections.str ? @selections.str : ''
+ cmd=@md.opt.selections.str ? @md.opt.selections.str : ''
SiSU_Screen::Ansi.new(
cmd,
"WARNING - no local image directory or images:",