diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2007-05-23 23:36:19 +0100 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2007-05-23 23:36:19 +0100 |
commit | c94f591946a0436767f2fa0637f1cfd2c22ff3d6 (patch) | |
tree | 2e5c006a2b5c0d90e668d7563b0f4ef132a0603f /lib/sisu/0.52/dal.rb | |
parent | sisu-0.52.7 + md5s (diff) |
restrict use to ruby1.8, plus some minor housekeeping changes file exist? instead of exists?
Diffstat (limited to 'lib/sisu/0.52/dal.rb')
-rw-r--r-- | lib/sisu/0.52/dal.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/0.52/dal.rb b/lib/sisu/0.52/dal.rb index 43a4f015..130dbf87 100644 --- a/lib/sisu/0.52/dal.rb +++ b/lib/sisu/0.52/dal.rb @@ -278,9 +278,9 @@ module SiSU_DAL path_image=[dir.path.image_source_local_tex,dir.path.image_source_remote_tex,dir.path.image_source_tex] image_path=nil path_image.each do |image_path| - break if FileTest.exists?("#{image_path}/#{image}") + break if FileTest.exist?("#{image_path}/#{image}") end - if FileTest.exists?("#{image_path}/#{image}") + if FileTest.exist?("#{image_path}/#{image}") img=Magick::ImageList.new("#{image_path}/#{image}") img_col,img_row=img.columns,img.rows if img_col > img_row #landscape @@ -997,7 +997,7 @@ module SiSU_DAL else '' end para_plus_en << para_tail - para_plus_en.each {|e_p| en_and_para_digest << SiSU_DAL::Make.new(@md,e_p).endnote_digest } + en_and_para_digest << SiSU_DAL::Make.new(@md,para_plus_en).endnote_digest para_new=en_and_para_digest.join(' ') @tuned << para_new + '<' + digest_strip + ':' + digest_all + '>' unless para.nil? else @tuned << para + '<' + digest_strip + ':' + digest_all + '>' unless para.nil? |