filander 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,18 +4,20 @@ module Filander
4
4
 
5
5
  def install_gem(name, version = nil)
6
6
  if version
7
- gem_args = [name, version]
8
7
  gem_install_args = "-v=#{version} #{name}"
9
8
  report_name = "#{name} #{version}"
10
9
  else
11
- gem_args = [name]
12
10
  gem_install_args = name
13
11
  report_name = name
14
12
  end
15
13
  report :install, report_name
16
14
  unless Filander.behavior == :pretend
17
15
  begin
18
- gem *gem_args
16
+ if version
17
+ gem name, version
18
+ else
19
+ gem name
20
+ end
19
21
  rescue => Gem::LoadError
20
22
  cmd "gem install #{gem_install_args}"
21
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Johannes J. Schmidt