capistrano-slacky 0.2.1 → 1.0.0

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: c9215dbde585970f40772b0738dfe16ce6fe28c9f1d974540ab0c40ff91eac2d
4
- data.tar.gz: 1e3a4d6b5a595a9bd30ca70bd4f1a2e220253ec342878a4e392b89cec630d1db
3
+ metadata.gz: 0cdd46da39748040081b0d60e84f9a2aca031709e2bade7abe7f5acd57bcd1fc
4
+ data.tar.gz: 11993b35539786425cce2760086d5dd19878cfb23cc15878e9f017737bc5f991
5
5
  SHA512:
6
- metadata.gz: 74ca7ebf6508ef0a6acf9ffdd536ed1301bda168a78dfdf3124ca530ccbb81e3b36a4fc6bd57ff192c41a1ff159675d2e0a53baa5a25cdd04e9706d5e844c02e
7
- data.tar.gz: e4387b043edcd26bdd9b83d4b12fa127a672b67ba40414563c8a96931de23dbb4cdedd420ce0a117784f2c2153ff09fec8b13b6b25d4fb5dd1dab11bfa155397
6
+ metadata.gz: b473366d720bb4b89ebe5fbd18cf2e11e0210185c2ad49bcbec82c718077028616a91963aad62e37db6d57702f01bcfa214b19cbdd4cf30270e5a8c7a672743b
7
+ data.tar.gz: 074c9cc558717e27595c0fac0c8de7f36c3125e61e911fbae820b099010a8fe07de42890e9d3f6a211175896a26fa47528b6cdf37e74784dec5a7f12299d191d
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.0] - 2024-04-11
10
+ ### Changed
11
+ - Dropped support for Ruby < 3. ([@chubchenko][])
12
+
13
+ ## [0.2.2] - 2022-05-09
14
+ ### Fixed
15
+ - Add a reverse order for a `git log ...`. ([@chubchenko][])
16
+
9
17
  ## [0.2.1] - 2022-05-02
10
18
  ### Changed
11
19
  - Add a reverse order for `Diff` to display the correct sequence of merge commits. ([@chubchenko][])
@@ -57,7 +65,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
57
65
  - Initial version. ([@chubchenko][])
58
66
 
59
67
  [@chubchenko]: https://github.com/chubchenko
60
- [Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.1...HEAD
68
+ [Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v1.0.0...HEAD
69
+ [1.0.0]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.2...v1.0.0
70
+ [0.2.2]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.1...v0.2.2
61
71
  [0.2.1]: https://github.com/chubchenko/capistrano-slacky/compare/v0.2.0...v0.2.1
62
72
  [0.2.0]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.5...v0.2.0
63
73
  [0.1.5]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.4...v0.1.5
data/README.md CHANGED
@@ -28,7 +28,7 @@ Send `Capistrano` deployment status to `Slack` via the Incoming Webhooks integra
28
28
 
29
29
  ## Requirements
30
30
 
31
- - Ruby >= 2.5
31
+ - Ruby >= 3.0
32
32
  - Capistrano ~> 3.0
33
33
  - Slack
34
34
 
@@ -90,10 +90,10 @@ set :slacky, false
90
90
 
91
91
  This library aims to support and is [tested against][2] the following Ruby implementations:
92
92
 
93
- - Ruby 2.5
94
- - Ruby 2.6
95
- - Ruby 2.7
96
93
  - Ruby 3.0
94
+ - Ruby 3.1
95
+ - Ruby 3.2
96
+ - Ruby 3.3
97
97
 
98
98
  If something doesn't work on one of these Ruby versions, it's a bug.
99
99
 
@@ -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)
@@ -25,7 +25,7 @@ module Capistrano
25
25
  )
26
26
  end
27
27
 
28
- difference.reverse.map do |message|
28
+ difference.map do |message|
29
29
  ::Capistrano::Slacky::Block::Context.new(
30
30
  *message.to_a
31
31
  )
@@ -10,7 +10,7 @@ module Capistrano
10
10
  def self.for(env:)
11
11
  klass =
12
12
  if ::Capistrano::Slacky.slacky?
13
- (::Capistrano::Slacky.klass || ::Capistrano::Slacky::Messaging::Default)
13
+ ::Capistrano::Slacky.klass || ::Capistrano::Slacky::Messaging::Default
14
14
  else
15
15
  Null
16
16
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module Slacky
5
- VERSION = "0.2.1"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
data/lib/tasks/hooks.rake CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- after :'deploy:finishing', :'slacky:updated'
4
- after :'deploy:finishing_rollback', :'slacky:reverted'
5
- after :'deploy:failed', :'slacky:failed'
3
+ after :"deploy:finishing", :"slacky:updated"
4
+ after :"deploy:finishing_rollback", :"slacky:reverted"
5
+ after :"deploy:failed", :"slacky:failed"
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.2.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Chubchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -120,7 +120,7 @@ licenses:
120
120
  - MIT
121
121
  metadata:
122
122
  bug_tracker_uri: https://github.com/chubchenko/capistrano-slacky/issues
123
- changelog_uri: https://github.com/chubchenko/capistrano-slacky/blob/master/CHANGELOG.md
123
+ changelog_uri: https://github.com/chubchenko/capistrano-slacky/blob/main/CHANGELOG.md
124
124
  homepage_uri: https://github.com/chubchenko/capistrano-slacky
125
125
  source_code_uri: https://github.com/chubchenko/capistrano-slacky
126
126
  github_repo: ssh://github.com/chubchenko/capistrano-slacky
@@ -132,14 +132,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- version: 2.5.0
135
+ version: 3.0.0
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.1.6
142
+ rubygems_version: 3.4.10
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Send Capistrano deployment status to Slack