woody 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/woody/compiler.rb +3 -0
- data/lib/woody/version.rb +1 -1
- metadata +1 -1
data/lib/woody/compiler.rb
CHANGED
@@ -92,6 +92,9 @@ module Woody
|
|
92
92
|
|
93
93
|
# Purge left over files
|
94
94
|
purge_output(touchedfiles)
|
95
|
+
|
96
|
+
# Remove all empty directories from the output
|
97
|
+
Dir['output/**/*'].select { |d| File.directory? d }.select { |d| (Dir.entries(d) - %w[ . .. ]).empty? }.each { |d| Dir.rmdir d }
|
95
98
|
end
|
96
99
|
|
97
100
|
private
|
data/lib/woody/version.rb
CHANGED