Sha256: 77a3632596ac9bfdc580d780534e1e95770cb20fda9b84119093069948576047
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
class Build module Messages def status_message if pending? 'Pending' elsif prev = previous_on_branch if passed? prev.passed? ? 'Passed' : 'Fixed' else prev.passed? ? 'Broken' : 'Still Failing' end else passed? ? 'Passed' : 'Failed' end end def human_status_message case status_message when "Pending"; "The build is pending." when "Passed"; "The build passed." when "Failed"; "The build failed." when "Fixed"; "The build was fixed." when "Broken"; "The build was broken." when "Still Failing"; "The build is still failing." else status_message end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/travis/model/build/messages.rb |