capistrano-releases-notification 0.1.0 → 0.1.1

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: fa672088136acb8b8da1846f01dc9b8453011ae8
4
- data.tar.gz: f199f6bb7662237a6f2e300b31d9d293475cbd82
3
+ metadata.gz: 860533c402ab7319af7cbc33d00e0e109d8f65f6
4
+ data.tar.gz: 3382dfa9d451a1835cd178c2be3abd494717e890
5
5
  SHA512:
6
- metadata.gz: ce2856d5b49130156f19a35115e59adcff1d9e73a0a7808fe7baeea19ac8eb559ecb0a4628f0e5bd19e526ae7d8aae8366c549444921d7f4c40a62d46e3ddd97
7
- data.tar.gz: 8321af42a199270a7049178412fad2467a745e95a3f43ac2cd95d2e39ee953f82cfeff1287ab13483e57f8bf697c4f7d4c9a5df08f7a26b82e1f489b36c99ea7
6
+ metadata.gz: 289553be9c57a3cad5ffd1ec09be6e9019bd8c524eb6919c788763f229ef63b03f4f0365489807b82426b0b7cbbf53cbaeeb3332b12b1eb7ee2d658cb26c21b5
7
+ data.tar.gz: 6b4c14a2824c648df12b63252854e5171327348f920f34183a285e928aad8c94faa22899719a1b983ed4dd9ee6897316e94c9b2ce711401b3ee97a96e09e4011
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Capistrano::Releases::Notification
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/capistrano-releases-notification.svg)](https://badge.fury.io/rb/capistrano-releases-notification)
4
+
3
5
  Notify github releases to slack for Capistrano ver3.
4
6
 
5
7
  ## Installation
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Releases
3
3
  module Notification
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -2,6 +2,7 @@ namespace :release do
2
2
 
3
3
  set :release_notify_channel, ['#general']
4
4
  set :release_notify_mention, []
5
+ set :release_notify_title, fetch(:application)
5
6
 
6
7
  set :release_notify_message, -> {
7
8
  "It has released. #{fetch(:release_notify_mention).join(' ')}"
@@ -21,7 +22,7 @@ namespace :release do
21
22
 
22
23
  attachments = [{
23
24
  color: 'good',
24
- title: fetch(:application),
25
+ title: fetch(:release_notify_title),
25
26
  text: fetch(:release_notify_attachment),
26
27
  }]
27
28
  body = JSON.generate(fetch(:slack_default_body).merge(text: fetch(:release_notify_message), attachments: attachments))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-releases-notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kimromi