summaryrefslogtreecommitdiff
path: root/tasks/dependencies.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-04-12 16:04:27 -0700
committerJohn Keiser <john@johnkeiser.com>2016-04-18 14:21:02 -0700
commitbbc1d6ebccbd7f22fea72a9c2b76ef19f3b5beb3 (patch)
tree97bd064d63268eb7ff39e1b4416abdff42ad0f34 /tasks/dependencies.rb
parent612932e984e4a210891e5d2d00d25723afd6b6a4 (diff)
downloadchef-bbc1d6ebccbd7f22fea72a9c2b76ef19f3b5beb3.tar.gz
Simplify external tests and make them work with Gemfile.lock
Diffstat (limited to 'tasks/dependencies.rb')
-rw-r--r--tasks/dependencies.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index 7955686963..b2eabffb09 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -111,10 +111,10 @@ namespace :dependencies do
# Replace the bundler and rubygems versions
OMNIBUS_RUBYGEMS_AT_LATEST_VERSION.each do |override_name, gem_name|
# Get the latest bundler version
- puts "Running gem list -re #{gem_name} ..."
- gem_list = `gem list -re #{gem_name}`
+ puts "Running gem list -r #{gem_name} ..."
+ gem_list = `gem list -r #{gem_name}`
unless gem_list =~ /^#{gem_name}\s*\(([^)]*)\)$/
- raise "gem list -re #{gem_name} failed with output:\n#{gem_list}"
+ raise "gem list -r #{gem_name} failed with output:\n#{gem_list}"
end
# Emit it
@@ -141,6 +141,7 @@ namespace :dependencies do
# 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 ..."