middleman 0.10.9 → 0.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/mm-server +17 -0
  3. data/middleman.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.9
1
+ 0.10.10
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{middleman}
8
- s.version = "0.10.9"
8
+ s.version = "0.10.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Reynolds"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.9
4
+ version: 0.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds