Literal expression means to tear someone a new butt-hole, figuratively means to verbally or physical abuse or criticize someone thoroughly so that they feel destroyed.
I made a joke about her butt looking big, and she ripped me a new one.
Boys who enjoy yaoi (a genre in Japan that contains sexual and/or romantic relations between two men); literally translates to "rotten boy"; corresponding female : fujoshi