Permalink
Browse files

improve gemloader to include runtime deps if any, and not break on co…

…mplex requirements
  • Loading branch information...
1 parent 07db144 commit 609a0413edf0c4ec5d540ba713fae74af7ed5e54 @raggi raggi committed Feb 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/gemloader.rb
View
@@ -1,6 +1,6 @@
require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
-eval(File.read(gemspec)).development_dependencies.each do |dep|
- gem dep.name, dep.requirement.to_s
+Gem::Specification.load(gemspec).dependencies.each do |dep|
+ gem dep.name, *dep.requirement.as_list
end

0 comments on commit 609a041

Please sign in to comment.