rconf 0.6.33 → 0.6.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,8 @@ module RightConf
58
58
  # true:: Always return true
59
59
  def install_linux_ubuntu(packages, opts)
60
60
  return if packages.nil?
61
- args = packages.dup
61
+ args = packages.compact.dup
62
+ return if args.empty?
62
63
  args << opts if opts
63
64
  Command.sudo('apt-get', 'install', '-y', *args)
64
65
  end
@@ -70,7 +71,8 @@ module RightConf
70
71
  # true:: Always return true
71
72
  def install_linux_centos(packages, opts)
72
73
  return if packages.nil?
73
- args = packages.dup
74
+ args = packages.compact.dup
75
+ return if args.empty?
74
76
  args << opts if opts
75
77
  Command.sudo('yum', 'install', '-y', *args)
76
78
  end
@@ -83,7 +85,7 @@ module RightConf
83
85
  def install_darwin(packages, opts)
84
86
  return if packages.nil?
85
87
  BrewInstaller.check_and_install
86
- packages.each do |p|
88
+ packages.compact.each do |p|
87
89
  args = [ p ]
88
90
  args << opts if opts
89
91
  Command.execute('brew', 'install', *args)
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 6
16
- BUILD = 33
16
+ BUILD = 34
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.33
5
+ version: 0.6.34
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Simon