mirror of
https://github.com/github/rails.git
synced 2026-02-04 11:15:08 -05:00
Require rubygems if needed when initializing GemDependency instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -7,6 +7,7 @@ module Rails
|
||||
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])
|
||||
|
||||
Reference in New Issue
Block a user