slackistrano 0.0.8 → 0.0.9

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: 134770108f5954d02a69beaca6f9a875091d8944
4
- data.tar.gz: 3f9c9ea0ff1f28bbd0dd426db8f4ce14035e2efb
3
+ metadata.gz: f993b8e5fe8e067e6d10f0d44fc94c32da707c77
4
+ data.tar.gz: fed2b59b5986b97e48813b5d15fb1ee974ab06db
5
5
  SHA512:
6
- metadata.gz: 964b1cb2f7fbc5225c0bbe34381d4492834aef92c32f156c7680c3d3519a5a7d5a7f82b3de018694f063f9c768721c71ab38fe8d3a1a8c74b489178674ced8e2
7
- data.tar.gz: ba8e0f3bb612b073cb955ad63c8a83db217bc313d46eed8f2dcf8f44ad4d21afca761724c96913bb76620ac78e94abacece7df70214575b21249ebb58e52020c
6
+ metadata.gz: 909d367d8eb80514eb142e8d399513cdc0bb08a8e5451744d2b36b652d7963f2c118fa60a9e12857ec7760e2b13cade478ee919b55bcf34b77e489b4626e1bc4
7
+ data.tar.gz: 7d461350212eb53435d455fc85d444bdb6cea56362d7ef988f61f8ef157240e055941c53d715faa7b82f02a5417e3da4924194c30e56a66689576362701632aa
data/README.md CHANGED
@@ -41,6 +41,7 @@ Set your team and token in your application's config/deploy.rb:
41
41
  Optionally, override the other slack settings:
42
42
 
43
43
  set :slack_icon_url, ->{ 'http://gravatar.com/avatar/885e1c523b7975c4003de162d8ee8fee?r=g&s=40' }
44
+ set :slack_icon_emoji, ->{ nil } # will override icon_url
44
45
  set :slack_channel, ->{ '#general' }
45
46
  set :slack_username, ->{ 'Slackistrano' }
46
47
  set :slack_run_starting, ->{ true }
@@ -12,6 +12,7 @@ namespace :slack do
12
12
  channel: fetch(:slack_channel),
13
13
  username: fetch(:slack_username),
14
14
  icon_url: fetch(:slack_icon_url),
15
+ icon_emoji: fetch(:slack_icon_emoji),
15
16
  text: fetch(:slack_msg_starting)
16
17
  }
17
18
  )
@@ -29,6 +30,7 @@ namespace :slack do
29
30
  channel: fetch(:slack_channel),
30
31
  username: fetch(:slack_username),
31
32
  icon_url: fetch(:slack_icon_url),
33
+ icon_emoji: fetch(:slack_icon_emoji),
32
34
  text: fetch(:slack_msg_finished)
33
35
  }
34
36
  )
@@ -46,6 +48,7 @@ namespace :slack do
46
48
  channel: fetch(:slack_channel),
47
49
  username: fetch(:slack_username),
48
50
  icon_url: fetch(:slack_icon_url),
51
+ icon_emoji: fetch(:slack_icon_emoji),
49
52
  text: fetch(:slack_msg_failed)
50
53
  }
51
54
  )
@@ -66,6 +69,7 @@ namespace :load do
66
69
  set :slack_token, ->{ nil } # Token from Incoming WebHooks. Required.
67
70
  set :slack_channel, ->{ nil } # Channel to post to. Optional. Defaults to WebHook setting.
68
71
  set :slack_icon_url, ->{ 'http://gravatar.com/avatar/885e1c523b7975c4003de162d8ee8fee?r=g&s=40' }
72
+ set :slack_icon_emoji, ->{ nil } # Emoji to use. Overrides icon_url. Must be a string (ex: ':shipit:')
69
73
  set :slack_username, ->{ 'Slackistrano' }
70
74
  set :slack_run_starting, ->{ true } # Set to false to disable starting message.
71
75
  set :slack_run_finished, ->{ true } # Set to false to disable finished message.
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom