lib/discourse_theme/uploader.rb in discourse_theme-0.3.0 vs lib/discourse_theme/uploader.rb in discourse_theme-0.3.1

- old
+ new

@@ -13,11 +13,11 @@ sgz = Zlib::GzipWriter.new(File.open(gzip, 'wb')) tar = Archive::Tar::Minitar::Output.new(sgz) Dir.chdir(dir + "/../") do Find.find(File.basename(dir)) do |x| - Find.prune if File.basename(x) == "src" - Find.prune if File.basename(x)[0] == ?. + bn = File.basename(x) + Find.prune if bn == "node_modules" || bn == "src" || bn[0] == ?. next if File.directory?(x) Minitar.pack_file(x, tar) end end