filander 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,7 +87,7 @@ module Filander
87
87
  :red
88
88
  when :execute
89
89
  :magenta
90
- when :install
90
+ when :install, :installed
91
91
  :cyan
92
92
  else
93
93
  :blue
@@ -10,9 +10,13 @@ module Filander
10
10
  gem_install_args = name
11
11
  report_name = name
12
12
  end
13
- report :install, report_name
14
- unless Filander.behavior == :pretend
15
- system "gem install #{gem_install_args}" unless gem_exists?(name, version)
13
+ if gem_exists?(name, version)
14
+ report :installed, report_name
15
+ else
16
+ report :install, report_name
17
+ unless Filander.behavior == :pretend
18
+ system "gem install #{gem_install_args}"
19
+ end
16
20
  end
17
21
  end
18
22
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Johannes J. Schmidt