feat(rating): add rating directive

Based on #337.