bin/rconf in rconf-0.7.12 vs bin/rconf in rconf-0.7.13

- old
+ new

@@ -96,12 +96,12 @@ # true:: Always return true def update ProgressReporter.report_to_stdout report_check 'Retrieving latest rconf...' json = Command.execute('curl', '-s', 'http://rubygems.org/api/v1/gems/rconf.json').output - info = JSON.load(json) - report_fatal 'Failed to retrieve rconf gem information, check network connectivity' unless info - version = info['version'] + json =~ /"version":"([^"]+)"/ + version = Regexp.last_match(1) + report_fatal 'Failed to retrieve rconf gem information, check network connectivity' unless version report_success report('Latest rconf version is ' + version.blue) rubies = Command.execute('rvm', 'list').output rubies = rubies.split("\n")[3..-1] update_rconf(rubies, version)