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

class Shoes
  class Packager
    attr_reader :backend

    def initialize
      @backend = Shoes.backend_for(self)
      configure_g
    
    def configure_gems
      @backend.gems = []
      return unless defined?(::Bundler)

      @backend.gems = ::Bundler.environment.specs.map(&:name) - ["shoes"]
    rescue Bundler::GemfileNotFound
      # Ok to be quiet since we didn't even have a Gemfile
    rescue => e
      Shoes.logger.error "Looking up gems for packaging failed:\n#{e.message}"
    end