lib/rake_dependencies/extractors.rb in rake_dependencies-0.17.1.pre1 vs lib/rake_dependencies/extractors.rb in rake_dependencies-0.17.1.pre2

- old
+ new

@@ -24,14 +24,15 @@ FileUtils.mkdir_p(File.dirname(file_path)) zip_file_entries.extract(entry, file_path) unless File.exist?(file_path) end end if @options[:rename_from] && @options[:rename_to] - FileUtils.mkdir_p(File.dirname(@options[:rename_to])) + FileUtils.mkdir_p( + File.dirname(File.join(@extract_path, @options[:rename_to]))) FileUtils.mv( File.join(@extract_path, @options[:rename_from]), - @options[:rename_to]) + File.join(@extract_path, @options[:rename_to])) end end end class TarGzExtractor @@ -57,13 +58,14 @@ end end end end if @options[:rename_from] && @options[:rename_to] - FileUtils.mkdir_p(File.dirname(@options[:rename_to])) + FileUtils.mkdir_p( + File.dirname(File.join(@extract_path, @options[:rename_to]))) FileUtils.mv( File.join(@extract_path, @options[:rename_from]), - @options[:rename_to]) + File.join(@extract_path, @options[:rename_to])) end end end class UncompressedExtractor