capistrano-slacky 0.1.5 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/README.md +5 -4
- data/lib/capistrano/slacky/command/diff.rb +1 -1
- data/lib/capistrano/slacky/facade/header.rb +10 -3
- data/lib/capistrano/slacky/facade/revision.rb +7 -4
- data/lib/capistrano/slacky/version.rb +1 -1
- data/lib/tasks/defaults.rake +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661b607b987ad599e6b2eaad1bf4688777a0ad20ef250a0a5abd8091623e9835
|
4
|
+
data.tar.gz: 8f77f8f59505476d0a66ba00285f67eba980531e663b85746ca39aa1440d9610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af93b201bd9fc9d6fa33f8c8ed38cface1ccc39a1db2c75aceb5dcc7e3a7cbe4931a8d37fff490dd692550a08a2f61c272f0573ded07d60e36c4c569cf46b99b
|
7
|
+
data.tar.gz: 327c05c1f6c16a7a56aeb6d7f3359bedba2c5f5183631d692da158e88d62035a3081af4b08850e18c09079eca7b5d2e4cfca28e10de7c859ef035cd00412c85a
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.2.2] - 2022-05-09
|
10
|
+
### Fixed
|
11
|
+
- Add a reverse order for a `git log ...`. ([@chubchenko][])
|
12
|
+
|
13
|
+
## [0.2.1] - 2022-05-02
|
14
|
+
### Changed
|
15
|
+
- Add a reverse order for `Diff` to display the correct sequence of merge commits. ([@chubchenko][])
|
16
|
+
|
17
|
+
## [0.2.0] - 2021-12-20
|
18
|
+
### Added
|
19
|
+
- Add new header emoticons. ([@chubchenko][])
|
20
|
+
|
9
21
|
## [0.1.5] - 2021-11-11
|
10
22
|
### Fixed
|
11
23
|
- Add fall back in case of the primary server is not defined. ([@chubchenko][])
|
@@ -49,7 +61,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
49
61
|
- Initial version. ([@chubchenko][])
|
50
62
|
|
51
63
|
[@chubchenko]: https://github.com/chubchenko
|
52
|
-
[Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v0.
|
64
|
+
[Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.2...HEAD
|
65
|
+
[0.2.2]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.1...v0.2.2
|
66
|
+
[0.2.1]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.0...v0.2.1
|
67
|
+
[0.2.0]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.5...v0.2.0
|
53
68
|
[0.1.5]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.4...v0.1.5
|
54
69
|
[0.1.4]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.3...v0.1.4
|
55
70
|
[0.1.3]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.2...v0.1.3
|
data/README.md
CHANGED
@@ -51,10 +51,11 @@ bundle install
|
|
51
51
|
Out of the box, the gem has a default configuration:
|
52
52
|
|
53
53
|
```ruby
|
54
|
-
set :slacky,
|
55
|
-
|
56
|
-
|
57
|
-
|
54
|
+
set :slacky,
|
55
|
+
username: "ChatOps", # Set your bot's user name.
|
56
|
+
icon_emoji: ":robot_face:", # Emoji to use as the icon for this message.
|
57
|
+
channel: "#deployment", # The name of the channel to send a message to.
|
58
|
+
klass: Capistrano::Slacky::Messaging::Default # The class that responsible for creating a message.
|
58
59
|
```
|
59
60
|
|
60
61
|
So you can easily tweak your deployment messages and all other configuration to what you want.
|
@@ -24,7 +24,7 @@ module Capistrano
|
|
24
24
|
:git, :log, "--oneline", "--first-parent", "#{previous}..#{current}"
|
25
25
|
).split("\n")
|
26
26
|
|
27
|
-
log.map.with_index(1) do |line, index|
|
27
|
+
log.reverse.map.with_index(1) do |line, index|
|
28
28
|
sha, commit = line.match(/^(\w+) (.*+?)/).captures
|
29
29
|
|
30
30
|
if /^Merge pull request/.match?(commit)
|
@@ -9,14 +9,18 @@ module Capistrano
|
|
9
9
|
":drooling_face:",
|
10
10
|
":sunglasses:",
|
11
11
|
":partying_face:",
|
12
|
-
":heart_eyes:"
|
12
|
+
":heart_eyes:",
|
13
|
+
":star-struck:",
|
14
|
+
":yum:"
|
13
15
|
].freeze
|
14
16
|
|
15
17
|
REVERTED_SUCCESSFULLY = [
|
16
18
|
":upside_down_face:",
|
17
19
|
":pensive:",
|
18
20
|
":face_with_raised_eyebrow:",
|
19
|
-
":worried:"
|
21
|
+
":worried:",
|
22
|
+
":pleading_face:",
|
23
|
+
":shushing_face:"
|
20
24
|
].freeze
|
21
25
|
|
22
26
|
DEPLOYMENT_FAILED = [
|
@@ -26,7 +30,10 @@ module Capistrano
|
|
26
30
|
":woozy_face:",
|
27
31
|
":exploding_head:",
|
28
32
|
":sob:",
|
29
|
-
":cry:"
|
33
|
+
":cry:",
|
34
|
+
":dizzy_face:",
|
35
|
+
":face_with_hand_over_mouth:",
|
36
|
+
":broken_heart:"
|
30
37
|
].freeze
|
31
38
|
|
32
39
|
ROLLBACK_FAILED = DEPLOYMENT_FAILED
|
@@ -8,10 +8,13 @@ module Capistrano
|
|
8
8
|
@env = env
|
9
9
|
|
10
10
|
super(
|
11
|
-
I18n.t(
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
I18n.t(
|
12
|
+
"slacky.revision",
|
13
|
+
scope: "capistrano",
|
14
|
+
repository_url: ::Capistrano::Slacky.repo.url,
|
15
|
+
current: current,
|
16
|
+
previous: previous
|
17
|
+
)
|
15
18
|
)
|
16
19
|
end
|
17
20
|
|
data/lib/tasks/defaults.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-slacky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Chubchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.1.6
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Send Capistrano deployment status to Slack
|