# File lib/rubygems/commands/build_command.rb, line 50
      def yaml?(filename)
        line = open(filename) { |f| line = f.gets }
        result = line =~ %r{^--- *!ruby/object:Gem::Specification}
        result
      end