From 12ca8f0cafbf52eccb827889c70e23423b64d190 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Tue, 18 Oct 2011 21:46:01 -0700 Subject: [PATCH 1/2] prep release --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 98a83d98..f2b6c96f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ 2.0.13 ==== middleman build --clean keeps the build directory clean of leftover files +Padrino 0.10.5 and Rack 1.3.5 2.0.12 ==== From 03f17ff551776c293ab4596ffb0569ec07a58ee2 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Tue, 18 Oct 2011 22:03:13 -0700 Subject: [PATCH 2/2] build clean should ignore dotfiles --- CHANGELOG | 4 ++++ lib/middleman/builder.rb | 1 + lib/middleman/version.rb | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f2b6c96f..57d5b9b2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2.0.13.1 +==== +build --clean shouldn't remove dotfiles + 2.0.13 ==== middleman build --clean keeps the build directory clean of leftover files diff --git a/lib/middleman/builder.rb b/lib/middleman/builder.rb index 757ca417..73cb4a59 100644 --- a/lib/middleman/builder.rb +++ b/lib/middleman/builder.rb @@ -68,6 +68,7 @@ module Middleman def queue_current_paths_from(destination) @cleaning_queue = [] Find.find(destination) do |path| + next if path.match(/\/\./) unless path == destination @cleaning_queue << path.sub(destination, destination[/([^\/]+?)$/]) end diff --git a/lib/middleman/version.rb b/lib/middleman/version.rb index 8522387a..0b18ebd6 100644 --- a/lib/middleman/version.rb +++ b/lib/middleman/version.rb @@ -1,3 +1,3 @@ module Middleman - VERSION = "2.0.13" + VERSION = "2.0.13.1" end