lib/xezat/detector/automake.rb in xezat-0.0.4 vs lib/xezat/detector/automake.rb in xezat-0.1.0

- old
+ new

@@ -1,14 +1,11 @@ require 'find' -require 'xezat/detectors' module Xezat module Detector class Automake - DetectorManager::register(:automake, self) - def detect(variables) - Find::find(variables[:S]) do |file| + Find.find(variables[:S]) do |file| return true if file.end_with?('.am') end false end end