    # File lib/rubygems/dependency.rb, line 50
      def initialize(name, version_requirements, type=:runtime)
        @name = name

        unless TYPES.include? type
          raise ArgumentError, "Valid types are #{TYPES.inspect}, not #{@type.inspect}"
        end

        @type = type

        @version_requirements = Gem::Requirement.create version_requirements
        @version_requirement = nil   # Avoid warnings.
      end