Merge pull request #1205 from bhollis/lazy-v3

Avoid loading middleman-core unless needed (v3)
This commit is contained in:
Thomas Reynolds 2014-03-14 09:30:16 -07:00
commit 485cf1aed0
2 changed files with 3 additions and 4 deletions

View file

@ -24,7 +24,6 @@ platforms :ruby do
gem 'therubyracer'
gem 'redcarpet', '~> 3.1'
gem 'pry', :require => false, :group => :development
gem 'pry-debugger', :require => false, :group => :development
end
platforms :jruby do

View file

@ -1,6 +1,3 @@
require 'middleman-core'
require 'middleman-core/logger'
require 'fileutils'
require 'set'
@ -50,6 +47,9 @@ module Middleman::Cli
raise Thor::Error, 'Error: Could not find a Middleman project config, perhaps you are in the wrong folder?'
end
require 'middleman-core'
require 'middleman-core/logger'
# Use Rack::Test for inspecting a running server for output
require 'rack'
require 'rack/test'