lib/gepub/resource_builder.rb in gepub-0.6.8.7 vs lib/gepub/resource_builder.rb in gepub-0.6.8.8
- old
+ new
@@ -104,10 +104,10 @@
raise 'linear should be called inside ordered' if (itemref.nil?)
itemref.linear = val
end
def glob(arg)
- files(*Dir.glob(arg))
+ files(*Dir.glob(arg).select{|x| !File.directory?(x)} )
end
def import(conf, args = {})
dir_prefix_org = @dir_prefix
@dir_prefix = args[:dir_prefix] || ""