The constraint ~> 1.7 means 1.7.0 > x < 1.8.0

Did you mean to change this to "> 1.7" ?