lib/guard/dsl_describer.rb in guard-2.7.1 vs lib/guard/dsl_describer.rb in guard-2.7.2
- old
+ new
@@ -33,14 +33,16 @@
# those that are currently used in your `Guardfile`.
#
# @see CLI#list
#
def list
+ _evaluate_guardfile
names = ::Guard::PluginUtil.plugin_names.sort.uniq
final_rows = names.inject([]) do |rows, name|
+ used = ::Guard.plugins(name).any?
rows << {
Plugin: name.capitalize,
- Guardfile: ::Guard.plugins(name) ? "✔" : "✘"
+ Guardfile: used ? "✔" : "✘"
}
end
Formatador.display_compact_table(final_rows, [:Plugin, :Guardfile])
end