capistrano_multiconfig_parallel 0.20.8 → 0.20.9

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
  SHA1:
3
- metadata.gz: 228d0a592f4a55cfe0dcfd1de2294da7a2ba0ea1
4
- data.tar.gz: f37440527a19d7619a67273ae45912a792a3c3bc
3
+ metadata.gz: bb9d81743bb7797aad849b28341801909a634659
4
+ data.tar.gz: fdc6ba3368a3cfdede894bb150ac831a17b240c9
5
5
  SHA512:
6
- metadata.gz: f07690398c185f69c0d8054ed815ac2214a40592ffaaf9af7f9a350d2bd130b4af9fd357a06772c75ef077136fcf8774ec701e743f389959e1475bc7668a00f4
7
- data.tar.gz: 24a94792c8b909d3ae872ffca24058284fb9aaf4a625c215942acda345c02123377f0d2ee237963042b46f2c15212606334df1e77bb23341838ca32e8e9ef90e
6
+ metadata.gz: feebf247d9aa8bccb9d2108e956808aacdbc18190eae4bd27436619339b2aa10a304ecbc3651a0a285980e8ec5ee66f746df25ed32aea9123d59e980c8e3415e
7
+ data.tar.gz: 0213a80c1f4b394c508247c0e426d4dd1941352c688bc087fad15de27d29142341d3d7e677b3108d489c95ba7acd5f286aa69846d8ec92003e17c38984e59e36
@@ -17,7 +17,7 @@ module CapistranoMulticonfigParallel
17
17
  default_printing
18
18
  result = show_all_websites_interactive_menu
19
19
  print "#{@msg}\n"
20
- strip_characters_from_string(result).split(',')
20
+ result.present? ? result.split(',') : []
21
21
  end
22
22
 
23
23
  private
@@ -33,7 +33,7 @@ module CapistranoMulticonfigParallel
33
33
  result += "#{option_name}," if choices[index].present?
34
34
  print_option_name(option_name, index)
35
35
  end
36
- result
36
+ strip_characters_from_string(result)
37
37
  end
38
38
 
39
39
  def print_option_name(option_name, index)
@@ -43,7 +43,7 @@ module CapistranoMulticonfigParallel
43
43
  end
44
44
 
45
45
  def confirm_option_selected
46
- print 'Enter a comma-separated list of option numbers or one single option number (again to uncheck, ENTER when done): '
46
+ print "Enter a comma-separated list of option numbers or one single option number (again to uncheck, ENTER when done): "
47
47
  $stdin.gets.squeeze(' ').strip
48
48
  end
49
49
 
@@ -112,7 +112,8 @@ module CapistranoMulticonfigParallel
112
112
  end
113
113
 
114
114
  def rescue_error(error, output = nil)
115
- output.blank? ? log_error(error) : puts(format_error(error))
115
+ puts(format_error(error)) if output.present?
116
+ log_error(error)
116
117
  exit(1)
117
118
  end
118
119
 
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 20
11
- TINY = 8
11
+ TINY = 9
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.20.8
4
+ version: 0.20.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada