spec/integration/helpers/wait_event_done.rb
def first_matching_tag
  r = Registry.get
  return unless r

  RegistryEvent.all.find_each do |event|
    data = JSON.parse(event.data)
    _, _, tag_name = r.get_namespace_from_event(data)
    return event.dup if tag_name == TAG
  end

  nil
end
# Returns the first registry event that matches the required tag, or nil if none
# could be found.
Returns the first registry event that matches the required tag, or nil if none
could be found.
Returns the first registry event that matches the required tag or nil if none could be found .
def first_matching_tag
  r = Registry.get
  return unless r
  RegistryEvent.all.find_each do |event|
    data = JSON.parse(event.data)
    _, _, tag_name = r.get_namespace_from_event(data)
    return event.dup if tag_name == TAG
  end
  nil
end
def first_matching_tag r = Registry . get return unless r RegistryEvent . all . find_each do | event | data = JSON . parse ( event . data ) _ , _ , tag_name = r . get_namespace_from_event ( data ) return event . dup if tag_name == TAG end nil end
Returns the first registry event that matches the required tag, or nil if none
could be found.
Returns the first registry event that matches the required tag or nil if none could be found .