slackistrano 4.0.1 → 4.0.2

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
  SHA256:
3
- metadata.gz: '0686016bcf4e850937467636868dd9118d2fdbcefc69ce77eedaefa8b8aed649'
4
- data.tar.gz: cfd0a46134a29d3dd2bf09751b96177d2bdd16322351f48b45f84c70ffc48786
3
+ metadata.gz: 6360f02d5cef2b9905f62b56bc447c20f19ead2c2eb395c5d75fab47acac5b40
4
+ data.tar.gz: 5fc2245b992c98e4e48cbe8ba648d7a6b990947c054614acb6b4946dba848817
5
5
  SHA512:
6
- metadata.gz: b04cf3360fcdfb7b1d02948bce6852a6fb18cf1816b91d1fc85082164958dfb6e7a477ebed6df123d1db03fc68d4871db273547295195806020a767743005942
7
- data.tar.gz: 8f4e1f0faa9a6b303f1bcb0a256bc5fdeb26a4a6c5094c1a075b0d1ce10e779762348a15f9051b9eaa57a51f5ae24d420f19309130006feeb4524d7ee4a9a36e
6
+ metadata.gz: 3c3eb27e2685c88ad3a6961ab78e9b568d13becdcfbac9a94f0b7bb51d43d7b91121acfab080718276efdffe6fd33900c0d6a0897079528c7e8020c7fac2b526
7
+ data.tar.gz: 53df379711d05ff2b08f0ec98d5b42ecfacb9f07790f6412839f039fd16230e677a46463c1945c2a747e2f544733e4d52baf6499ed2d265e675e5d06166ef647
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Slackistrano Change Log
2
2
 
3
+ 4.0.2
4
+ -----
5
+
6
+ - Make it possible to overwrite all slackistrano hooks [#98]
7
+
3
8
  4.0.1
4
9
  -----
5
10
 
@@ -68,4 +73,3 @@
68
73
  - **BREAKING:** Renamed all `***_starting` settings to `***_updating`
69
74
  - **BREAKING:** Renamed all `***_finished` settings to `***_updated`
70
75
  - Added rollback options `***_reverting` and `***_reverted` [#19, #31]
71
-
data/README.md CHANGED
@@ -100,6 +100,25 @@ $ cap production slack:deploy:test
100
100
  Deploy your application like normal and you should see messages in the channel
101
101
  you specified.
102
102
 
103
+ ## Customizing the hooks
104
+
105
+ If you wish to take control over when and what slackistrano hooks are fired, then you can use the option in `deploy.rb`:
106
+
107
+ ```ruby
108
+ set :use_custom_slackistrano_hooks, true
109
+ ```
110
+
111
+ This allows you to set custom hooks for all the slackistrano tasks:
112
+
113
+ ```ruby
114
+ 'slack:deploy:starting'
115
+ 'slack:deploy:updating'
116
+ 'slack:deploy:reverting'
117
+ 'slack:deploy:updated'
118
+ 'slack:deploy:reverted'
119
+ 'slack:deploy:failed'
120
+ ```
121
+
103
122
  ## Customizing the Messaging
104
123
 
105
124
  You can customize the messaging posted to Slack by providing your own messaging
@@ -221,7 +240,7 @@ To set this up:
221
240
 
222
241
  ## Disabling posting to Slack
223
242
 
224
- You can disable deployment notifications to a specific stage by setting the `:slackistrano`
243
+ You can disable deployment notifications to a specific stage by setting the `:slackistrano`
225
244
  configuration variable to `false` instead of actual settings.
226
245
 
227
246
  ```ruby
@@ -39,9 +39,11 @@ namespace :slack do
39
39
  end
40
40
  end
41
41
 
42
- before 'deploy:starting', 'slack:deploy:starting'
43
- before 'deploy:updating', 'slack:deploy:updating'
44
- before 'deploy:reverting', 'slack:deploy:reverting'
45
- after 'deploy:finishing', 'slack:deploy:updated'
46
- after 'deploy:finishing_rollback', 'slack:deploy:reverted'
47
- after 'deploy:failed', 'slack:deploy:failed'
42
+ unless fetch(:use_custom_slackistrano_hooks, false)
43
+ before 'deploy:starting', 'slack:deploy:starting'
44
+ before 'deploy:updating', 'slack:deploy:updating'
45
+ before 'deploy:reverting', 'slack:deploy:reverting'
46
+ after 'deploy:finishing', 'slack:deploy:updated'
47
+ after 'deploy:finishing_rollback', 'slack:deploy:reverted'
48
+ after 'deploy:failed', 'slack:deploy:failed'
49
+ end
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '4.0.1'
2
+ VERSION = '4.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-18 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -104,7 +104,7 @@ homepage: https://github.com/phallstrom/slackistrano
104
104
  licenses:
105
105
  - MIT
106
106
  metadata: {}
107
- post_install_message:
107
+ post_install_message:
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
@@ -119,8 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.0.3
123
- signing_key:
122
+ rubygems_version: 3.4.10
123
+ signing_key:
124
124
  specification_version: 4
125
125
  summary: Send notifications to Slack about Capistrano deployments.
126
126
  test_files: