bin/rconf in rconf-0.6.21 vs bin/rconf in rconf-0.6.22
- old
+ new
@@ -118,18 +118,21 @@
def update_rconf(rubies, version)
rubies.each do |ruby|
ruby =~ /(\s+| =>)([^ ]*)\s.*/
ruby = Regexp.last_match(2)
report_check("Checking rconf for #{ruby}")
- rconf = Command.execute('rvm', "#{ruby}@global", 'exec', 'gem', 'list', 'rconf').output
- if rconf =~ /rconf \(#{version}\)/
- report_success
- next
- else
- report_failure
- report_check("Updating rconf for #{ruby}")
- res = Command.execute('rvm', "#{ruby}@global", 'exec', 'gem', 'install', 'rconf')
- report_result(res.success?)
+ gemsets = Command.execute('rvm', 'gemset', 'list').output.split("\n")[2..-2] + [ 'global' ]
+ gemsets.each do |gemset|
+ rconf = Command.execute('rvm', "#{ruby}@#{gemset}", 'exec', 'gem', 'list', 'rconf').output
+ if rconf =~ /rconf \(#{version}\)/
+ report_success
+ next
+ else
+ report_failure
+ report_check("Updating rconf for #{ruby}@#{gemset}")
+ res = Command.execute('rvm', "#{ruby}@#{gemset}", 'exec', 'gem', 'install', 'rconf')
+ report_result(res.success?)
+ end
end
end
end