diff options
author | John Keiser <john@johnkeiser.com> | 2016-04-19 09:05:59 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-04-19 11:38:26 -0700 |
commit | 0ce002d47405c0178b1016a8d803e13e5cfd823e (patch) | |
tree | 53f021322cdf9e864f700abf478da66027ccb1f5 /tasks/dependencies.rb | |
parent | 02ec1e15c6ca5166161e2a1fb33d8d8ffefa3dc5 (diff) | |
download | chef-0ce002d47405c0178b1016a8d803e13e5cfd823e.tar.gz |
Re-add activesupport testsjk/activesupport-tests
Diffstat (limited to 'tasks/dependencies.rb')
-rw-r--r-- | tasks/dependencies.rb | 28 |
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"] |