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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e892f62e82295a36d7682081bd49b9325ca4acfb6b7567d35b3d30eee900586
4
- data.tar.gz: b2fe16318ad7a07fe5152615b3ddaed80e5a50cf8003b3091ca8aa7a1b2d7f2a
3
+ metadata.gz: e963a3083a780ee771dd59f8a8f393152d5229506f9b2b8caa882ca3d2d69fab
4
+ data.tar.gz: e47195e93a85ed5dd1ccf2e46fca45c5e8f7f4ccd9eafc59abe95fb42115a441
5
5
  SHA512:
6
- metadata.gz: 5f1fafa918f99df51308081d599b96c22d97800629695ffe5f2073e8eb97df259eec2b367776b0f04f4c575350bef4f35b42212b63e6971649aba93e84377e67
7
- data.tar.gz: 8a913baa0918ba16b2ff02ecd4db61984a850ca2b3ca41ad5516bc60988dfbe0b70f31d1d8ded6a1f901078366103a30eb744031b94141be7a868491c36d0f95
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.4...HEAD
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
@@ -18,7 +18,9 @@ module Capistrano
18
18
  module_function
19
19
 
20
20
  def on(within:, &block)
21
- ::Capistrano::DSL.on(::Capistrano::Configuration.env.primary(:app)) do
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
@@ -5,6 +5,8 @@ require_relative "messaging"
5
5
  module Capistrano
6
6
  module Slacky
7
7
  class Payload
8
+ require "json"
9
+
8
10
  def initialize(env:, action:)
9
11
  @env = env
10
12
  @action = action
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module Slacky
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  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
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-07-27 00:00:00.000000000 Z
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.0.8
142
+ rubygems_version: 3.2.28
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Send Capistrano deployment status to Slack