# File lib/rubygems/dependency.rb, line 34def initializename,*requirementsifRegexp===namethenmsg=["NOTE: Dependency.new w/ a regexp is deprecated.","Dependency.new called from #{Gem.location_of_caller.join(":")}"]warnmsg.join("\n")unlessGem::Deprecate.skipendtype=Symbol===requirements.last?requirements.pop::runtimerequirements=requirements.firstif1==requirements.length# unpackunlessTYPES.include?typeraiseArgumentError,"Valid types are #{TYPES.inspect}, "+"not #{type.inspect}"end@name=name@requirement=Gem::Requirement.createrequirements@type=type@prerelease=false# This is for Marshal backwards compatibility. See the comments in# +requirement+ for the dirty details.@version_requirements=@requirementend