capistrano-slack-mp 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: 0b963fb56aa33885c6dd5a7ae69731a16c783334
4
- data.tar.gz: 0b622e0479c06a29444df904460f7209c9db6481
3
+ metadata.gz: 6ea5cb1100610d2a6fbff1f33e37c83182ec1009
4
+ data.tar.gz: a4623f2a016fb0178fae4aa12fa3dbc4d314a817
5
5
  SHA512:
6
- metadata.gz: 6ef084432527e6e8b162d4d1b79fb147bd64349e24621d069b83c203f41c0ada8de9a7596a86d3417fdbf758ef1df4faaf042e89a12bf0db5267a1733869b882
7
- data.tar.gz: 195e879408b740d3d1ac1f8b9b1f23b3eeec69327b9fc17a795a624283d8c2ad0c18983807ede28174678270771cea242e868642cf8fc1763a9ed4d80503668b
6
+ metadata.gz: e4ee25917628082a23008dc8af7c7f193dad1ad084cfa696996b0f574a2634c34b6812fc53739d0d04f3bee44a66744b05f21d1656c3701598b515e6ac759d29
7
+ data.tar.gz: 3f19cd7da9bdba9c46611fb54279550579194a5bb1346cb80f56c4535eaf0d0c892d7670fa0dea64d50ceb6619402a4131dc7e31ad2fae9aaf1530e54db6f3ea
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 (April 6, 2014)
4
+
5
+ ### enhancements
6
+
7
+ * Change notification message
8
+ * Leave the log at notified message
9
+
10
+ ## 0.1.0 (March 30, 2014)
11
+
12
+ First Release :smile:
data/README.md CHANGED
@@ -25,16 +25,18 @@ Please note that any `require` should be placed in `Capfile`, not `config/deploy
25
25
 
26
26
  # config/deploy.rb
27
27
  set :slack_team, 'your team' # Required
28
- set :slack_toke, 'your token' # Required
28
+ set :slack_token, 'your token' # Required
29
29
 
30
30
  set :slack_channel, '#general' # Optional
31
31
  set :slack_username, 'capistranobot' # Optional
32
32
 
33
- You need to set the slack integration. You should check out the [Slack incoming-webhook documentation](https://my.slack.com/services/new/incoming-webhook) for finding out parameters.
33
+ You need to add the integration in Slack. You should check out the [Slack Incoming WebHooks documentation](https://my.slack.com/services/new/incoming-webhook) for finding out parameters.
34
+
35
+ `:slack_channel` and `:slack_username` are optional. If you do not specify, these parameters are used Slack integration settings.
34
36
 
35
37
  ## Contributing
36
38
 
37
- 1. Fork it ( http://github.com/<my-github-username>/capistrano-slack-mp/fork )
39
+ 1. Fork it ( http://github.com/misopeso/capistrano-slack-mp/fork )
38
40
  2. Create your feature branch (`git checkout -b my-new-feature`)
39
41
  3. Commit your changes (`git commit -am 'Add some feature'`)
40
42
  4. Push to the branch (`git push origin my-new-feature`)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["kuprij@mac.com"]
11
11
  spec.summary = %q{Capistrano integration for Slack.}
12
12
  spec.description = %q{Capistrano integration for Slack.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/misopeso/capistrano-slack-mp"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -3,7 +3,7 @@ module Capistrano
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH].join(".")
9
9
  end
@@ -13,7 +13,11 @@ namespace :deploy do
13
13
  if slack_token.nil? || slack_team.nil?
14
14
  error ":slack_token and :slack_team are required."
15
15
  else
16
- message = revision_log_message
16
+ application = fetch(:application)
17
+ branch = fetch(:branch)
18
+ stage = fetch(:stage, :production)
19
+
20
+ message = "#{application}(branch: #{branch}) has deployed successfully to #{stage} by #{local_user}"
17
21
 
18
22
  options = {}
19
23
  options[:channel] = slack_channel unless slack_channel.nil?
@@ -21,6 +25,8 @@ namespace :deploy do
21
25
 
22
26
  notifier = Capistrano::Slack::Notifier.new(slack_team, slack_token)
23
27
  notifier.notify(message, options)
28
+
29
+ info "Send notification message to Slack."
24
30
  end
25
31
  end
26
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slack-mp
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
  - URAMOTO Kazunori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-30 00:00:00.000000000 Z
11
+ date: 2014-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - CHANGELOG.md
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md
@@ -84,7 +85,7 @@ files:
84
85
  - lib/capistrano/slack/notifier.rb
85
86
  - lib/capistrano/slack/version.rb
86
87
  - lib/capistrano/tasks/slack.rake
87
- homepage: ''
88
+ homepage: https://github.com/misopeso/capistrano-slack-mp
88
89
  licenses:
89
90
  - MIT
90
91
  metadata: {}