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: ensure_author.rb
    path of file: ./repos/rsgem/lib/rsgem/tasks
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RSGem
  module Tasks
    class EnsureAuthor < Base
      OUTPUT = Output
    
      def ensure_author
        return unless missing_git_user?

        gemspec.gsub!(/spec.email\s+=\s+.+/,
                      "spec.email = ['#{TEMP_EMAIL}']")

        gemspec.gsub!(/spec.authors\s+=\s+.+/,
                      "spec.authors = ['#{TEMP_USERNAME}']")
        write_gemspec
      end