summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/rake18
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/rake b/bin/rake
index ebb192fd50..7cce4cfa1e 100755
--- a/bin/rake
+++ b/bin/rake
@@ -5,15 +5,17 @@ load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
require "rubygems"
-bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
-bundler_spec.dependencies.each do |dep|
- begin
- gem dep.name, dep.requirement
- rescue Gem::LoadError => e
- $stderr.puts "#{e.message} (#{e.class})"
+unless ARGV[0] == "spec:deps"
+ bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
+ bundler_spec.dependencies.each do |dep|
+ begin
+ gem dep.name, dep.requirement
+ rescue Gem::LoadError => e
+ $stderr.puts "#{e.message} (#{e.class})"
+ end
end
-end
-Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
+ Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
+end
load Gem.bin_path("rake", "rake")