capistrano-slacky 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/capistrano/slacky/on.rb +3 -1
- data/lib/capistrano/slacky/payload.rb +2 -0
- data/lib/capistrano/slacky/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e963a3083a780ee771dd59f8a8f393152d5229506f9b2b8caa882ca3d2d69fab
|
4
|
+
data.tar.gz: e47195e93a85ed5dd1ccf2e46fca45c5e8f7f4ccd9eafc59abe95fb42115a441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caad10775d254c7d44b0b919fed9fc4edd5899890ca4722e22b936daf0702ac885f86cff6994f69d08b9c36fbec15bd0da26cd3e47a057cacffed3dc796058d2
|
7
|
+
data.tar.gz: 35e4cc8a48f1fbe90f34ea563a74c83e29243f991bb3ca19b45778aa63177e5840ebe3850552c8ce0ccd9f284b78c0de40cde3cb4d5e0436edebb711c9c09a79
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.1.5] - 2021-11-11
|
10
|
+
### Fixed
|
11
|
+
- Add fall back in case of the primary server is not defined. ([@chubchenko][])
|
12
|
+
- Require `json` to convert `Hash` object to `JSON`. ([@chubchenko][])
|
13
|
+
|
9
14
|
## [0.1.4] - 2021-07-27
|
10
15
|
### Fixed
|
11
16
|
- Ensure that `:current_revision` exists during rollback. ([@chubchenko][])
|
@@ -44,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
44
49
|
- Initial version. ([@chubchenko][])
|
45
50
|
|
46
51
|
[@chubchenko]: https://github.com/chubchenko
|
47
|
-
[Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.
|
52
|
+
[Unreleased]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.5...HEAD
|
53
|
+
[0.1.5]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.4...v0.1.5
|
48
54
|
[0.1.4]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.3...v0.1.4
|
49
55
|
[0.1.3]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.2...v0.1.3
|
50
56
|
[0.1.2]: https://github.com/chubchenko/capistrano-slacky/compare/v0.1.1...v0.1.2
|
data/lib/capistrano/slacky/on.rb
CHANGED
@@ -18,7 +18,9 @@ module Capistrano
|
|
18
18
|
module_function
|
19
19
|
|
20
20
|
def on(within:, &block)
|
21
|
-
::Capistrano::
|
21
|
+
role = ::Capistrano::Configuration.env.primary(:app) || ::Capistrano::Configuration.env.roles(:all).first
|
22
|
+
|
23
|
+
::Capistrano::DSL.on(role) do
|
22
24
|
::SSHKit::Backend.current.within(PATH_MAP.fetch(within).call, &block)
|
23
25
|
end
|
24
26
|
end
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-slacky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '3.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.0.0
|
30
27
|
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: '3.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.2.28
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Send Capistrano deployment status to Slack
|