lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.38 vs lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.39

- old
+ new

@@ -18,15 +18,15 @@ end def info message = filename.ljust(35) if disabled? - message += "disabled" + message += "-disabled-" elsif self.respond_to?(:url_info) message += url_info elsif path.to_s != plugin_path - shortpath = File.join(Plugins.custom_dir, dir) + shortpath = File.join(Plugins.custom_dir.sub(Dir.pwd,''), dir).sub('/','') message += "from: #{shortpath}/#{filename}" end " - #{message}" end @@ -79,9 +79,10 @@ if target_dir target_dir = File.join(target_dir, base) else target_dir = user_dir end + FileUtils.mkdir_p File.join(target_dir, File.dirname(file)) FileUtils.cp plugin_path, File.join(target_dir, file) target_dir.sub!(Dir.pwd+'/', '') "+ ".green + "#{File.join(target_dir, filename)}" end