From 80a3a9c82f59814e9cefb697bc9336ee0b2361a7 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sun, 18 Sep 2011 16:10:47 -0700 Subject: [PATCH] think about async sinatra --- lib/middleman/base.rb | 4 ++++ middleman.gemspec | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/middleman/base.rb b/lib/middleman/base.rb index 278c365a..5c1b15dd 100644 --- a/lib/middleman/base.rb +++ b/lib/middleman/base.rb @@ -1,3 +1,5 @@ +# require 'sinatra/synchrony' + require "i18n" require "active_support" @@ -7,6 +9,8 @@ require "active_support/core_ext/class/attribute_accessors" module Middleman::Base class << self def registered(app) + # app.register ::Sinatra::Synchrony + app.extend ClassMethods app.send :include, InstanceMethods diff --git a/middleman.gemspec b/middleman.gemspec index 138d9388..562d2a54 100644 --- a/middleman.gemspec +++ b/middleman.gemspec @@ -43,6 +43,7 @@ eos s.add_dependency("tilt", ["~> 1.3.1"]) s.add_dependency("maruku", ["~> 0.6.0"]) s.add_dependency("sinatra", ["~> 1.2.6"]) + # s.add_dependency("sinatra-synchrony", ["~> 0.2.1"]) s.add_dependency("rack-test", ["~> 0.6.1"]) s.add_dependency("uglifier", ["~> 1.0.0"]) s.add_dependency("slim", ["~> 1.0.1"])