diff options
author | Andre Arko <andre@arko.net> | 2014-11-06 13:17:00 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-11-06 13:18:10 -0800 |
commit | a7c960e16e918fa78df2154bd37d2eabfc5f942a (patch) | |
tree | 21e9c54fb47d9b4b707197bde1f992f7aff1cac6 /Rakefile | |
parent | 6fd01318b6e92fffd7bd0468de16ec3bd659736f (diff) | |
download | bundler-a7c960e16e918fa78df2154bd37d2eabfc5f942a.tar.gz |
sort deps by name before installing them
[ci skip]
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |