Permalink
Browse files

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

…mplex requirements
  • Loading branch information...
1 parent 1c27157 commit e3ffeac0dc04bb8d5994b7923bf12e55d549a279 @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 e3ffeac

Please sign in to comment.