lib/view.rb in runeblog-0.1.15 vs lib/view.rb in runeblog-0.1.16
- old
+ new
@@ -32,15 +32,12 @@
end
def files(recent = false)
vdir = dir()
files = [index()]
-debug "Looking in #{vdir}"
others = Dir.entries(vdir).grep(/^\d\d\d\d/)
files += others.map {|x| "#{vdir}/#{x}" }
-debug "Found #{files.inspect}"
files.reject! {|f| ! recent?(f) } if recent
-debug "Now files = #{files.inspect}"
files
end
def can_publish?
@can_publish