lib/nanoc/data_sources/static.rb in nanoc-3.6.7 vs lib/nanoc/data_sources/static.rb in nanoc-3.6.8
- old
+ new
@@ -32,16 +32,16 @@
def items
# Get prefix
prefix = config[:prefix] || 'static'
# Convert filenames to items
- self.all_files_in(prefix).map do |filename|
+ all_files_in(prefix).map do |filename|
attributes = {
:extension => File.extname(filename)[1..-1],
:filename => filename,
}
attributes[:is_hidden] = true unless config[:hide_items] == false
- identifier = filename[(prefix.length+1)..-1] + '/'
+ identifier = filename[(prefix.length + 1)..-1] + '/'
mtime = File.mtime(filename)
checksum = Pathname.new(filename).checksum
Nanoc::Item.new(
filename,