Yobs who left a man unconscious with fractured ribs after he confronted them over repeated banging on his door late at night have been spared jail.