ruby-win32/lib/ruby/site_ruby/1.8/rubygems/validator.rb
##
# Given the path to a gem file, validates against its own MD5 checksum
# 
# gem_path:: [String] Path to gem file
Given the path to a gem file, validates against its own MD5 checksum
gem_path:: [String] Path to gem file
Given the path to a gem file validates against its own MD5 checksum gem_path :: [ String ] Path to gem file
def verify_gem_file(gem_path)
      File.open gem_path, 'rb' do |file|
        gem_data = file.read
        verify_gem gem_data
      end
    rescue Errno::ENOENT
      raise Gem::VerificationError.new("missing gem file #{gem_path}")
    end
def verify_gem_file ( gem_path ) File . open gem_path , 'rb' do | file | gem_data = file . read verify_gem gem_data end rescue Errno :: ENOENT raise Gem :: VerificationError . new ( "missing gem file #{gem_path}" ) end
Given the path to a gem file, validates against its own MD5 checksum
gem_path:: [String] Path to gem file
Given the path to a gem file validates against its own MD5 checksum gem_path :: [ String ] Path to gem file
gem_path