Forward port pull request #1194 from eliotsykes:patch-1

Changed to '~> 3.0' as requested

Resolve #1224

[ci skip]