Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…mplex requirements
  • Loading branch information...
commit 609a0413edf0c4ec5d540ba713fae74af7ed5e54 1 parent 07db144
@raggi raggi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/gemloader.rb
View
4 test/gemloader.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.