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 +4 -4
- data/app/models/hipchat_notification.rb +6 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4089f9775ec662aaa1c3a623952aa17b36afaae
|
4
|
+
data.tar.gz: b33b164e0baf13621ee53b77e45742a99d4282f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}'>#{
|
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}'>#{
|
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.
|
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-
|
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.
|
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:
|