From 0533bc4209340070b8af5ca4d3ed9068933b6062 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 25 Feb 2014 22:28:06 -0800 Subject: [PATCH] Be quiet about missing extras when middleman-core is used alone --- middleman-core/lib/middleman-core/core_extensions.rb | 1 - middleman-core/lib/middleman-core/renderers/markdown.rb | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions.rb b/middleman-core/lib/middleman-core/core_extensions.rb index 34f1cde3..45471877 100644 --- a/middleman-core/lib/middleman-core/core_extensions.rb +++ b/middleman-core/lib/middleman-core/core_extensions.rb @@ -35,7 +35,6 @@ require 'middleman-more/core_extensions/i18n' begin require 'middleman-more/core_extensions/compass' rescue LoadError - $stderr.puts "Compass not installed: #{$!}" end ### diff --git a/middleman-core/lib/middleman-core/renderers/markdown.rb b/middleman-core/lib/middleman-core/renderers/markdown.rb index 61e22b17..77c3e3fd 100644 --- a/middleman-core/lib/middleman-core/renderers/markdown.rb +++ b/middleman-core/lib/middleman-core/renderers/markdown.rb @@ -49,7 +49,11 @@ module Middleman ::Tilt.prefer(markdown_engine_klass, *markdown_exts) end rescue LoadError - logger.warn "Requested Markdown engine (#{config[:markdown_engine]}) not found. Maybe the gem needs to be installed and required?" + # If they just left it at the default engine and don't happen to have it, + # then they're using middleman-core bare and we shouldn't bother them. + if config.setting(:markdown_engine).value_set? + logger.warn "Requested Markdown engine (#{config[:markdown_engine]}) not found. Maybe the gem needs to be installed and required?" + end end end end