lib/rconf/configurators/ruby_configurator.rb in rconf-0.8.9 vs lib/rconf/configurators/ruby_configurator.rb in rconf-0.8.10
- old
+ new
@@ -93,10 +93,10 @@
:abort_on_failure => "Failed to switch to gemset '#{gemset}'")
report_success
end
report_check("Checking whether rubygems #{rubygems} is installed")
res = Command.execute_in_ruby('gem', '--version')
- if res.success? && res.output.chomp == rubygems
+ if res.success? && res.output =~ /^#{rubygems}$/
report_success
else
report_failure
report_check("Installing rubygems #{rubygems}")
Command.execute_in_ruby('rubygems', rubygems, :abort_on_failure => 'Failed to install rubygems')