test/gemloader.rb in rack-1.3.10 vs test/gemloader.rb in rack-1.4.0
- old
+ new
@@ -1,6 +1,10 @@
require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
- gem dep.name, *dep.requirement.as_list
-end
\ No newline at end of file
+ begin
+ gem dep.name, *dep.requirement.as_list
+ rescue Gem::LoadError
+ warn "Cannot load #{dep.name} #{dep.requirement.to_s}"
+ end
+end