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

require_relative "base_matcher"

module Yabeda
 
    
      def match_when_negated(metric, block)
        unless expected_value.nil?
          raise NotImplementedError, <<~MSG
            `expect(Yabeda.metric_name).not_to update_yabeda_gauge` doesn't support specifying values with `.with`
            as it can lead to false positives.
          MSG
        end

        block.call

        updates = filter_matching_changes(Yabeda::TestAdapter.instance.gauges.fetch(metric))

        updates.none? { |_tags, (_expected, actual)| !actual.nil? }
      end