summaryrefslogtreecommitdiff
path: root/tasks/dependencies.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/dependencies.rb')
-rw-r--r--tasks/dependencies.rb28
1 files changed, 2 insertions, 26 deletions
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index eb5b20d1bb..2faf3b883a 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -141,31 +141,7 @@ namespace :dependencies do
end
end
end
-
- # Find out if we're using the latest gems we can (so we don't regress versions)
- desc "Check for gems that are not at the latest released version, and report if anything not in ACCEPTABLE_OUTDATED_GEMS (version_policy.rb) is out of date."
- task :check_outdated do
- extend BundleUtil
- puts ""
- puts "-------------------------------------------------------------------"
- puts "Checking for outdated gems ..."
- puts "-------------------------------------------------------------------"
- # TODO check for outdated windows gems too
- with_bundle_unfrozen do
- bundle_outdated = bundle("outdated", extract_output: true)
- puts bundle_outdated
- outdated_gems = parse_bundle_outdated(bundle_outdated).map { |line, gem_name| gem_name }
- # Weed out the acceptable ones
- outdated_gems = outdated_gems.reject { |gem_name| ACCEPTABLE_OUTDATED_GEMS.include?(gem_name) }
- if outdated_gems.empty?
- puts ""
- puts "SUCCESS!"
- else
- raise "ERROR: outdated gems: #{outdated_gems.join(", ")}. Either fix them or add them to ACCEPTABLE_OUTDATED_GEMS in #{__FILE__}."
- end
- end
- end
end
desc "Update all dependencies and check for outdated gems. Call dependencies[conservative] to update as little as possible."
-task :dependencies, [:conservative] => [ "dependencies:update", "dependencies:check_outdated" ]
-task :update, [:conservative] => [ "dependencies:update", "dependencies:check_outdated"]
+task :dependencies, [:conservative] => [ "dependencies:update", "bundle:outdated" ]
+task :update, [:conservative] => [ "dependencies:update", "bundle:outdated"]