Updated Rails rake task to support API version.