samson_hipchat 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b956459c4ce7f24fa663ecc2b3e2c207990c427
4
- data.tar.gz: caa7ecdafe0ab075686233ca72d226643e64ba3e
3
+ metadata.gz: e4089f9775ec662aaa1c3a623952aa17b36afaae
4
+ data.tar.gz: b33b164e0baf13621ee53b77e45742a99d4282f8
5
5
  SHA512:
6
- metadata.gz: 0177715821069af1deccc525fbedc4b9870e905f5b0b2525561824c93ddec0e5e3964a60510bda6096561014c6c89a57b5eb51bbe60b478e20986445e68c7464
7
- data.tar.gz: 28caebb1130525110212714bb0e440849d75364e7a8c9c6dade70647a0156369558a4ca44262b2b71b84e6e1eaf3e1db9fc7da9a21a7aa65a69d2a1e9098d1c8
6
+ metadata.gz: f4c589cad619a17292590b8de8d953febebebbada564351df97f7b482226598cc4663aa46d6d057a460df1b6c34a13bd0570b83bd83a8d3343d49b9b63686319
7
+ data.tar.gz: 37371f8c03c101a82fd327a025e091cb1a1234c57821a84ab3600f603ad267e14eac15d12f62aa6bba8ca841c91fe401098c9bd6bfc0167510109ae2dea230ae
@@ -58,7 +58,7 @@ class HipchatNotification
58
58
  if @is_multi_message
59
59
  subject = "#{@user.name} is <a href='#{deploy_url}'>deploying</a> <strong>#{@project.name}</strong> to <strong>#{@stage.name}</strong><br>"
60
60
 
61
- subject = "#{@user.name} successfully deployed <strong>#{@project.name}</strong> @<a href='#{diff_url}'>#{@deploy.commit}</a> to <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
61
+ subject = "#{@user.name} successfully deployed <strong>#{@project.name}</strong> @<a href='#{diff_url}'>#{sha}</a> to <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
62
62
 
63
63
  subject = "#{@user.name} failed to <a href='#{deploy_url}'>deployed</a> <strong>#{@project.name}</strong> to <strong>#{@stage.name}</strong><br>" if @deploy.job.failed? || @deploy.job.errored?
64
64
 
@@ -66,7 +66,7 @@ class HipchatNotification
66
66
 
67
67
  subject
68
68
  else
69
- subject = "#{@user.name} successfully deployed <strong>#{@project.name}</strong> @ <a href='#{diff_url}'>#{@deploy.commit}</a> to <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
69
+ subject = "#{@user.name} successfully deployed <strong>#{@project.name}</strong> @ <a href='#{diff_url}'>#{sha}</a> to <strong>#{@stage.name}</strong><br>" if @deploy.job.succeeded?
70
70
  end
71
71
  end
72
72
 
@@ -85,6 +85,10 @@ class HipchatNotification
85
85
 
86
86
  private
87
87
 
88
+ def sha
89
+ @deploy.commit[0...7]
90
+ end
91
+
88
92
  def color
89
93
  return 'green' if @deploy.job.succeeded?
90
94
  return 'red' if @deploy.job.failed? || @deploy.job.errored?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samson_hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinh Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-30 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hipchat
@@ -59,8 +59,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.4.6
62
+ rubygems_version: 2.4.7
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Samson hipchat integration
66
66
  test_files: []
67
+ has_rdoc: