travis-surveillance 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,14 +52,14 @@ module Travis
52
52
  t << ["Commit", latest.commit]
53
53
  t << ["Compare URL", latest.compare_url]
54
54
  t << ["Author", latest.author_name]
55
- t << ["Message", latest.message.length > 100 ? "#{latest.message[0..100]} ..." : latest.message]
55
+ t << ["Message", latest.message.length > 80 ? "#{latest.message[0..80]} ..." : latest.message]
56
56
  end
57
57
 
58
58
  print table
59
59
  print "\n\n"
60
60
 
61
61
  table = Terminal::Table.new title: "Build Matrix", headings: ['Job', 'State', 'Duration', 'Runtime', 'ENV'], style: { width: 120 } do |t|
62
- latest.jobs.each do |job|
62
+ latest.jobs.sort_by { |j| j.id }.each do |job|
63
63
  t << [job.number, job.state, job.duration, job.runtime, job.config.env]
64
64
  end
65
65
  end
@@ -72,7 +72,7 @@ module Travis
72
72
  table = Terminal::Table.new :title => "Build History", :headings => ['Build', 'State', 'Branch', 'Message', 'Duration'], style: { width: 120 } do |t|
73
73
  builds.each do |build|
74
74
  next if build == latest
75
- t << [build.number, build.state, build.branch, build.message, build.duration]
75
+ t << [build.number, build.state, build.branch, (build.message.length > 30 ? "#{build.message[0..30]} ..." : build.message), build.duration]
76
76
  end
77
77
  end
78
78
 
@@ -1,5 +1,5 @@
1
1
  module Travis
2
2
  module Surveillance
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis-surveillance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: