A man has been jailed for rape after he duped a woman into believing he had used a condom while they were having sex in the first prosecution of its kind in Scotland.