lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.rc.28 vs lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.rc.29
- old
+ new
@@ -379,10 +379,10 @@
end
def find_assets(dir)
full_dir = File.join(@assets_path, dir)
glob_assets(full_dir).map do |file|
- file.sub(full_dir+'/', '')
+ file.sub(File.join(full_dir, ''), '')
end
end
def glob_assets(dir)
return [] unless Dir.exist? dir