lib/view.rb in runeblog-0.1.75 vs lib/view.rb in runeblog-0.1.76

- old
+ new

@@ -1,7 +1,8 @@ require 'helpers-blog' -require 'runeblog' +# require 'runeblog' +require 'global' class RuneBlog::View attr_reader :name, :state attr_accessor :publisher @@ -37,20 +38,16 @@ def publishable_files vdir = dir() files = [local_index()] others = Dir.entries(vdir + "/generated").grep(/^\d\d\d\d/).map {|x| "#{vdir}/generated/#{x}" } -STDERR.puts "-- publishable: others = #{others.inspect}" deep_assets = Dir["#{vdir}/themes/standard/assets/*"] -# Do this at view creation - deep_assets.each do |file| + deep_assets.each do |file| # Do this at view creation cmd = "cp #{file} #{vdir}/assets" -STDERR.puts "-- cmd = #{cmd}" system(cmd) end assets = Dir.entries("#{vdir}/assets") - %w[. ..] assets.map! {|x| "#{vdir}/assets/#{x}" } -STDERR.puts "-- publishable: assets = #{assets.inspect}" assets.reject! {|x| File.directory?(x) } # assets.reject! {|x| ! recent?(x) } files = files + others all = files.dup dirty = files.reject {|f| ! recent?(f) }