bwl21/ZSUPP_Proo-lib

Does not work on ruby 1.9.3

Closed this issue · 1 comments

[INFO] compileDocuments: 2013-02-09 16:03:46: combining the input files
/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/110_gzhb/30_Bearbeitung/ZSUPP_Proo-lib/lib/class.proolib.rb:516:in generateDocument': undefined methodeach' for #String:0x007f8bba4081f0 (NoMethodError)
from compileDocuments.rb:93:in `

'

Root cause is that snippets is an array.but

    a=["hugo"];b="foobar/#{a}"

yields

   1.8.7: "foobar/hugo"
   1.9.3: "foobar[\"hugo\"]" 

Problem ocurs in line 246 of class.proolib.rb

    if snippets.nil?
        @snippets       = nil 
    else
        @snippets       = File.expand_path("#{basePath}/#{snippets}")
    end

now fixed. Comments were occasionally noted in #9 sorry