Update Ruby version
Add dynamic middleware in specs post