提交 95fdc82f 编写于 作者: R Rick Olson

Require rubygems if needed when initializing GemDependency instances

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 8a5a9dcb
......@@ -7,6 +7,7 @@ def self.unpacked_path
end
def initialize(name, options = {})
require 'rubygems' unless Object.const_defined?(:Gem)
@name = name.to_s
if options[:version]
@requirement = Gem::Requirement.create(options[:version])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册