be9-integrity-twitter 1.0.3 → 1.0.4

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.
@@ -1,8 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
-
3
2
  Gem::Specification.new do |s|
4
3
  s.name = %q{integrity-twitter}
5
- s.version = "1.0.3"
4
+ s.version = "1.0.4"
6
5
 
7
6
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
7
  s.authors = ["Chris Saylor"]
@@ -18,17 +18,13 @@ module Integrity
18
18
  end
19
19
 
20
20
  def message
21
- "#{build_status} | #{project.name}, commit #{build.short_commit_identifier} - [committer: #{build.commit_author.name}]"
21
+ "#{build_status} | #{commit.project.name}, commit #{commit.short_identifier} - [committer: #{commit.author.name}]"
22
22
  end
23
23
 
24
24
  private
25
25
 
26
26
  def build_status
27
- build.successful? ? 'GREEN' : 'FAIL!'
28
- end
29
-
30
- def project
31
- @project ||= build.project
27
+ commit.successful? ? 'GREEN' : 'FAIL!'
32
28
  end
33
29
  end
34
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: be9-integrity-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Saylor