def apply_exclusions(settings, exclusions)
      by_value = !exclusions.is_a?(Array)
      settings.reject do |k, v|
        if by_value
          exclusions[k] == v
        else
          exclusions.include?(k)
        end
      end
    end
def apply_exclusions(settings, exclusions)
      by_value = !exclusions.is_a?(Array)
      settings.reject do |k, v|
        if by_value
          exclusions[k] == v
        else
          exclusions.include?(k)
        end
      end
    end
@!group Helper
-----------------------------------------------------------------------
 Exclude specific build settings from comparison.

 @param  [Hash{String => String}] settings
         the build settings, where to apply the exclusions.

 @param  [Array<String>, Hash{String => String}] exclusions
         the list of settings keys, which should been excluded.

 @return [Hash{String => String}]
         the filtered build settings