middleman 0.10.9 → 0.10.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/mm-server +17 -0
- data/middleman.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.10
|
data/bin/mm-server
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
# Non-blocking site rebuilding
|
4
|
+
trap("TSTP") do
|
5
|
+
fork do
|
6
|
+
require "open3"
|
7
|
+
first_run = true
|
8
|
+
Open3.popen3(%Q{cd "#{Dir.pwd}" && mm-build | grep FORCED}) do |stdin, stdout, stderr|
|
9
|
+
puts "\n== Building the site..."
|
10
|
+
stdout.readlines.each do |l|
|
11
|
+
puts "== Updated:" if first_run
|
12
|
+
puts " " + l.split("[FORCED]").last.chomp
|
13
|
+
first_run = false
|
14
|
+
end
|
15
|
+
puts "== Build complete"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
3
20
|
require 'optparse'
|
4
21
|
|
5
22
|
# Require Middleman
|
data/middleman.gemspec
CHANGED