Fix specs and add 12 factor gem