Class: Pendaxes::Reporter::Text
- Inherits:
-
Pendaxes::Reporter
- Object
- Pendaxes::Reporter
- Pendaxes::Reporter::Text
- Defined in:
- lib/pendaxes/reporters/text.rb
Instance Method Summary collapse
Methods inherited from Pendaxes::Reporter
Methods included from Defaults
Methods included from Finder
Methods included from PendingManager
#add, #all_pendings, #pendings, #reset
Constructor Details
This class inherits a constructor from Pendaxes::Reporter
Instance Method Details
#report ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/pendaxes/reporters/text.rb', line 6 def report pendings.group_by{|x| "#{x[:commit][:name]} <#{x[:commit][:email]}>" }.map do |name, pends| lines = pends.sort_by { |pending| pending[:commit][:at] }.map do |pending| "* #{pending[:example][:file]}:#{pending[:example][:line]} - #{pending[:example][:message]} (@ #{pending[:commit][:sha]} #{pending[:commit][:at]})" end.join("\n") "#{name}:\n\n#{lines}" end.join("\n\n") end |