rconf 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,8 +52,8 @@ module RightConf
52
52
  return true if aborting
53
53
  Command.set_ruby(version, gemset)
54
54
  report_check("Checking whether #{version} is the active ruby")
55
- out = Command.execute('rvm', 'list').output
56
- if out =~ /^=> #{version.gsub('.', '\\.')}/
55
+ out = Command.execute('rvm', 'current').output
56
+ if out =~ /^#{version.gsub('.', '\\.')}/
57
57
  report_success
58
58
  check_rvmrc
59
59
  else
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 9
16
- BUILD = 6
16
+ BUILD = 7
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -28,8 +28,8 @@ describe RightConf::RubyConfigurator do
28
28
 
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
- should_execute('rvm', 'list').once.and_return(success_result("=> rvm #{RVM_VERSION}"))
32
- should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
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
33
  should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('1'))
34
34
  @configurator.run_linux
35
35
  end
@@ -49,8 +49,8 @@ describe RightConf::RubyConfigurator do
49
49
 
50
50
  it 'should install rubygems if needed' do
51
51
  should_execute('rvm', '--version').once.and_return(success_result("rvm #{RVM_VERSION}"))
52
- should_execute('rvm', 'list').once.and_return(success_result("=> rvm #{RVM_VERSION}"))
53
- should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
52
+ should_execute('rvm', 'current').once.and_return(success_result("0@"))
53
+ #should_execute('rvm', 'use', '0', Hash).once.and_return(success_result('Using '))
54
54
  should_execute('rvm', '0@', 'gem', '--version').once.and_return(success_result('0'))
55
55
  should_execute('rvm', '0@', 'rubygems', '1',
56
56
  {: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
- - 6
8
+ - 7
9
9
  segments_generated: true
10
- version: 0.9.6
10
+ version: 0.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Raphael Simon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-02 00:00:00 -08:00
18
+ date: 2012-02-05 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency