Class: Pendaxes::Reporter::Text

Inherits:
Pendaxes::Reporter show all
Defined in:
lib/pendaxes/reporters/text.rb

Instance Method Summary collapse

Methods inherited from Pendaxes::Reporter

html?, #initialize

Methods included from Defaults

#defaults

Methods included from Finder

#announce, #find, #inherited

Methods included from PendingManager

#add, #all_pendings, #pendings, #reset

Constructor Details

This class inherits a constructor from Pendaxes::Reporter

Instance Method Details

#reportObject

[View source]

6
7
8
9
10
# File 'lib/pendaxes/reporters/text.rb', line 6

def report
  pendings.sort_by{|x| x[:commit][:at] - Time.now }.map {|pending|
    "* #{pending[:example][:file]}:#{pending[:example][:line]} - #{pending[:example][:message]} (@ #{pending[:commit][:sha]} #{pending[:commit][:at]})"
  }.join("\n")
end