From 1d5ae59db98f53976960f6446113ab75cc6ed8b1 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sun, 24 Aug 2014 17:35:02 -0700 Subject: [PATCH] Lazy isn't in 1.9.3 :( --- middleman-core/lib/middleman-core/sources.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/middleman-core/lib/middleman-core/sources.rb b/middleman-core/lib/middleman-core/sources.rb index b8050b5f..ca58f656 100644 --- a/middleman-core/lib/middleman-core/sources.rb +++ b/middleman-core/lib/middleman-core/sources.rb @@ -168,7 +168,6 @@ module Middleman Contract Symbol, String, Maybe[Bool] => Maybe[SourceFile] def find(type, path, glob=false) watchers - .lazy .select { |d| d.type == type } .map { |d| d.find(path, glob) } .reject { |d| d.nil? } @@ -183,7 +182,6 @@ module Middleman Contract Symbol, String => Bool def exists?(type, path) watchers - .lazy .select { |d| d.type == type } .any? { |d| d.exists?(path) } end @@ -196,7 +194,6 @@ module Middleman Contract Symbol, String => Maybe[HANDLER] def watcher_for_path(type, path) watchers - .lazy .select { |d| d.type == type } .find { |d| d.exists?(path) } end