lib/noe/list.rb in noe-1.7.3 vs lib/noe/list.rb in noe-1.7.4

- old
+ new

@@ -27,10 +27,10 @@ def execute(args) unless args.empty? raise Quickl::InvalidArgument, "Needless argument: #{args.join(', ')}" end - tpls = Dir[File.join(templates_dir, '**')].collect{|tpldir| Template.new(tpldir)} + tpls = templates_dir.glob('**').map { |tpldir| Template.new(tpldir) } columns = [:name, :version, :layouts, :summary] data = [ columns ] + tpls.collect{|tpl| begin columns.collect{|col| if col == :layouts