You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gemfile_parser.rb
    path of file: ./repos/gel/lib/gel
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gel::GemfileParser
  def self.parse(content, filename = nil, lineno = nil)
    result = GemfileContent.new(filename)
    context = ParseContext.new(result, filename)
    if filename
      context.instance_eval(content, filename, lineno)
    else
      context.instance_eval(content)
    end
    result
  rescue ScriptError, StandardError
    raise Gel::Error::GemfileEvaluationError.new(fi
    
    def gemspec(name: nil, path: ".", development_group: :development)
      dirname = File.expand_path(path, File.dirname(@result.filename))
      gemspecs = Dir[File.join(dirname, "*.gemspec")]
      gemspecs.map! { |file| Gel::GemspecParser.parse(File.read(file), file) }
      gemspecs.select! { |s| s.name == name } if name
      if gemspecs.empty?
        raise "No gemspecs at #{dirname}"
      elsif gemspecs.count > 1
        raise "Multiple gemspecs at #{dirname}"
      else
        spec = gemspecs[0]
        gem spec.name, path: path
        spec.development_dependencies.each do |dep_name, constraints|
          gem dep_name, constraints, group: development_group
        end
      end