class URI::GID

def query=(query)

Ruby 2.2 uses #query= instead of #set_query
def query=(query)
  set_params parse_query_params(query)
  super
end