method
    
    verify_spec
  
      v2_4_6 - 
      Show latest stable
 - 
    0 notes - 
    Class: Installer
    
  
  
- 1_8_6_287
 - 1_8_7_72
 - 1_8_7_330
 - 1_9_1_378
 - 1_9_2_180
 - 1_9_3_125
 - 1_9_3_392
 - 2_1_10
 - 2_2_9
 - 2_4_6 (0)
 - 2_5_5 (0)
 - 2_6_3 (0)
 - What's this?
 
verify_spec()
  public
  
    Hide source    
    
      
  
# File lib/rubygems/installer.rb, line 700 def verify_spec unless spec.name =~ Gem::Specification::VALID_NAME_PATTERN raise Gem::InstallError, "#{spec} has an invalid name" end if spec.raw_require_paths.any?{|path| path =~ /\r\n|\r|\n/ } raise Gem::InstallError, "#{spec} has an invalid require_paths" end if spec.extensions.any?{|ext| ext =~ /\r\n|\r|\n/ } raise Gem::InstallError, "#{spec} has an invalid extensions" end unless spec.specification_version.to_s =~ /\A\d+\z/ raise Gem::InstallError, "#{spec} has an invalid specification_version" end if spec.dependencies.any? {|dep| dep.type =~ /\r\n|\r|\n/ || dep.name =~ /\r\n|\r|\n/ } raise Gem::InstallError, "#{spec} has an invalid dependencies" end end

  
  
  