lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.rc.34 vs lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.rc.35

- old
+ new

@@ -131,11 +131,11 @@ def remove_jekyll_assets(files) files.each {|f| f.remove_jekyll_asset } end def include(file) - @includes.find{|i| i.filename == file }.path + Pathname.new(@includes.find{|i| i.filename == file }.path) end private def get_paths(files) @@ -384,10 +384,10 @@ end def glob_assets(dir) return [] unless Dir.exist? dir Find.find(dir).to_a.reject do |file| - File.directory?(file) || File.basename(file) =~ /^\./ + File.directory?(file) || File.basename(file).start_with?('.') end end def css @css.reject(&:disabled?).compact