lib/rconf/configurators/bundler_configurator.rb in rconf-1.0.7 vs lib/rconf/configurators/bundler_configurator.rb in rconf-1.0.8

- old
+ new

@@ -71,11 +71,11 @@ # true:: If bundler is already installed # false:: Otherwise def check_bundler report_check("Checking bundler #{version}") res = Command.execute("bundle", "_#{version}_", '--version') - success = !!(res.output =~ /#{version}/) + success = !!(res.output =~ /^Bundler version #{version}$/) report_result(success) success end # Check whether the gems in the bundle are all installed. @@ -127,10 +127,10 @@ options << "--without=#{exclusions.delete(' ')}" unless exclusions.nil? options += [ '--path', bundle_path ] unless bundle_path.nil? options << { :abort_on_failure => 'Failed to install gems' } res = Command.execute('bundle', *options) report_success - Command.execute('rbenv', 'rehash') # this is kind of optional + Command.execute('rbenv', 'rehash') # this is optional; don't bother to report failures true end end end