lib/spiderfw/templates/layout.rb in spiderfw-0.6.18 vs lib/spiderfw/templates/layout.rb in spiderfw-0.6.19

- old
+ new

@@ -231,11 +231,11 @@ version = 0 curr = Dir.glob(pub_dest+"/._#{name}.*.js") unless curr.empty? curr.each do |f| - name = File.basename(f) - if name =~ /(\d+)\.js$/ + currname = File.basename(f) + if currname =~ /(\d+)\.js$/ version = $1.to_i if $1.to_i > version File.unlink(f) end end end