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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e963a3083a780ee771dd59f8a8f393152d5229506f9b2b8caa882ca3d2d69fab
4
- data.tar.gz: e47195e93a85ed5dd1ccf2e46fca45c5e8f7f4ccd9eafc59abe95fb42115a441
3
+ metadata.gz: 661b607b987ad599e6b2eaad1bf4688777a0ad20ef250a0a5abd8091623e9835
4
+ data.tar.gz: 8f77f8f59505476d0a66ba00285f67eba980531e663b85746ca39aa1440d9610
5
5
  SHA512:
6
- metadata.gz: caad10775d254c7d44b0b919fed9fc4edd5899890ca4722e22b936daf0702ac885f86cff6994f69d08b9c36fbec15bd0da26cd3e47a057cacffed3dc796058d2
7
- data.tar.gz: 35e4cc8a48f1fbe90f34ea563a74c83e29243f991bb3ca19b45778aa63177e5840ebe3850552c8ce0ccd9f284b78c0de40cde3cb4d5e0436edebb711c9c09a79
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.1.5...HEAD
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, username: "ChatOps", # Set your bot's user name.
55
- icon_emoji: ":robot_face:", # Emoji to use as the icon for this message.
56
- channel: "#deployment", # The name of the channel to send a message to.
57
- klass: Capistrano::Slacky::Messaging::Default # The class that responsible for creating a message.
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("slacky.revision", scope: "capistrano",
12
- repository_url: ::Capistrano::Slacky.repo.url,
13
- current: current,
14
- previous: previous)
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module Slacky
5
- VERSION = "0.1.5"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  namespace :load do
4
+ desc "Load default configuration for slacky"
4
5
  task :defaults do
5
6
  append :linked_files, "config/slacky.yml"
6
7
  end
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.1.5
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: 2021-11-11 00:00:00.000000000 Z
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.2.28
142
+ rubygems_version: 3.1.6
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Send Capistrano deployment status to Slack