lib/dagger/generator/require_name.rb in ruby-dagger-0.1.0 vs lib/dagger/generator/require_name.rb in ruby-dagger-0.1.1
- old
+ new
@@ -8,10 +8,10 @@
# - require_name: regexp
# - ...
class RequireName < Dagger::Generator
def process(regexps)
string = dictionary['_meta.name']
- enumerable(regexps).any? do |regexp|
+ stop unless enumerable(regexps).any? do |regexp|
::Regexp.new(regexp).match?(string)
end
end
end
end