capistrano-notifications 0.0.5 → 0.0.6

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: ecd38c47887b53f1e1e419160c13e2d164dbc5bc
4
- data.tar.gz: fe040214c02df40fc84dc18f47cd0d1b45333fae
3
+ metadata.gz: 4c83c877ec203f9dbfc69c4a41db0b8a6e265574
4
+ data.tar.gz: 0a0b5108d7ebeb2385c580c43b4256ca52bd9718
5
5
  SHA512:
6
- metadata.gz: 03c1de644a8a6dd184c1103de8698c4aa1f921c017779fc12373704de9c63b519302954016ff0ef4b46cf633bfa134c77342d04ed9e0e552752b1764d8f6afef
7
- data.tar.gz: fa854ebd87465aacf6574f2b70fa340bfe0e852d2089a01abe34115e08120566c3d82e178763dc1f2a38e64d23b27c484ea37a49147730bc374f734b0a61d85b
6
+ metadata.gz: 8e8255bc6d0c617571bfaf03cdc83c45c389c7bf83270f8d5967773f09c33f0863cff856ee1e612cc0135e074c9abd88735edc3c493a9a038f84c692518b2c3e
7
+ data.tar.gz: e4e90db9296dad80432a9a16d7f66bb42c44b4116f7539cee7d70d991f1783fbd9ca3256b0f5862fa3ff1949be1e34d08eb5e7fe3be48a71277435814877fe63
@@ -6,7 +6,7 @@ module Capistrano
6
6
  attr_reader :team, :token
7
7
 
8
8
  protected
9
- def send_notification(member, message, username = 'Capistrano Notification')
9
+ def send_notification(member, message, username = "#{fetch(:application)} #{fetch(:env)}".titleize)
10
10
  connection = Faraday.new(url: "https://#{team}.slack.com") do |faraday|
11
11
  faraday.request :url_encoded
12
12
  faraday.adapter Faraday.default_adapter
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Notifications
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -41,13 +41,7 @@ namespace :notify do
41
41
 
42
42
  task :finishing do
43
43
  find_adapter do |adapter|
44
- adapter.notify(notify[:to],
45
- t(:revision_log_message,
46
- branch: fetch(:branch),
47
- user: local_user,
48
- sha: fetch(:current_revision),
49
- release: fetch(:release_timestamp)),
50
- "#{fetch(:application)} #{fetch(:env)}".titleize)
44
+ adapter.notify(notify[:to], revision_log)
51
45
  end
52
46
  end
53
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - scorix