/** * Make sure the compass and sass gems are up to date. * * If the gems are not present, the system will install them automatically, * but won't update them after that for speeds sake. Call this from sake to * ensure you've got the most up-to-date version. * * Designed to be called as a sake command: * <code> * sapphire/sake dev/compass/updategems * </code> * * @param bool $verbose - use Compass::$errors_are_errors = false to suppress. * */ public function updategems($verbose = false) { foreach (self::$required_gems[self::$sass_version] as $gem => $version) { if (is_numeric($gem)) { $gem = $version; $version = null; } if ($error = Rubygems::require_gem($gem, $version, true)) { echo $error; } } if ($verbose) { echo "\nGem update succesfull\n"; } }