aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/hub.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-12-31 13:47:58 +0000
committerRalph Amissah <ralph@amissah.com>2007-12-31 13:52:19 +0000
commit79ec1b334485eb29fc19d8fb13c2e27d238edbb1 (patch)
tree988197b94fc0c042b680335a2026a7eeee9cbd2d /lib/sisu/v0/hub.rb
parentchange primary key indexes to bigint (requested) (diff)
adjustments for ruby1.9 (xmas), in sysenv moved default location of processing directory
sysenv, processing in subdirectory under /tmp/_sisu_processing~ [instead of within home], (subdirectory) named after owner with permissions restricted to owner
Diffstat (limited to 'lib/sisu/v0/hub.rb')
-rw-r--r--lib/sisu/v0/hub.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb
index 475d626a..da1c6324 100644
--- a/lib/sisu/v0/hub.rb
+++ b/lib/sisu/v0/hub.rb
@@ -7,14 +7,14 @@
* Author: Ralph Amissah
* Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007 Ralph Amissah All Rights Reserved.
+ 2007, 2008 Ralph Amissah All Rights Reserved.
* License: GPL 3 or later:
SiSU, a framework for document structuring, publishing and search
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007 Ralph Amissah
+ 2007, 2008 Ralph Amissah
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
@@ -546,8 +546,10 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/
end
end
begin #% select what to do
- require 'jcode'
- $KCODE='UTF8'
+ if RUBY_VERSION < '1.9'
+ require 'jcode'
+ $KCODE='UTF8'
+ end
require "#{SiSU_lib}/options"
require "#{SiSU_lib}/sysenv"
include SiSU_Env