capistrano_multiconfig_parallel 0.21.2 → 0.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41b89d6397558387064cb73c22db2f2d69fb2602
4
- data.tar.gz: efdd4b29ac1fc3b033711ed22f310090d7a65b5c
3
+ metadata.gz: 0678e5d70fde4903fa0371e345387bab14873225
4
+ data.tar.gz: 84837b0f81864137caaf1d8bc3494fbca894cde9
5
5
  SHA512:
6
- metadata.gz: 38cc9b820f426115a84326b0052709b27f365e298a7cacbd993c3eb3b98fc9363034aa112ccac1cf3053fb558528bd95dd2ac398c99e69e412f762c87602e46e
7
- data.tar.gz: fd326031f9f6028de23e36ab6658ef598c666a2baa7c39912f0dbab12707954cd34208ccc5dbec476f2305cf9b083761a7ffdf7bc3877298f339161dcbb35024
6
+ metadata.gz: 412c4da923e6586ae9aa21110b018e4f126eb113d0a882892167e5f93a4e5aa5d8dd54d2f1b7e4fdb3caefcf08ae1510dfeb15d3aa32cbf570181cd41370214b
7
+ data.tar.gz: d02454de07fea27d614f6877e71d1b1489251500e364517f9a7eccc25c6251d95df91f8f246eb9f3b47f7d065ed22bbdd3e5d644e4d073a0d14a95d991c4940b
@@ -27,9 +27,7 @@ module CapistranoMulticonfigParallel
27
27
  table = Terminal::Table.new(title: 'Deployment Status Table', headings: default_headings)
28
28
  jobs = @manager.alive? ? @manager.jobs.dup : []
29
29
  if jobs.present?
30
- count = 0
31
- jobs.pmap do |job_id, job|
32
- count += 1
30
+ jobs.each_with_index do |(job_id, job), count|
33
31
  add_job_to_table(table, job_id, job, count)
34
32
  end
35
33
  end
@@ -66,7 +64,7 @@ module CapistranoMulticonfigParallel
66
64
  end
67
65
 
68
66
  def add_job_to_table(table, job_id, job, index)
69
- row = [{ value: index.to_s },
67
+ row = [{ value: (index + 1).to_s },
70
68
  { value: job_id.to_s },
71
69
  { value: job.job_stage },
72
70
  { value: job.capistrano_action },
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 21
11
- TINY = 2
11
+ TINY = 3
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.2
4
+ version: 0.21.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada