lib/linner/archive.rb in linner-0.8.0 vs lib/linner/archive.rb in linner-0.8.1

- old
+ new

@@ -6,11 +6,11 @@ class << self def tar(glob, dest) archived = StringIO.new Gem::Package::TarWriter.new(archived) do |tar| Dir[glob].each do |file| + paths = Linner.env.paths mode = File.stat(file).mode - paths = Dir[glob.sub(/\*.*/, "")] relative_file = file.gsub /^#{paths.join("|")}\/?/, "" if File.directory?(file) tar.mkdir relative_file, mode else tar.add_file relative_file, mode do |tf|