capistrano-slackify 1.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 23ed2dcf7406f58eb8db6359a7c51878ae855dcf
4
+ data.tar.gz: 8d3de54159d61d5360b543a1b06c9c563da7fb08
5
+ SHA512:
6
+ metadata.gz: 41b13989ac234982bee4d05e545b631b56a829e18ada6663c6c21e6ce7791961016b223c1b91d0c4195b598dd39a41acc0a769c3d8ca709f3d386d0321540881
7
+ data.tar.gz: ec7dfa78419f326cc8900131e058030f8913c06b24dd1ba8381a3cea0f6fa8e7f7609828349437ff4e88f28a4d53fcc1cf6bb0705f3ea7ed54a90c49924232e4
data/README.md CHANGED
@@ -46,14 +46,19 @@ Any of the defaults can be over-ridden in `config/deploy.rb`:
46
46
  set :slack_emoji, ':trollface:'
47
47
  set :slack_user, ENV['GIT_AUTHOR_NAME']
48
48
  set :slack_text, -> {
49
+ elapsed = Integer(fetch(:time_finished) - fetch(:time_started))
49
50
  "Revision #{fetch(:current_revision, fetch(:branch))} of " \
50
- "#{fetch(:application)} deployed to #{fetch(:stage)} by #{local_user} " \
51
+ "#{fetch(:application)} deployed to #{fetch(:stage)} by #{fetch(:slack_user)} " \
51
52
  "in #{elapsed} seconds."
52
53
  }
53
54
  set :slack_deploy_starting_text, -> {
54
- "Notifying Slack of #{fetch(:stage)} deploy starting with revision/branch #{fetch(:current_revision, fetch(:branch))} for #{fetch(:application)}"
55
+ "#{fetch(:stage)} deploy starting with revision/branch #{fetch(:current_revision, fetch(:branch))} for #{fetch(:application)}"
55
56
  }
56
57
 
58
+ To configure the way slack parses your message (see 'Parsing Modes' at https://api.slack.com/docs/formatting) use the `:slack_parse` setting:
59
+
60
+ set :slack_parse, 'none' # available options: 'default', 'none', 'full'
61
+
57
62
  ### Copyright
58
63
 
59
64
  Copyright (c) 2014 OnTheBeach Ltd. See LICENSE.txt for
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-slackify'
7
- spec.version = '1.1.0'
7
+ spec.version = '1.2.1'
8
8
  spec.authors = ['seenmyfate']
9
9
  spec.email = ['seenmyfate@gmail.com']
10
10
  spec.summary = %q{Publish deployment notifications to Slack via the incoming webhooks integration}
@@ -31,6 +31,7 @@ namespace :load do
31
31
  set :slack_channel, '#general'
32
32
  set :slack_username, 'Capistrano'
33
33
  set :slack_emoji, ':ghost:'
34
+ set :slack_parse, 'default'
34
35
  set :slack_user, -> { local_user.strip }
35
36
  set :slack_url, -> { Slackify::Configuration.instance.url }
36
37
  set :slack_text, lambda {
@@ -43,7 +43,8 @@ module Slackify
43
43
  channel: fetch(:slack_channel),
44
44
  username: fetch(:slack_username),
45
45
  text: slack_text,
46
- icon_emoji: fetch(:slack_emoji)
46
+ icon_emoji: fetch(:slack_emoji),
47
+ parse: fetch(:slack_parse)
47
48
  }.to_json
48
49
  end
49
50
 
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slackify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - seenmyfate
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-28 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: yajl-ruby
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.5'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.5'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: Publish deployment notifications to Slack via the incoming webhooks integration
@@ -98,8 +87,8 @@ executables: []
98
87
  extensions: []
99
88
  extra_rdoc_files: []
100
89
  files:
101
- - .gitignore
102
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".travis.yml"
103
92
  - CONTRIBUTING.md
104
93
  - Gemfile
105
94
  - LICENSE.txt
@@ -114,33 +103,26 @@ files:
114
103
  homepage: https://github.com/onthebeach/capistrano-slackify
115
104
  licenses:
116
105
  - MIT
106
+ metadata: {}
117
107
  post_install_message:
118
108
  rdoc_options: []
119
109
  require_paths:
120
110
  - lib
121
111
  required_ruby_version: !ruby/object:Gem::Requirement
122
- none: false
123
112
  requirements:
124
- - - ! '>='
113
+ - - ">="
125
114
  - !ruby/object:Gem::Version
126
115
  version: '0'
127
- segments:
128
- - 0
129
- hash: 3771920176072130592
130
116
  required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
117
  requirements:
133
- - - ! '>='
118
+ - - ">="
134
119
  - !ruby/object:Gem::Version
135
120
  version: '0'
136
- segments:
137
- - 0
138
- hash: 3771920176072130592
139
121
  requirements: []
140
122
  rubyforge_project:
141
- rubygems_version: 1.8.25
123
+ rubygems_version: 2.2.2
142
124
  signing_key:
143
- specification_version: 3
125
+ specification_version: 4
144
126
  summary: Publish deployment notifications to Slack via the incoming webhooks integration
145
127
  test_files:
146
128
  - spec/lib/slackify_spec.rb