def maintain_backwards_compatibility(configuration)
      configuration.tap do |config|
        DEPRECATED_CONFIG_KEY_MAPPING.each do |old_key, new_key|
          old_config_value = config.delete(old_key)
          next unless old_config_value
          deprecation_message \
            "Old configuration key found. Please update the "\
            "'#{old_key}' to '#{new_key}'.",
            logger

          next if config[new_key] # Skip if new key is already in use
          config[new_key] = old_config_value
        end

        if config.include?(:working_dir_path)
          deprecation_message \
            "'working_dir_path' is deprecated, please use " \
            "'working_directory_path' instead and specify the " \
            "full path to the working directory",
            logger
        end
      end
    end
def maintain_backwards_compatibility(configuration)
      configuration.tap do |config|
        DEPRECATED_CONFIG_KEY_MAPPING.each do |old_key, new_key|
          old_config_value = config.delete(old_key)
          next unless old_config_value
          deprecation_message \
            "Old configuration key found. Please update the "\
            "'#{old_key}' to '#{new_key}'.",
            logger

          next if config[new_key] # Skip if new key is already in use
          config[new_key] = old_config_value
        end

        if config.include?(:working_dir_path)
          deprecation_message \
            "'working_dir_path' is deprecated, please use " \
            "'working_directory_path' instead and specify the " \
            "full path to the working directory",
            logger
        end
      end
    end
Maintain backwards compatibility with config files generated by earlier
 versions of the gem

 Used by {#load_from_disk}. No compatibility for env variables or initial config currently.