Avoid `gem build` warnings

* Use more specific version requirements.
* Use `>=` instead of `==` for Ruby version check.