summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-11-06 13:17:00 -0800
committerAndre Arko <andre@arko.net>2014-11-06 13:18:10 -0800
commita7c960e16e918fa78df2154bd37d2eabfc5f942a (patch)
tree21e9c54fb47d9b4b707197bde1f992f7aff1cac6 /Rakefile
parent6fd01318b6e92fffd7bd0468de16ec3bd659736f (diff)
downloadbundler-a7c960e16e918fa78df2154bd37d2eabfc5f942a.tar.gz
sort deps by name before installing them
[ci skip]
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index e53c9d6080..ace09a48c6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -32,7 +32,7 @@ namespace :spec do
task :deps do
deps = Hash[BUNDLER_SPEC.development_dependencies.map do |d|
[d.name, d.requirement.to_s]
- end.sort_by{|name, _| name }]
+ end]
# JRuby can't build ronn or rdiscount, so we skip that
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
@@ -40,7 +40,7 @@ namespace :spec do
deps.delete("rdiscount")
end
- deps.each do |name, version|
+ deps.sort_by{|name, _| name }.each do |name, version|
sh "#{Gem.ruby} -S gem list -i '^#{name}$' -v '#{version}' || " \
"#{Gem.ruby} -S gem install #{name} -v '#{version}' --no-ri --no-rdoc"
end