capistrano-notifications 0.0.6 → 0.0.7

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: 4c83c877ec203f9dbfc69c4a41db0b8a6e265574
4
- data.tar.gz: 0a0b5108d7ebeb2385c580c43b4256ca52bd9718
3
+ metadata.gz: 6669b8ec3f8ed08814ead77899ba56db253510f5
4
+ data.tar.gz: 291cdbbc3d2735cd2118e2d6c7b29bb5b3156d63
5
5
  SHA512:
6
- metadata.gz: 8e8255bc6d0c617571bfaf03cdc83c45c389c7bf83270f8d5967773f09c33f0863cff856ee1e612cc0135e074c9abd88735edc3c493a9a038f84c692518b2c3e
7
- data.tar.gz: e4e90db9296dad80432a9a16d7f66bb42c44b4116f7539cee7d70d991f1783fbd9ca3256b0f5862fa3ff1949be1e34d08eb5e7fe3be48a71277435814877fe63
6
+ metadata.gz: 8bcff912ae84e6ba679fc5e3efedf54e8871040e1bf818996c0b0d2ea2cf4dd8fcddb91a5e9a3b1f3f9c13d5d297922caee536f9dc5cdb671cd50711fe2c06da
7
+ data.tar.gz: 1ef1e3a08aae8bdca0f3188bfe8f5eb6a964c538c77d3479a4894f34be76b504cfe47ed200ddeb1cce919a69d66af77ffaf015b5f281c6aacb7de9eb4df52c46
data/README.md CHANGED
@@ -7,7 +7,7 @@ Send notifications around deploy to teammates(subscribers).
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'capistrano-notifications', github: 'scorix/capistrano-notifications'
10
+ gem 'capistrano-notifications'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -22,9 +22,13 @@ in deploy.rb
22
22
 
23
23
  ```ruby
24
24
  # deploy.rb
25
- set :notify_default_options, team: 'my-team', token: 'token'
26
- set :notify_adapter, :Slack
27
- set :subscribers, %w(@scorix #deploy)
25
+ set :notify, -> {
26
+ {
27
+ to: %w(@scorix #deploy),
28
+ via: :slack,
29
+ options: {team: 'my-team', token: 'token'}
30
+ }
31
+ }
28
32
  ```
29
33
 
30
34
  in Capfile
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Notifications
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
@@ -41,7 +41,13 @@ namespace :notify do
41
41
 
42
42
  task :finishing do
43
43
  find_adapter do |adapter|
44
- adapter.notify(notify[:to], revision_log)
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)
45
51
  end
46
52
  end
47
53
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - scorix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler