capistrano_multiconfig_parallel 0.30.2 → 0.30.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: 8ffb9f8955151a5a8ce57ab416c2ec74cb9d31ac
4
- data.tar.gz: 0c6177dfcb70b86bb9c4226c71b1081374215375
3
+ metadata.gz: 58e2a9600daf2a4c5fe9616f6445f4b347059244
4
+ data.tar.gz: 9b3c580792789c8079ba4b1f29b2161443f0dfc6
5
5
  SHA512:
6
- metadata.gz: 7811010142715281a427828f1632123912cab8b0bb9e31bd40e80d00bb65c8723405f3ccbc426b8c3e625372c48adb9979883840f3443336581497d61820932d
7
- data.tar.gz: ed38c71e9b577fa2cb4553eaa91044443d98b1dbdbf775431541db008a19789cbdb5500ea13796b425e1f3173f23bffcbf65f11d7938443bb79d0c4ea9295bca
6
+ metadata.gz: a829f654be313dff6ddc40e29ac8c0ee204923fe62eb29ae5d8b9ba2cbb6bac0f321d7df92e664076b962bc6f2bc90113e1aadcff3bbb0841e8202f01e660e38
7
+ data.tar.gz: 13b7ca2728d183796f047e1f65fbc5d19a70333d9e8f2895e9eecf8e81b06b8f1df4dad2413c89b7316107a27e201614b7b3385280c6e714ddfadfa88b22f2f9
@@ -54,7 +54,7 @@ module CapistranoMulticonfigParallel
54
54
 
55
55
  def display_table_on_terminal(table, jobs)
56
56
  table_size = fetch_table_size(jobs)
57
- @position, @terminal_rows, @screen_erased = CapistranoMulticonfigParallel::Cursor.display_on_screen("\n#{table}\n", @options.merge(position: @position, table_size: table_size, screen_erased: @screen_erased ))
57
+ @position, @terminal_rows, @screen_erased = CapistranoMulticonfigParallel::Cursor.display_on_screen("#{table}", @options.merge(position: @position, table_size: table_size, screen_erased: @screen_erased ))
58
58
  # puts [@position, @terminal_rows, table_size , (@terminal_rows[:rows] - @position[:row]), screen_erased].inspect
59
59
  print_errors
60
60
  signal_complete
@@ -25,9 +25,9 @@ module CapistranoMulticonfigParallel
25
25
  end
26
26
 
27
27
  def fetch_cursor_position(table_size, position, previously_erased_screen)
28
- final_position = position
28
+ final_position = position || fetch_position
29
29
  terminal_rows = fetch_terminal_size
30
- screen_erased = refetch_position?(table_size, terminal_rows, position)
30
+ screen_erased = refetch_position?(table_size, terminal_rows, final_position)
31
31
  if screen_erased == true
32
32
  move_to_home! if previously_erased_screen != true
33
33
  final_position = fetch_position
@@ -37,7 +37,6 @@ module CapistranoMulticonfigParallel
37
37
  end
38
38
 
39
39
  def refetch_position?(table_size, terminal_size, position)
40
- return true if position.blank?
41
40
  terminal_rows = terminal_size[:rows]
42
41
  row_position = position[:row]
43
42
  terminal_rows.zero? || (terminal_rows.nonzero? && row_position >= (terminal_rows / 2)) || (table_size >= (terminal_rows - row_position))
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 30
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.30.2
4
+ version: 0.30.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada