bantic-integrity 0.1.4.1 → 0.1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/integrity.gemspec +1 -1
  2. data/views/home.haml +5 -5
  3. metadata +1 -1
data/integrity.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{integrity}
3
- s.version = "0.1.4.1"
3
+ s.version = "0.1.4.2"
4
4
 
5
5
 
6
6
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
data/views/home.haml CHANGED
@@ -11,16 +11,16 @@
11
11
  %li{ :class => cycle("even", "odd") + (project.building? ? ' building' : '') + (project.last_build ? (project.last_build.successful? ? ' success' : ' failed') : '') }
12
12
  %a{ :href => project_url(project) }&= project.name
13
13
  .meta
14
+ - last_build = project.last_build
15
+ - short_commit_identifier = last_build ? last_build.short_commit_identifier : "unknown commit"
16
+ - commit_message = last_build ? last_build.commit_message : "unknown commit message"
17
+ - shortened_commit_message = commit_message ? commit_message.slice(0,40) + "..." : "unknown commit message"
14
18
  - if project.building?
15
- - last_build = project.last_build
16
- - short_commit_identifier = last_build ? last_build.short_commit_identifier : "unknown commit"
17
- - commit_message = last_build ? last_build.commit_message : "unknown commit message"
18
- - shortened_commit_message = commit_message ? commit_message.slice(0,40) + "..." : "unknown commit message"
19
19
  = "Building #{short_commit_identifier} (#{shortened_commit_message}) for #{pretty_time_since(project.started_build_at)}"
20
20
  - elsif project.last_build.nil?
21
21
  Never built yet
22
22
  - else
23
- = "Built #{project.last_build.short_commit_identifier}"
23
+ = "Built #{short_commit_identifier} (#{shortened_commit_message}) "
24
24
  = project.last_build.successful? ? "successfully" : "and failed"
25
25
  %p#new
26
26
  %a{ :href => "/new" } Add a new project
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bantic-integrity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.1
4
+ version: 0.1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Nicol\xC3\xA1s Sanguinetti"