rconf 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -86,7 +86,15 @@ module RightConf
86
86
  report_check("Creating gemset #{gemset} for #{version}")
87
87
  Command.execute('rvm', version, 'exec', 'rvm', 'gemset', 'create', gemset,
88
88
  :abort_on_failure => "Failed to create gemset '#{gemset}'")
89
- Command.execute_in_ruby('gem', 'install', 'rconf')
89
+ end
90
+ report_check("Checking whether rconf is installed")
91
+ res = Command.execute('rconf', '--version')
92
+ if res.output =~ /VERSION/
93
+ report_success
94
+ else
95
+ report_failure
96
+ report_check("Installing rconf")
97
+ Command.execute_in_ruby('gem', 'install', 'rconf', :abort_on_failure => "Failed to install rconf")
90
98
  report_success
91
99
  end
92
100
  report_check("Switching to gemset #{gemset}")
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 9
16
- BUILD = 7
16
+ BUILD = 8
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -29,7 +29,6 @@ describe RightConf::RubyConfigurator do
29
29
  it 'should succeed on linux when rvm succeeds' do
30
30
  should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
31
31
  should_execute('rvm', 'current').once.and_return(success_result("0@"))
32
- #should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
33
32
  should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('1'))
34
33
  @configurator.run_linux
35
34
  end
@@ -50,7 +49,6 @@ describe RightConf::RubyConfigurator do
50
49
  it 'should install rubygems if needed' do
51
50
  should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
52
51
  should_execute('rvm', 'current').once.and_return(success_result("0@"))
53
- #should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
54
52
  should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('0'))
55
53
  should_execute('rvm', '0@', 'rubygems', '1',
56
54
  {:abort_on_failure=>'Failed to install rubygems'}).once.and_return(success_result)
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 7
8
+ - 8
9
9
  segments_generated: true
10
- version: 0.9.7
10
+ version: 0.9.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Raphael Simon