capistrano3-notification 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af12e61d4578b21bdcdff8f57c51e2bebacab3c1
4
- data.tar.gz: becaf60c672e51fd7c68090a94471a2ac0d92300
3
+ metadata.gz: 25a8933628d07ceacd3ec62fa4a90ce8fbdcdbfc
4
+ data.tar.gz: a0e8e7b144e6e126d478ef2df066800cef41928a
5
5
  SHA512:
6
- metadata.gz: ea867a1676da99138ca7e558c36a52a51f945657f52579215af6792cfd7344ea8520bdb848b5ad96d648262a0cc580a06d265b2abc87d9aaa5671588d2c14204
7
- data.tar.gz: f97263174f48b16743d5974a5c94f324accc74ddeef362e0572c863808d27a6b9ab97bda1419989083627a9a24c643ede4e3b67930585afc806f54aeda6af7a9
6
+ metadata.gz: c85805264a8cf7d34f03d4eef836ba2562f8dfe35e06fdf58c2c9186546336c9e7d94f2cafcb4d4652423a961e04f200bda15a63833863be6d5f7074602da902
7
+ data.tar.gz: 95b094bbefb35116b3039faa5cb78730f1fec066e083b53fab9f247348697749b3d4985d5cec6ea7b95ef88ccd3a4c3242496460c58fc0564974a4bce40ef002
@@ -22,7 +22,7 @@ namespace :notification do
22
22
  port = fetch(:irc_port)
23
23
  channel = fetch(:irc_channel)
24
24
  message = fetch(:notification)
25
- return unless user && host && port && channel && message
25
+ next unless user && host && port && channel && message
26
26
  require 'shout-bot'
27
27
  url = "irc://#{user}@#{host}:#{port}/#{channel}"
28
28
  ShoutBot.shout(url) { |irc| irc.say message }
@@ -34,7 +34,7 @@ namespace :notification do
34
34
  channel = fetch(:slack_channel)
35
35
  icon = fetch(:slack_icon) || nil
36
36
  message = fetch(:notification)
37
- return unless user && channel && webhook_url && message
37
+ next unless user && channel && webhook_url && message
38
38
  require 'slack-notifier'
39
39
  notifier_options = { username: user, channel: channel }.reject { |_x, y| y.nil? }
40
40
  icon_type = case icon
@@ -1,5 +1,5 @@
1
1
  module Capistrano3
2
2
  module Notification
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-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
  - masarakki